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

Re: apvlv: FTBFS on kfreebsd-*: libdjvulibre.so: undefined reference to symbol, 'pthread_cancel@@GLIBC_2.3'



tags 628800 patch
thanks

Am 01.06.2011 15:23, schrieb Michael Biebl:

> # on kfreebsd:
> ==============
 ./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

I looked a bit more closely at the configure script.
The attached patch seems to fix the issue (by treating the pthreads userland on
kfreebsd as Linux).
I'd like to have a review of the debian-bsd team, though, if this is the correct
approach.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff -ur djvulibre-3.5.24.orig//config/acinclude.m4 djvulibre-3.5.24/config/acinclude.m4
--- djvulibre-3.5.24.orig//config/acinclude.m4	2011-06-01 15:55:51.980864251 +0200
+++ djvulibre-3.5.24/config/acinclude.m4	2011-06-01 15:56:31.884362595 +0200
@@ -404,7 +404,7 @@
         ;;
 esac
 case "${host_os}-${GCC}" in
-        *linux*-yes)
+        *linux*-yes|*kfreebsd*-yes)
         # On Linux/GCC, libtool uses -nostdlib for linking, which cancel part
         # of the -pthread flag effect (libpthread is not automatically linked).
         # So we'll try to link with both -pthread and -lpthread first:
diff -ur djvulibre-3.5.24.orig//configure djvulibre-3.5.24/configure
--- djvulibre-3.5.24.orig//configure	2011-06-01 15:55:52.016863798 +0200
+++ djvulibre-3.5.24/configure	2011-06-01 15:56:20.880500934 +0200
@@ -16925,7 +16925,7 @@
         ;;
 esac
 case "${host_os}-${GCC}" in
-        *linux*-yes)
+        *linux*-yes|*kfreebsd*-yes)
         # On Linux/GCC, libtool uses -nostdlib for linking, which cancel part
         # of the -pthread flag effect (libpthread is not automatically linked).
         # So we'll try to link with both -pthread and -lpthread first:

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: