[Poppler-bugs] [Bug 9094] New: needs to link with -lpthread due to
mutex usage in libgoo
bugzilla-daemon at annarchy.freedesktop.org
bugzilla-daemon at annarchy.freedesktop.org
Mon Nov 20 05:08:50 PST 2006
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=9094
Summary: needs to link with -lpthread due to mutex usage in
libgoo
Product: poppler
Version: unspecified
Platform: PC
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: mbanck at debian.org
goo/GooMutex.h includes <pthread.h> and defines pthread_mutex_* aliases which
are used in poppler. Those become undefined references on platforms which do
not include libpthread in libc:
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
This is the case e.g. on GNU/Hurd, which has its own libpthread library outside
of glibc currently. Adding -lpthread to libpoppler_la_LDFLAGS in
poppler/Makefile.am makes poppler build fine on these platforms. I am not sure
whether this might have negative side-effects (all programs using libpoppler
getting -lpthread as well, maybe?), so there might be a better fix.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Poppler-bugs
mailing list