[lxml-dev] lxml 2.0alpha5 fails to build on OS X 10.3.9

Hi, I was trying to install the latest lxml on my box, but it failed with these errors. (I can build lxml-2.0alpha4 on my box without any problems) $ python2.5 setup.py build Building lxml version 2.0.alpha5. NOTE: Trying to build without Cython, pre-generated 'src/lxml/etree.c' needs to be available. running build running build_py creating build creating build/lib.macosx-10.3-ppc-2.5 creating build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/__init__.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/_elementpath.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/builder.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/cssselect.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/doctestcompare.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/ElementInclude.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/htmlbuilder.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/sax.py -> build/lib.macosx-10.3-ppc-2.5/lxml copying src/lxml/usedoctest.py -> build/lib.macosx-10.3-ppc-2.5/lxml creating build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/__init__.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/builder.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/clean.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/defs.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/diff.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/formfill.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/setmixin.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.3-ppc-2.5/lxml/html running build_ext building 'lxml.etree' extension creating build/temp.macosx-10.3-ppc-2.5 creating build/temp.macosx-10.3-ppc-2.5/src creating build/temp.macosx-10.3-ppc-2.5/src/lxml gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -O2 -g -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/python2.5 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.3-ppc-2.5/src/lxml/lxml.etree.o -w gcc -L/opt/local/lib -lcc_dynamic -bundle -undefined dynamic_lookup build/temp.macosx-10.3-ppc-2.5/src/lxml/lxml.etree.o -L/opt/local/lib -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.3-ppc-2.5/lxml/etree.so building 'lxml.objectify' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -O2 -g -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/python2.5 -c src/lxml/lxml.objectify.c -o build/temp.macosx-10.3-ppc-2.5/src/lxml/lxml.objectify.o -w src/lxml/lxml.objectify.c:49:28: lxml.etree_api.h: No such file or directory src/lxml/lxml.objectify.c:175: error: field `__pyx_base' has incomplete type src/lxml/lxml.objectify.c:348: error: field `__pyx_base' has incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8__dict_____get__': src/lxml/lxml.objectify.c:1472: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:1472: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:1487: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:1538: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_18ObjectifiedElement___setattr__': src/lxml/lxml.objectify.c:2076: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_18ObjectifiedElement___setitem__': src/lxml/lxml.objectify.c:3263: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:3264: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__findFollowingSibling': src/lxml/lxml.objectify.c:4412: error: `nextElement' undeclared (first use in this function) src/lxml/lxml.objectify.c:4412: error: (Each undeclared identifier is reported only once src/lxml/lxml.objectify.c:4412: error: for each function it appears in.) src/lxml/lxml.objectify.c:4433: error: `previousElement' undeclared (first use in this function) src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:4545: error: conflicting types for `__pyx_f_4lxml_9objectify__lookupChild' src/lxml/lxml.objectify.c:669: error: previous declaration of `__pyx_f_4lxml_9objectify__lookupChild' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__lookupChild': src/lxml/lxml.objectify.c:4556: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4644: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4719: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4734: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:4751: error: conflicting types for `__pyx_f_4lxml_9objectify__lookupChildOrRaise' src/lxml/lxml.objectify.c:670: error: previous declaration of `__pyx_f_4lxml_9objectify__lookupChildOrRaise' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__lookupChildOrRaise': src/lxml/lxml.objectify.c:4757: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4820: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:4833: error: conflicting types for `__pyx_f_4lxml_9objectify__buildChildTag' src/lxml/lxml.objectify.c:671: error: previous declaration of `__pyx_f_4lxml_9objectify__buildChildTag' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__buildChildTag': src/lxml/lxml.objectify.c:4842: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4940: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4940: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:4978: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:4994: error: conflicting types for `__pyx_f_4lxml_9objectify__replaceElement' src/lxml/lxml.objectify.c:672: error: previous declaration of `__pyx_f_4lxml_9objectify__replaceElement' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__replaceElement': src/lxml/lxml.objectify.c:5001: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5022: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5022: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5170: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5171: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:5184: error: conflicting types for `__pyx_f_4lxml_9objectify__appendValue' src/lxml/lxml.objectify.c:673: error: previous declaration of `__pyx_f_4lxml_9objectify__appendValue' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__appendValue': src/lxml/lxml.objectify.c:5192: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5215: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5215: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5337: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5339: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:5361: error: conflicting types for `__pyx_f_4lxml_9objectify__setElementValue' src/lxml/lxml.objectify.c:674: error: previous declaration of `__pyx_f_4lxml_9objectify__setElementValue' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__setElementValue': src/lxml/lxml.objectify.c:5371: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5426: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5567: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5580: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:5591: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__strValueOf': src/lxml/lxml.objectify.c:8883: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__': src/lxml/lxml.objectify.c:12973: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:12974: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:12991: error: conflicting types for `__pyx_f_4lxml_9objectify__add_text' src/lxml/lxml.objectify.c:682: error: previous declaration of `__pyx_f_4lxml_9objectify__add_text' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__add_text': src/lxml/lxml.objectify.c:12998: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13009: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13077: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13114: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13126: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:13238: error: conflicting types for `__pyx_f_4lxml_9objectify__dump' src/lxml/lxml.objectify.c:683: error: previous declaration of `__pyx_f_4lxml_9objectify__dump' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__dump': src/lxml/lxml.objectify.c:13253: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13308: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:13772: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:14081: error: conflicting types for `__pyx_f_4lxml_9objectify__lookupElementClass' src/lxml/lxml.objectify.c:685: error: previous declaration of `__pyx_f_4lxml_9objectify__lookupElementClass' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__lookupElementClass': src/lxml/lxml.objectify.c:14093: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:14523: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_pyannotate': src/lxml/lxml.objectify.c:14748: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_xsiannotate': src/lxml/lxml.objectify.c:14839: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_annotate': src/lxml/lxml.objectify.c:14959: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: At top level: src/lxml/lxml.objectify.c:15002: error: conflicting types for `__pyx_f_4lxml_9objectify__annotate' src/lxml/lxml.objectify.c:687: error: previous declaration of `__pyx_f_4lxml_9objectify__annotate' src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__annotate': src/lxml/lxml.objectify.c:15023: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:15079: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:15081: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:15237: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:16441: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:16452: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_deannotate': src/lxml/lxml.objectify.c:16513: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:16695: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_10ObjectPath___call__': src/lxml/lxml.objectify.c:18931: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:19029: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_10ObjectPath_setattr': src/lxml/lxml.objectify.c:19153: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:19175: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_pf_4lxml_9objectify_10ObjectPath_addattr': src/lxml/lxml.objectify.c:19198: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:19220: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__findObjectPath': src/lxml/lxml.objectify.c:20518: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:20529: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:20775: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:20842: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `__pyx_f_4lxml_9objectify__createObjectPath': src/lxml/lxml.objectify.c:20877: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:20912: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21185: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21228: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21260: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21282: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21316: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21350: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c:21352: error: dereferencing pointer to incomplete type src/lxml/lxml.objectify.c: In function `initobjectify': src/lxml/lxml.objectify.c:24784: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24853: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24865: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24866: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24867: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24868: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24869: error: invalid application of `sizeof' to an incomplete type src/lxml/lxml.objectify.c:24870: error: invalid application of `sizeof' to an incomplete type error: command 'gcc' failed with exit status 1 any clues?

Hi, thanks for the report. js wrote:
There were pre-generated files missing from the tgz that are only required when you build without having Cython installed (which I didn't test...). They were renamed since alpha4 but were not adapted in the MANIFEST that defines the archive content. I just re-uploaded a fixed archive (same version number, as nothing else changed). Please retry with that. Stefan

Hi, thanks for the report. js wrote:
There were pre-generated files missing from the tgz that are only required when you build without having Cython installed (which I didn't test...). They were renamed since alpha4 but were not adapted in the MANIFEST that defines the archive content. I just re-uploaded a fixed archive (same version number, as nothing else changed). Please retry with that. Stefan
participants (2)
-
js
-
Stefan Behnel