py27-pyobjc-cocoa build error

Adam MacBeth amacbeth at gmail.com
Sat Mar 24 12:12:15 PDT 2012


When I do:

   sudo port install py27-pyobjc-cocoa

it fails with the following errors. I have updated/upgraded/cleaned
all ports. I'm on OSX 10.7.3 with XCode 4.3.

Does this look like a bug or something wrong with my local setup?

Thanks,
Adam

---

>From the log:

:info:build /usr/bin/clang -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-arch x86_64 -Ibuild/temp.macosx-10.7-x86_64-2.7/pyobjc-include
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c Modules/_CoreFoundation_inlines.m -o
build/temp.macosx-10.7-x86_64-2.7/Modules/_CoreFoundation_inlines.o
-DPyObjC_BUILD_RELEASE=1007 -isysroot /
:info:build Modules/_CoreFoundation_inlines.m:7:8: error: unknown type
name 'PyObjC_function_map'
:info:build static PyObjC_function_map function_map[] = {
:info:build        ^
:info:build Modules/_CoreFoundation_inlines.m:8:29: error: use of
undeclared identifier 'PyObjC_Function_Pointer'
:info:build         {"CFByteOrderGetCurrent",
(PyObjC_Function_Pointer)&CFByteOrderGetCurrent },
:info:build                                    ^
:info:build Modules/_CoreFoundation_inlines.m:9:36: error: use of
undeclared identifier 'PyObjC_Function_Pointer'
:info:build         {"CFConvertDoubleHostToSwapped",
(PyObjC_Function_Pointer)&CFConvertDoubleHostToSwapped },

...

:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build error: command '/usr/bin/clang' failed with exit status 1
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py27-pyobjc-cocoa/py27-pyobjc-cocoa/work/pyobjc-framework-Cocoa-2.3"
&& /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed
(see log for details)


More information about the macports-users mailing list