[Pyobjc-dev] Problem building pyobjc from SVN
Brought to you by:
ronaldoussoren
From: <py...@db...> - 2009-04-14 18:01:35
|
*tap, tap, tap* is this thing on? Re-sending this as it didn't appear to go through the first time. My apologies to the list if both copies somehow make it through eventually.<br /> <br /> I am having trouble building the latest pyobjc from subversion (or easy-install for that matter). A touch of background and then the error:<br /> <br /> I started out doing my python development in XCode using the OOTB templates in Leopard and was able to get a working application. However, after finding that my apps wouldn't run on 10.4, etc, I decided to try to go the py2app route.<br /> <br /> At the admonition of various documents and websites, I installed the latest release of Python 2.x for Mac from python.org (2.6.1). However, after trying (and failing) to get py2app to work with 2.6, I went back and installed a fresh copy of PythonMac's latest 2.5 release. Once I did that, py2app installed well, but now that I have that running, I can't get pyobjc to compile.<br /> <br /> I've tried checking out the source from SVN and doing a ./02-develop-all from the pyobjc directory in my working copy. I also tried "easy-install pyobjc". Both lead to the same result. The easy-install attempt just stopped after the build failure, the 02-develop-all attempt just kept trying over and over to re-download, compile, etc the failing module. Below is one instance of the offending install step.<br /> <br /> Anybody else have this problem and overcome it?<br /> <br /> Downloading http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/pyobjc-framework-Cocoa-2.2b1.tar.gz#md5=5ad60a840e0731d8bb12731a91bc9060<br /> Processing pyobjc-framework-Cocoa-2.2b1.tar.gz<br /> Running pyobjc-framework-Cocoa-2.2b1/setup.py -q bdist_egg --dist-dir /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-/easy_install-1whHNo/pyobjc-framework-Cocoa-2.2b1/egg-dist-tmp-nFXLc1<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ëlengthí was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ëPyString_FromStringAndSizeí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ëPyInt_FromLongí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ëlengthí was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ëPyString_FromStringAndSizeí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ëPyInt_FromLongí makes integer from pointer without a cast<br /> lipo: can't figure out the architecture type of: /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-//ccamGYMc.out<br /> error: Setup script exited with error: command 'gcc' failed with exit status 1<br /> <br /> Daniel<br /> |