Subject: LIbrary problem
To: None <netbsd-help@netbsd.org>
From: =?ISO-8859-1?Q?Thorbj=F6rn_Jemander?= <thorbjorn@jemander.net>
List: netbsd-help
Date: 11/06/2003 04:45:46
Hi,

I'm not sure this is the right forum for
this question. Please feel free to redirect me.

I'm trying to port wxDesigner to NetBSD.
I compiles and links OK, but it does not
run due to failure when resolving shared
libraries:

root@tellus:/usr/wxDesigner>ldd wxDesigner
wxDesigner:
         -liconv.4 => /usr/pkg/lib/libiconv.so.4
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lintl.0 => /usr/lib/libintl.so.0
         -lglib-2.0.200 => /usr/pkg/lib/libglib-2.0.so.200
         -lgmodule-2.0.200 => /usr/pkg/lib/libgmodule-2.0.so.200
         -lgobject-2.0.200 => /usr/pkg/lib/libgobject-2.0.so.200
         -lpthread.20 => /usr/pkg/lib/libpthread.so.20
         -lgthread-2.0.200 => /usr/pkg/lib/libgthread-2.0.so.200
         -lgdk_pixbuf-2.0.200 => /usr/pkg/lib/libgdk_pixbuf-2.0.so.200
         -lX11.6 => /usr/X11R6/lib/libX11.so.6                <<<< The 
first occurrance
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lXi.6 => /usr/X11R6/lib/libXi.so.6
         -lXrender.1 => /usr/X11R6/lib/libXrender.so.1
         -lfreetype.8 => /usr/X11R6/lib/libfreetype.so.8
         -lexpat.4 => /usr/pkg/lib/libexpat.so.4
         -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
         -lXft.2 => /usr/pkg/lib/libXft.so.2
         -lXrender.1 => /usr/pkg/lib/libXrender.so.1
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.9 => /usr/pkg/lib/libfreetype.so.9
         -lpango-1.0.200 => /usr/pkg/lib/libpango-1.0.so.200
         -lpangoxft-1.0.200 => /usr/pkg/lib/libpangoxft-1.0.so.200
         -lpangox-1.0.200 => /usr/pkg/lib/libpangox-1.0.so.200
         -lgdk-x11-2.0.200 => /usr/pkg/lib/libgdk-x11-2.0.so.200
         -latk-1.0.200 => /usr/pkg/lib/libatk-1.0.so.200
         -lgtk-x11-2.0.200 => /usr/pkg/lib/libgtk-x11-2.0.so.200
         -lc.12 => /usr/lib/libc.so.12
         -lintl.4 => /usr/pkg/lib/libintl.so.4
         -lpangoft2-1.0.200 => /usr/pkg/lib/libpangoft2-1.0.so.200
         -lX11.6 => not found                         <<<< The second 
occurance

It thus failes to find X11.6, but as you can see -lX11.6 appears
twice in the list and the first time it occurs it is resolved
correctly - but not the second (see the last line) it is not.

Two questions:
1. Does to double inclusion of X11.6 indicate an error in it self?
2. What is the solution: removing the last X11.6 (how?) or make it
    resolve (how?) ?

Any hints would be greately appreciated.

Please CC: me, since I'm not normally on this list.

/Thorbjörn