[uClibc]directfb pthread linking problems

Alex Song alexsong at comports.com
Mon Jun 3 13:55:39 UTC 2002


At 07:18 AM 05/29/2002, Erik Andersen wrote:
>Hmm.  This is how I use configure stuff...  Assuming I have a
>STAGING_DIR directory where includes and libraries are being
>installed, I do something like this:
>
>     cd <package_directory>
>     export PATH=$(STAGING_DIR)/usr/bin:$PATH
>     ./configure CC=i386-uclibc-gcc --prefix=$(STAGING_DIR)
>
>By using the $(ARCH)-uclibc-gcc compiler, we ensure that when
>things like 'ld' get called we can be sure that it will actually
>call 'i386-uclibc-ld' and not the system '/usr/bin/ld' (which
>would link things vs glibc).
>
>Tried using the $(ARCH)-uclibc-gcc compiler?

by setting the path to /usr/i386-linux-uclibc/bin already gets configure to 
find the right ld but i tried your way anyway and this is what i used to 
compile directfb.

NM=i386-uclibc-nm STRIP=i386-uclibc-strip CC=i386-uclibc-gcc 
AR=i386-uclibc-ar RANLIB=i386-uclibc-ranlib LD=i386-uclibc-ld ./autogen.sh 
--prefix=/usr/i386-linux-uclibc/

and configure used the i386-uclibc-* tools, just setting CC was not enough. 
libpthread doesn't seem to link properly still but i noticed something with 
ldd. here is what i did.

         i386-uclibc-ldd /usr/i386-linux-uclibc/lib/libdirectfb-0.9.so.11.0.0
and got
         libdl.so.0 => /usr/i386-linux-uclibc/lib/libdl.so.0
         libpthread.so.0 => /lib/libpthread.so.0
         libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0
         libc.so.6 => /lib/libc.so.6
         ld-linux.so.2 => /lib/ld-linux.so.2

but if i cd into /usr/i386-linux-uclibc/lib/ and

         i386-uclibc-ldd libdirectfb-0.9.so.11.0.0
i get
         libdl.so.0 => libdl.so.0
         libpthread.so.0 => libpthread.so.0
         libc.so.0 => libc.so.0

but this is just a side issue that i noticed, the main problem is that 
libpthread is still not linking properly for directfb.

cheers,

alex




More information about the uClibc mailing list