lxml build error in sun

Owen Zhang owenzhang.chicago at gmail.com
Fri Sep 12 22:34:02 CEST 2008

I am trying to build lxml package in SunOS 5.10. I got the following
errors. Does anybody know why?

$ python setup.py build
Building lxml version 2.1.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/
lxml.etree.c' needs to be available.
Using build configuration of libxslt 1.1.7
Building against libxml2/libxslt in the following directory: /usr/lib
running build
running build_py
running build_ext
building 'lxml.etree' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
fPIC -I/opt/swt/install/libxml2-2.6.27/include/libxml2 -I/opt/swt/
install/Python-2.5/include/python2.5 -c src/lxml/lxml.etree.c -o build/
temp.solaris-2.10-sun4u-2.5/src/lxml/lxml.etree.o -w
In file included from /usr/include/sys/wait.h:24,
                 from /usr/include/stdlib.h:22,
                 from /opt/swt/install/Python-2.5/include/python2.5/
                 from src/lxml/lxml.etree.c:4:
/usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: syntax error before '}' token
/usr/include/sys/siginfo.h:294: error: syntax error before '}' token
/usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of
'__fault' was here

More information about the Python-list mailing list