[uClibc]Problem linking with libpthread [FIXED???]
Jonathan Hankins
jhankins at homewood.k12.al.us
Tue May 21 17:00:27 UTC 2002
Hey again,
I got uclibc libpthread.so to link correctly by exporting
LD_LIBRARY_PATH, but I still don't know why uclibc libdl.so links
correctly even when LD_LIBRARY_PATH is unset. Below is the output from
ldconfig, showing my glibc libdl.so and libpthread.so -- from what it
shows, I don't see any difference with regard to their location. Then
is another test compile linking with libpthread.so first without, and
then with LD_LIBRARY_PATH set.
Hope this helps!
-Jonathan Hankins
--
Script started on Tue May 21 11:33:31 2002
$ /sbin/ldconfig -p | grep 'libdl\.so' | grep libc6
libdl.so.2 (libc6, OS ABI: Linux 2.0.30) => /lib/libdl.so.2
libdl.so (libc6, OS ABI: Linux 2.0.30) => /usr/lib/libdl.so
$ /sbin/ldconfig -p | grep 'libpthread\.so' | grep libc6
libpthread.so.0 (libc6, OS ABI: Linux 2.0.30) => /lib/libpthread.so.0
libpthread.so (libc6, OS ABI: Linux 2.0.30) => /usr/lib/libpthread.so
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
$ echo $LD_LIBRARY_PATH
$ export PATH=/usr/i386-linux-uclibc/bin:$PATH
$ gcc test.c -lpthread
$ ldd a.out
libpthread.so.0 => /lib/libpthread.so.0
libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0
libc.so.6 => /lib/libc.so.6
ld-linux.so.2 => /lib/ld-linux.so.2
$ export LD_LIBRARY_PATH=/usr/i386-linux-uclibc/lib:$LD_LIBRARY_PATH
$ gcc test.c -lpthread
$ ldd a.out
libpthread.so.0 => /usr/i386-linux-uclibc/lib/libpthread.so.0
libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0
$ exit
Script done on Tue May 21 11:39:50 2002
--
--
--------------------------------------------------------------------------
Jonathan Hankins Homewood City Schools
jhankins at homewood.k12.al.us
--------------------------------------------------------------------------
More information about the uClibc
mailing list