Subject: Re: library issue on Linux (Debian 3.1)
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 07/31/2005 21:29:23
> On Sun, Jul 31, 2005 at 12:43:16AM +0200, Georg Schwarz wrote:
> > Now, could anyone shed some light into this problem? Is it Debian's
> > fault for not installing the links? Is it a compiler issue for not
> > finding the libs anyway, or is it an issue of the package/Linphone code?
> 
> Are you sure you have the development package installed? Don't know
> off-memory how they are called.
> 
I am now running into the same problem when building x11/gtk2:

...
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XOpenDisplay in -lX11... no
configure: error: *** libX11 not found. Check 'config.log' for more details.

The latter says:

configure:27780: checking for X
configure:28010: result: libraries /usr/X11R6/lib, headers /usr/X11R6/include
configure:28182: gcc -o conftest -O3 -mcpu=pentium -pthread -I/usr/local/pkg/inc
lude -I/usr/include -I/usr/local/pkg/include/freetype2 -Wall -DPREFIX="\"/usr/local/pkg\"" -I/usr/local/pkg/include -I/usr/include -I/usr/local/pkg/include/freetype2 -L/usr/local/pkg/lib -Wl,-R/usr/local/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c -lpthread -lrt   -L/usr/X11R6/lib -lX11 >&5
/usr/bin/ld: cannot find -lX11           

or translated by buildlink:

<.> /usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.gcc/bin/gcc -o conftest -O3 -mcpu=pentium -pthread -I/usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.buildlink/include -I/usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.buildlink/include/freetype2 -Wall -DPREFIX=\"\\\"/usr/local/pkg\\\"\" -L/usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.buildlink/lib -Wl,-R/usr/local/pkg/lib -pthread -L/usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.x11-buildlink/lib -Wl,-R/usr/X11R6/lib conftest.c -Wl,--rpath,/usr/local/pkg/lib -lX11 -lXft -lfreetype -lz -lXrender -lX11 -lfontconfig -lX11 -lpthread -lrt     

/usr/X11R6/lib as /usr/src/pkgsrc/pkgsrc/x11/gtk2/work/.x11-buildlink/lib only
contain libX11.so.6 and libX11.so.6.2, no libX11.so.6.

Is is a bug of Debian 3.1? Or do I indeed lack a specific deb-Package?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de  +49 178 8545053