[uClibc]DirectFB pthread compile problem

Simon Davis sd1324 at yahoo.com
Wed Mar 5 16:06:42 UTC 2003


Hi all,

I just built 0.9.19 and attempted to compile DirectFB-0.9.17 but I get the following pthread
errors.  As far as I can tell the functions DirectFB is looking for exist in pthread.h and
pthread.h is included in fusion_bench.c.  I tried older versions of DirectFB and the newest
version that compiled for me was 0.9.12.  Does anyone know why these functions are not being
found?

/usr/i386-linux-uclibc/bin/i386-uclibc-cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include            
-I../src   -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g  -DFUSION_FAKE  -c fusion_bench.c
/bin/sh ../libtool --mode=link /usr/i386-linux-uclibc/bin/i386-uclibc-cc -D_REENTRANT -g -O2
-ffast-math -Wall -O3 -g  -DFUSION_FAKE   -o fusion_bench -udirectfb_fbdev fusion_bench.o
../src/libdirectfb.la -ldl -lpthread 
/usr/i386-linux-uclibc/bin/i386-uclibc-cc -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g
-DFUSION_FAKE -o .libs/fusion_bench -udirectfb_fbdev fusion_bench.o  ../src/.libs/libdirectfb.so
-ldl -lpthread -Wl,--rpath -Wl,/usr/local/lib
fusion_bench.o: In function `bench_spinlock_threaded':
/root/DirectFB-0.9.17/tools/fusion_bench.c:311: undefined reference to `pthread_spin_init'
/root/DirectFB-0.9.17/tools/fusion_bench.c:340: undefined reference to `pthread_spin_destroy'
fusion_bench.o: In function `spin_lock_unlock_loop':
/root/DirectFB-0.9.17/tools/fusion_bench.c:297: undefined reference to `pthread_spin_lock'
/root/DirectFB-0.9.17/tools/fusion_bench.c:295: undefined reference to `pthread_spin_unlock'

Thanks

SD

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the uClibc mailing list