clone 621004 -1 reassign -1 libdjvulibre21 retitle kfreebsd-*: libdjvulibre doesn't link against libpthread on kfreebsd block 621004 by -1 thanks
Am 01.06.2011 15:00, schrieb Michael Biebl:
> Hi KiBi,
>
> I'm currently looking at apvlv (because of the impending poppler transition)
>
> | Linking CXX executable apvlv
> | /usr/bin/ld:
> /usr/lib/gcc/x86_64-kfreebsd-gnu/4.5.2/../../../../lib/libdjvulibre.so:
> undefined reference to symbol 'pthread_cancel@@GLIBC_2.3'
> | /usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.3' is defined in DSO
> //lib/libpthread.so.0 so try adding it to the linker command line
> | //lib/libpthread.so.0: could not read symbols: Invalid operation
> | collect2: ld returned 1 exit status
> | make[3]: *** [src/apvlv] Error 1
>
>
>
> To me this looks like a bug in libdjvulibre (on kbsd)
>
> Apparently it is libdjvulibre which doesn't link against libpthread (whereas
> it
> does on Linux), although it uses it.
on Linux:
=========
$ ldd /usr/lib/libdjvulibre.so
linux-gate.so.1 => (0xb77cb000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb75da000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb75c1000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74d1000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb74ab000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7351000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7334000)
/lib/ld-linux.so.2 (0xb77cc000)
./configure
...
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking whether pthreads work with -pthread -lpthread... yes
checking if more special flags are required for pthreads... no
checking threading model... pthread
setting THREAD_CFLAGS= -pthread -DTHREADMODEL=POSIXTHREADS
setting THREAD_LIBS= -lpthread
# on kfreebsd:
==============
christoph@myron ~
2:06 0 % ldd /usr/lib/libdjvulibre.so.21.3.0
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00000008015f9000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x000000080181d000)
libm.so.1 => /lib/libm.so.1 (0x0000000801b27000)
libc.so.0.1 => /lib/libc.so.0.1 (0x0000000801da9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000008020f1000)
/lib64/ld-kfreebsd-x86-64.so.1 (0x0000000001021000)
./configure
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking if more special flags are required for pthreads... no
checking threading model... pthread
setting THREAD_CFLAGS=-pthread -DTHREADMODEL=POSIXTHREADS
setting THREAD_LIBS=
Full build log
http://people.debian.org/~christoph/djvulibre_3.5.24-3_kfreebsd-amd64.build
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

