[xml/sgml-pkgs] Bug#372945: libxml2-dev: 'xml2-config --libs'
doesn't return -lpthread when needed...
Emmanuel Fleury
emmanuel.fleury at labri.fr
Mon Jun 12 15:03:32 UTC 2006
Package: libxml2-dev
Version: 2.6.26.dfsg-1
Severity: normal
When trying to compile xml2 dependent software, it turns out that the
'xml-config --libs' forget about the dependancy on pthreads.
I have no explanation why but when trying to link xml2, I get the error:
/usr/lib/libxml2.a(threads.o): In function `xmlRMutexLock':
(.text+0x478): undefined reference to `pthread_cond_wait'
collect2: ld returned 1 exit status
make[1]: *** [server] Error 1
make: *** [default] Error 2
And xml2-config gives:
[fleury at stormbringer tests]$ xml2-config --libs
-L/usr/lib -lxml2 -lz -lm
Where a -lpthread would have been required.
More suprisingly, xml2-config.in does support the PTHREAD detection but
doesn't not have this feature activated.
I guess it's up to the developers to agree on the use by default or not
of pthreads in the library.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages libxml2-dev depends on:
ii libxml2 2.6.26.dfsg-1 GNOME XML library
ii zlib1g-dev [libz-dev] 1:1.2.3-11 compression library -
development
libxml2-dev recommends no packages.
-- no debconf information
Regards
--
Emmanuel Fleury | Office: 211
Associate Professor, | Phone: +33 (0)5 40 00 35 24
LaBRI, Domaine Universitaire | Fax: +33 (0)5 40 00 66 69
351, Cours de la Libération | email: fleury at labri.fr
33405 Talence Cedex, France | URL: http://www.labri.fr/~fleury
More information about the debian-xml-sgml-pkgs
mailing list