You are not logged in.

#1 2013-05-31 09:30:18

dejakaymac
Member
Registered: 2011-10-19
Posts: 9

libxml2-python build error: dereferencing pointer to incom... [SOLVED]

Hi,

I am failing to build libxml2-python-2.6.21 on my arch laptop. The build works fine on my debian machine. The build command and output are:

$ python2.7 setup.py build
/usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'libxml2mod' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_REENTRANT=1 -DMERGED_MODULES=1 -I/usr/include/libxml2 -I/usr/include -I/usr/include/libxslt -I/usr/include/python2.7 -c libxml2-py.c -o build/temp.linux-x86_64-2.7/libxml2-py.o
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_REENTRANT=1 -DMERGED_MODULES=1 -I/usr/include/libxml2 -I/usr/include -I/usr/include/libxslt -I/usr/include/python2.7 -c libxml.c -o build/temp.linux-x86_64-2.7/libxml.o
libxml.c: In function ‘libxml_serializeNode’:
libxml.c:2807:28: error: dereferencing pointer to incomplete type
             len = buf->conv->use;
                            ^

Any advice, or suggestions appreciated!

--EDIT--  2013-06-01
The problem was that I was compiling the third-party components of some code that shipped with an old version of libxml2-python. Compilation of the old libxml2-python against a much newer libxml2 failed. It seems that the libxml2 python bindings are now part of libxml2.
Rather than modify the build process of the code it was possible to replace the old external  python-libxml2 with that which resides in libxml2/python.

Last edited by dejakaymac (2013-06-01 03:30:30)

Offline

Board footer

Powered by FluxBB