[Pythonmac-SIG] Zope.Interface won't build on 10.4

brad.allen@omsdal.com brad.allen at omsdal.com
Wed Jul 13 15:47:08 CEST 2005


Maybe I should take this to one of  the Twisted or Zope lists, but this 
appears to be a Mac-specific issue so I thought it worth mentioning here. 
The problem is that Zope Interface 3.01 won't build on Mac OS 10.3 using 
either the stock Python 2.3 or Python 2.4.1 (error transcript at the 
bottom).

 A Google search of the problem turned up a discussion on one of the Zope 
lists about this, but I didn't understand how to implement the suggested 
solution.  One message in the thread suggests the problem is that Python 
was compiled under gcc 3.x and Mac OS 10.4 defaults to using gcc 4.x, and 
that using gcc select can fix the problem. Any thoughts on how to do that?

http://mail.zope.org/pipermail/zope3-users/2005-June/000725.html

Here is the error transcript. A similar error happens when running 
setup.py install.

oms-ballen:~/Desktop/TwistedSumo-2005-05-25/ZopeInterface-3.0.1 ballen$ 
sudo python setup.py build
Password:
running build
running build_py
running build_ext
building 'zope.interface._zope_interface_coptimizations' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-IDependencies/zope.interface-ZopeInterface-3.0.1/zope.interface 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 
-c 
Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/_zope_interface_coptimizations.c 
-o 
build/temp.darwin-8.1.0-Power_Macintosh-2.3/Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/_zope_interface_coptimizations.o
Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/_zope_interface_coptimizations.c:339: 
error: static declaration of 'SpecType' follows non-static declaration
Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/_zope_interface_coptimizations.c:73: 
error: previous declaration of 'SpecType' was here
error: command 'gcc' failed with exit status 1 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050713/62490071/attachment.htm


More information about the Pythonmac-SIG mailing list