lxml 3.0.1 don't compile correctly with libxml2-2.9.0

Bug #1080792 reported by Alessandro Guido on 2012-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Low
scoder

Bug Description

lxml 3.0.1 don't compile correctly with libxml2-2.9.0. With libxml2-2.8.0 it's fine.
libxslt version is 1.1.27.
pip error log:

...
make[2]: uscita dalla directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0"

Making all in doc

make[2]: ingresso nella directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc"

Making all in .

make[3]: ingresso nella directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc"

make[3]: Nessuna operazione da eseguire per "all-am".

make[3]: uscita dalla directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc"

Making all in devhelp

make[3]: ingresso nella directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc/devhelp"

make[3]: *** Nessuna regola per generare l'obiettivo "home.png", necessario per "all-am". Arresto.

make[3]: uscita dalla directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc/devhelp"

make[2]: *** [all-recursive] Errore 1

make[2]: uscita dalla directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc"

make[1]: *** [all-recursive] Errore 1

make[1]: uscita dalla directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0"

make: *** [all] Errore 2

Building lxml version 3.0.1.

Latest version of libiconv is 1.14

Downloading libiconv into libs/libiconv-1.14.tar.gz

Unpacking libiconv-1.14.tar.gz into build/tmp

Latest version of libxml2 is 2.9.0

Downloading libxml2 into libs/libxml2-2.9.0.tar.gz

Unpacking libxml2-2.9.0.tar.gz into build/tmp

Latest version of libxslt is 1.1.27

Downloading libxslt into libs/libxslt-1.1.27.tar.gz

Unpacking libxslt-1.1.27.tar.gz into build/tmp

Starting build in build/tmp/libiconv-1.14

Starting build in build/tmp/libxml2-2.9.0

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/alex/.virtualenvs/SPSE/build/lxml/setup.py", line 226, in <module>

    **setup_extra_options()

  File "/home/alex/.virtualenvs/SPSE/build/lxml/setup.py", line 139, in setup_extra_options

    STATIC_CFLAGS, STATIC_BINARIES)

  File "setupinfo.py", line 57, in ext_modules

    multicore=OPTION_MULTICORE)

  File "buildlibxml.py", line 338, in build_libxml2xslt

    cmmi(libxml2_configure_cmd, libxml2_dir, multicore, **call_setup)

  File "buildlibxml.py", line 266, in cmmi

    cwd=build_dir, **call_setup)

  File "buildlibxml.py", line 249, in call_subprocess

    raise Exception('Command "%s" returned code %s' % (cmd_desc, returncode))

Exception: Command "make" returned code 512

scoder (scoder) wrote :

It looks more like a problem with your libxml2 build. Could you try if you can build libxml2 2.9.0 separately on your system?

This error hints at an issue outside of lxml:

"""
Making all in devhelp
make[3]: ingresso nella directory "/home/alex/.virtualenvs/SPSE/build/lxml/build/tmp/libxml2-2.9.0/doc/devhelp"
make[3]: *** Nessuna regola per generare l'obiettivo "home.png", necessario per "all-am". Arresto.
"""

BTW, when you post error output in an english speaking place, please make sure your clear the "LANG" environment variable before running the build, e.g. "LANG= python setup.py build".

Alessandro Guido (alexguido) wrote :

Sorry for the errors, this is my first bug report :-)
I forgot to mention that the installation of lxml is in a virtualenv with STATIC_DEPS=true (STATIC_DEPS=true pip install lxml).

Alessandro Guido (alexguido) wrote :

After some searching I think that this isn't a problem of lxml.
Sorry :-)

Alessandro Guido (alexguido) wrote :

Ok, after more (and more) searches and test, I've found that, when used with STATIC_DEPS=true, lxml can't extract correctly the package libxml2-2.9.0. In the temp directory where the lib is extracted, the .png files are missing. If I extract the package by hand in the temp dir, it work flawlessy.
It seems odd, because with the libxml2-2.8.0 all work correctly.

scoder (scoder) wrote :

The image files (and others) are explicitly excluded from the unpacking because they are not normally needed. Apparently, a hand full of image files are needed in 2.9.0 now. Here's a fix.

https://github.com/lxml/lxml/commit/9023c443ae5be0149e2ced5e93f984692a347c8e

Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Low
status: New → Fix Committed
scoder (scoder) wrote :

Fix is in lxml 3.1.

Changed in lxml:
status: Fix Committed → Fix Released
scoder (scoder) on 2013-04-28
Changed in lxml:
milestone: none → 3.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers