Package: poppler
Version: 0.4.5-5
Severity: important
Tags: patch

Hi,

your package fails to autobuild:

Automatic build of poppler_0.4.5-5 on beethoven by sbuild/hurd-i386 85
Build started at 20061117-1752
******************************************************************************
[...]
Checking correctness of source dependencies...
Toolchain package versions: libc0.3-dev_2.3.6.ds1-5 gcc-4.1_4.1.1-19
g++-4.1_4.1.1-19 binutils_2.17-2 libstdc++6-4.1-dev_4.1.1-19
libstdc++6_4.1.1-19
------------------------------------------------------------------------------
gpg: Signature made Tue Oct 24 10:19:48 2006 CEST using DSA key ID
C20DF273
gpg: Can't check signature: public key not found
dpkg-source: extracting poppler in poppler-0.4.5
dpkg-source: unpacking poppler_0.4.5.orig.tar.gz
dpkg-source: applying /org/buildd/build/poppler_0.4.5-5.diff.gz
dpkg-buildpackage: source package is poppler
dpkg-buildpackage: source version is 0.4.5-5
dpkg-buildpackage: host architecture hurd-i386
dpkg-buildpackage: source version without epoch 0.4.5-5
[...]
 debian/rules build
[...]
Making all in utils
make[3]: Entering directory `/build/buildd/poppler-0.4.5/utils'
make[4]: Entering directory `/build/buildd/poppler-0.4.5'
make[4]: Leaving directory `/build/buildd/poppler-0.4.5'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../poppler -I..    -Wall -Wno-unused
-g -Wall -O2 -c -o pdffonts.o pdffonts.cc
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../poppler -I..    -g -Wall -O2 -c
parseargs.c
/bin/sh ../libtool --tag=CXX --mode=link g++  -Wall -Wno-unused -g -Wall
-O2   -o pdffonts  pdffonts.o parseargs.o ../poppler/libpoppler.la 
mkdir .libs
g++ -Wall -Wno-unused -g -Wall -O2 -o .libs/pdffonts pdffonts.o
parseargs.o  ../poppler/.libs/libpoppler.so -lfontconfig
/usr/lib/libjpeg.so /usr/lib/libfreetype.so -lz
../poppler/.libs/libpoppler.so: undefined reference to
`pthread_mutex_unlock'
collect2: ld returned 1 exit status
make[3]: *** [pdffonts] Error 1
make[3]: Leaving directory `/build/buildd/poppler-0.4.5/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/poppler-0.4.5'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/poppler-0.4.5'
make: *** [debian/stamp-makefile-build] Error 2
******************************************************************************
Build finished at 20061117-1811
FAILED [dpkg-buildpackage died]

THe full build log can be found here:
http://experimental.ftbfs.de/fetch.php?&pkg=poppler&ver=0.4.5-5&arch=hurd-i386&stamp=1163783269&file=log&as=raw

The problem is that libgoo uses pthread mutexes in goo/GooMutex.h which
propagate to libpoppler.  However, libpoppler is not linked with
-lpthread.  On GNU/Linux, this is not a problem as POSIX threads are
provided by glibc directly.  On GNU/Hurd POSIX threads are provided by
the Hurd's libpthread library, though, which leads to unresolved symbols
in libpoppler.

Adding -lpthread to libpoppler's LDFLAGS in poppler/Makefile.am fixes
this problem, I am not sure this is the preffered way to fix this
though, so maybe you should ask upstream as well.  Patch attached (which
needs subsequent autoreconfing).


thanks,

Michael
--- poppler-0.4.5/poppler/Makefile.am.orig      2006-11-18 23:27:11.000000000 
+0100
+++ poppler-0.4.5/poppler/Makefile.am   2006-11-18 23:27:37.000000000 +0100
@@ -82,6 +82,7 @@
 
 lib_LTLIBRARIES = libpoppler.la
 
+libpoppler_la_LDFLAGS = -lpthread
 libpoppler_la_LIBADD =                         \
        $(top_builddir)/goo/libgoo.la           \
        $(top_builddir)/fofi/libfofi.la         \

Reply via email to