[lxml-dev] Build error of lxml 2.1

Stefan Behnel stefan_ml at behnel.de
Wed Sep 17 19:21:33 CEST 2008


Hi,

I never used SunOS or tried to build lxml on it, but ...

Owen Zhang wrote:
> I am trying to build *lxml* 2.1 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/
> Python.h:41,
>                  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

This looks like there is something wrong on your system. Have you looked into
the /usr/include/sys/siginfo.h file to see what the compiler is complaining
about in the above lines? Where is the ctid_t type defined on your system?

Stefan


More information about the lxml-dev mailing list