[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian sarge linking failure: lX11



	Hi all,

I've discovered a very unexpected behaviour with
ld and libX11 - although I have the library installed I cannot link the 
following programme:
char XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}

joro@george:~$ gcc -o conftest.o -lX11 -lm conftest.c
/usr/bin/ld: cannot find -lX11
joro@george:~$ aptitude search ~ilibx11
i A libx11-6
i A libx11-dev
joro@george:~$ ll /usr/X11R6/lib/libX11.* /etc/ld.so.*
-rw-r--r--  1 root root   48731 2006-09-23 15:02 /etc/ld.so.cache
-rw-r--r--  1 root root      15 2006-08-04 20:22 /etc/ld.so.conf
-rw-r--r--  1 root root 1938320 2005-09-15 23:10 /usr/X11R6/lib/libX11.a
lrwxrwxrwx  1 root root      11 2006-09-15 23:11 /usr/X11R6/lib/libX11.so -> 
libX11.so.6
lrwxrwxrwx  1 root root      13 2006-08-05 10:19 /usr/X11R6/lib/libX11.so.6 -> 
libX11.so.6.2
-rw-r--r--  1 root root  893712 2005-09-15 23:10 /usr/X11R6/lib/libX11.so.6.2
joro@george:~$ cat /etc/ld.so.conf
/usr/X11R6/lib

I have tried this both on sarge amd64 and sarge x86. 
I cannot see why ld fails to find libX11. Is there anything I'm missing?

Thanks



Reply to: