[lxml-dev] lxml on OS X compile problems

Hi All, My first question - anyone successfully build lxml on OS X 10.3.9? And next, have they encoutnered the following error - specifics- OS X 10.3.9 gcc 3.3 python 2.4.4 lxml 1.1.2 libxml2 config line - ./configure \ --with-python=/Library/Frameworks/Python.framework/Versions/2.4/ libxslt config line- ./configure \ --with-python=/Library/Frameworks/Python.framework/Versions/2.4/ \ --prefix=/usr/local \ --with-libxml-prefix=/usr/local \ --with-libxml-include-prefix=/usr/local/include \ --with-libxml-libs-prefix=/usr/local/lib Results- xsltproc was compiled against libxml 20611, libxslt 10109 and libexslt 807 libxslt 10117 was compiled against libxml 20626 libexslt 807 was compiled against libxml 20611 I'm a little worried that the xsltproc wasn't combiled against the same libraries- but I'm not sure how to resolve this. I've played with installing various versions of libxslt and libxml and they seem to be installing- though all the libxml2 headers may not be installing properly. The present error occurs since I've copied the missing headers xmlstring.hand xlmsave.h to /usr/include/<etc>. Using Pyrex to create the objectify.c file doesn't help.
python setup.py install
Building lxml version 1.2.dev-35415 running install running bdist_egg running egg_info writing src/lxml.egg-info/PKG-INFO writing top-level names to src/lxml.egg-info/top_level.txt writing dependency_links to src/lxml.egg-info/dependency_links.txt reading manifest template 'MANIFEST.in' warning: no files found matching 'objectify.c' under directory 'src/lxml' warning: no files found matching '*.html' under directory 'doc' warning: no files found matching '*.py' under directory 'Pyrex' writing manifest file 'src/lxml.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.3-ppc/egg running install_lib running build_py running build_ext building 'lxml.etree' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/usr/include/libxml2 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/lxml/etree.c -o build/temp.macosx-10.3-ppc-2.4/src/lxml/etree.o -w In file included from src/lxml/etree.c:27: /usr/include/libxml2/libxml/xmlstring.h:28: error: redefinition of `xmlChar' /usr/include/libxml2/libxml/tree.h:107: error: `xmlChar' previously declared here /usr/include/libxml2/libxml/xmlstring.h:40: error: syntax error before "xmlChar" /usr/include/libxml2/libxml/xmlstring.h:41: error: parse error before "xmlStrdup" <... and much more ...> Any hints? Thanks for your time, Matt
participants (1)
-
Matt