Unable to build python bindings (libxml2 2.6.20, python 2.3.5, mac os x 10.3.9)
Christian Heimes <[email protected]> Tue, 26 Jul 2005 16:47:28 +0200
| Newsgroups | gmane.comp.gnome.lib.xml.bindings |
|---|---|
| Message-ID | <[email protected]> |
Error with python2.3.5 running build running build_py running build_ext building 'libxml2mod' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/usr/include/libxml2 -I/usr/include -I/usr/local/include/python2.3 -c types.c -o build/temp.darwin-7.9.0-Power_Macintosh-2.3/types.o In file included from types.c:9: libxml_wrap.h:124: error: parse error before "xmlErrorPtr" libxml_wrap.h:124: warning: no semicolon at end of struct or union libxml_wrap.h:125: warning: type defaults to `int' in declaration of `PyError_Object' libxml_wrap.h:125: warning: data definition has no type or storage class libxml_wrap.h:245: error: parse error before "error" libxml_wrap.h:245: warning: function declaration isn't a prototype types.c:723: error: parse error before "error" types.c:724: warning: function declaration isn't a prototype types.c: In function `libxml_xmlErrorPtrWrap': types.c:730: error: `error' undeclared (first use in this function) types.c:730: error: (Each undeclared identifier is reported only once types.c:730: error: for each function it appears in.) error: command 'gcc' failed with exit status 1 Error with Python 2.4.1 running build running build_py running build_ext building 'libxml2mod' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/usr/include/libxml2 -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c libxml2-py.c -o build/temp.darwin-7.9.0-Power_Macintosh-2.4/libxml2-py.o In file included from libxml2-py.c:7: libxml_wrap.h:124: error: parse error before "xmlErrorPtr" libxml_wrap.h:124: warning: no semicolon at end of struct or union libxml_wrap.h:125: warning: type defaults to `int' in declaration of `PyError_Object' libxml_wrap.h:125: warning: data definition has no type or storage class libxml_wrap.h:245: error: parse error before "error" libxml_wrap.h:245: warning: function declaration isn't a prototype libxml2-py.c: In function `libxml_xmlSchemaWhiteSpaceReplace': ... more Python 2.3.5 (#1, May 25 2005, 18:29:45) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Mac OS X 10.3.9 XCode 1.5 Darwin Ports Darwin Ports has only libxml2 2.6.19 which fails with the same error message so I tried 2.6.20 which fails, too. Christian