Package: zthreads Version: 2.3.2-2 Severity: important Tags: patch zthreads does not build on kFreeBSD*:
---------------------------------- Make[4]: Entering directory `/build/buildd-zthreads_2.3.2-2-kfreebsd-amd64-YOLeYo/zthreads-2.3.2/src' /bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -g -O2 -Wall -DNDEBUG -g -O2 -Wall -DNDEBUG -c -o AtomicCount.lo `test -f 'AtomicCount.cxx' || echo './'`AtomicCount.cxx mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -g -O2 -Wall -DNDEBUG -g -O2 -Wall -DNDEBUG -c AtomicCount.cxx -fPIC -DPIC -o .libs/AtomicCount.o g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -g -O2 -Wall -DNDEBUG -g -O2 -Wall -DNDEBUG -c AtomicCount.cxx -o AtomicCount.o >/dev/null 2>&1 /bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -g -O2 -Wall -DNDEBUG -g -O2 -Wall -DNDEBUG -c -o Condition.lo `test -f 'Condition.cxx' || echo './'`Condition.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include -g -O2 -Wall -DNDEBUG -g -O2 -Wall -DNDEBUG -c Condition.cxx -fPIC -DPIC -o .libs/Condition.o In file included from ../include/zthread/Exceptions.h:27:0, from ../include/zthread/Lockable.h:26, from ../include/zthread/Condition.h:26, from Condition.cxx:23: ../include/zthread/Config.h:132:4: error: #error "Could not select implementation, define ZT_WIN9X, ZT_WIN32, ZT_POSIX or ZT_MACOS" ---------------------------------- patch attached. (It is the same one we used for hugin's included copy of zthreads.) cu andreas PS: Completely unrelated, I personally think combining "3.0 (quilt)" source format with direct usage of quilt (build-depends and dh $@ --with=quilt) is unnecessary complicated, I would drop direct usage of quilt.
Description: Fix build failure on kfreebsd* Originally found in hugin https://bugs.launchpad.net/hugin/+bug/684357 Author: Andreas Metzler <ametz...@debian.org> --- zthreads-2.3.2.orig/include/zthread/Config.h +++ zthreads-2.3.2/include/zthread/Config.h @@ -107,11 +107,13 @@ # define ZT_POSIX // Check for well known platforms +// __GLIBC__ matches GNU/kFreeBSD. #elif defined(__linux__) || \ defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ defined(__hpux) || \ defined(__sgi) || \ - defined(__sun) + defined(__sun) || \ + defined(__GLIBC__) # define ZT_POSIX