libxml2 2.9.0+dfsg1-3 FTBFS in raring

Bug #1075146 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxml2 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Theoretically we could sync libxml2 from experimental for raring, but unfortunately it FTBFS with this error message:
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I./include -I../../include -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -c ../../xzlib.c -fPIE -o xzlib.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=link cc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -Wl,--version-script=../../libxml2.syms -version-info 11:0:9 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o libxml2.la -rpath /usr/lib/x86_64-linux-gnu SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo catalog.lo globals.lo threads.lo c14n.lo xmlstring.lo buf.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo xmlmodule.lo schematron.lo xzlib.lo -llzma -lm
libtool: link: cc -shared -fPIC -DPIC .libs/SAX.o .libs/entities.o .libs/encoding.o .libs/error.o .libs/parserInternals.o .libs/parser.o .libs/tree.o .libs/hash.o .libs/list.o .libs/xmlIO.o .libs/xmlmemory.o .libs/uri.o .libs/valid.o .libs/xlink.o .libs/HTMLparser.o .libs/HTMLtree.o .libs/debugXML.o .libs/xpath.o .libs/xpointer.o .libs/xinclude.o .libs/nanohttp.o .libs/nanoftp.o .libs/catalog.o .libs/globals.o .libs/threads.o .libs/c14n.o .libs/xmlstring.o .libs/buf.o .libs/xmlregexp.o .libs/xmlschemas.o .libs/xmlschemastypes.o .libs/xmlunicode.o .libs/xmlreader.o .libs/relaxng.o .libs/dict.o .libs/SAX2.o .libs/xmlwriter.o .libs/legacy.o .libs/chvalid.o .libs/pattern.o .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o .libs/xzlib.o -llzma -lm -O2 -Wl,--version-script=../../libxml2.syms -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -Wl,-soname -Wl,libxml2.so.2 -o .libs/libxml2.so.2.9.0
/usr/bin/ld: .libs/xpath.o: relocation R_X86_64_PC32 against undefined symbol `xmlXPathCmpNodesExt' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

Full build log is available at http://paste.ubuntu.com/1334398/ - it succeeds in sid and with sid+binutls-gold.

Tags: ftbfs
Revision history for this message
Daniel Holbach (dholbach) wrote :

2.8.0+dfsg1-5ubuntu2 and 2.8.0+dfsg1-6 still build fine in raring.
2.9.0+dfsg1-1 was the first to break.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Shall we sync the package to make the problem more visible?

Changed in libxml2 (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel Holbach (dholbach) wrote :

libxml2_2.9.0+dfsg1-3.dsc fails in quantal too.

Revision history for this message
Aron Xu (happyaron) wrote :

Hi Daniel,

I don't have time to do the tests right now, but looking at the build log it maybe related to DSO linking, which I'm not sure whether it has been done correctly on Debian. If you have time could you test if it fails when forcing DSO linking on Debian? There are quite a few upstream build system changes in 2.9.0 and it could be newly introduced a bug as well.

Revision history for this message
Matthias Klose (doko) wrote :

Aron, please configure with --disable-silent-rules

Revision history for this message
Matthias Klose (doko) wrote :

the reason it fails in Ubuntu only ... is in the udeb target. thanks daniel for the complete build log ;-P

Revision history for this message
Matthias Klose (doko) wrote :

and thanks to debhelper for not printing out configure args ...

please use DH_VERBOSE=1 dh_auto_configure ...

Revision history for this message
Matthias Klose (doko) wrote :

and then not using --disable-minimal for the udeb build fixes the build. sorry, don't care to investigate further.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

clearly there should be a wrapper written which sets "DOKO_VERBOSE_MODE" & sets up a sane build environment for any sane or insane build machineries out there.

;-) thanks for trianging this, it's enough information to patch libxml2 and get it to build again.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libxml2 - 2.9.0+dfsg1-3ubuntu1

---------------
libxml2 (2.9.0+dfsg1-3ubuntu1) raring; urgency=low

  * Merge with Debian; remaining changes:
    - None.
  * Configure with --disable-silent-rules.
  * Call dh_autoconfigure with DH_VERBOSE=1 to work-around debhelper
    deficiency.
  * Don't build the udeb with --with-minimal. LP: #1075146.

libxml2 (2.9.0+dfsg1-3) experimental; urgency=low

  [ Aron Xu ]
  * Remove -L/usr/lib from xml2-config, advise to use pkg-config
    in man, and add pkg-config to Suggests. (Closes: #689168)

  [ YunQiang Su ]
  * Fix python-libxml2 undefined symbol (Closes: #689191)

  [ Daniel Holbach ]
  * Add simple autopkgtest to the package (Closes: #690047)

libxml2 (2.9.0+dfsg1-2) experimental; urgency=low

  * Fix a thread portability problem by cherry-picking upstream
    patch (Closes: #688473).

libxml2 (2.9.0+dfsg1-1) experimental; urgency=low

  * New upstream release.
  * Remove old patches applied upstream, cherry-pick one
    upstream post release patch.
  * Update symbols.
  * Update std-ver 3.9.3 -> 3.9.4, no change required.

libxml2 (2.8.0+dfsg1-5ubuntu2) quantal; urgency=low

  * debian/tests/control: added pkg-config as depends for the test.
    Change forwarded to Debian as bug 690047.
 -- Matthias Klose <email address hidden> Tue, 06 Nov 2012 23:59:27 +0100

Changed in libxml2 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.