[Buildbot-devel] fyi: mac os x tiger, gcc 3.3 vs. ZopeInterface

Stephen Davis stephendavis at mac.com
Mon Jul 11 21:26:39 UTC 2005


All,

I discovered a problem with ZopeInterface (a pre-req for Twisted  
2.0.1) on OS X Tiger and thought I would let the list know the  
workaround I found.

On tiger, the default system compiler is gcc 4.0 but the current  
3.0.1 tarball of ZopeInterface won't compile with it (fix below) so I  
changed the system compiler to 3.3 and rebuilt.  Apparently, this was  
a bad idea because launching a buildbot will fail to launch with the  
following error:

[snip]
2005/07/08 18:53 PDT [-]   File "/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/site-packages/twisted/ 
internet/posixbase.py", line 46, in ?
2005/07/08 18:53 PDT [-]     import process
2005/07/08 18:53 PDT [-]   File "/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/site-packages/twisted/ 
internet/process.py", line 31, in ?
2005/07/08 18:53 PDT [-]     from twisted.internet.error import  
ProcessExitedAlready
2005/07/08 18:53 PDT [-] ImportError: cannot import name  
ProcessExitedAlready

Building ZopeInterface with gcc 4.0 instead will fix the problem but  
first you have to modify one file in the downloaded tarball first.

http://www.zope.org/Products/ZopeInterface/3.0.1final/ 
ZopeInterface-3.0.1.tgz

--> Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/ 
_zope_interface_coptimizations.c

At line 73, it says:

extern PyTypeObject SpecType;   /* Forward */

You need to change it to:

static PyTypeObject SpecType;   /* Forward */

Just thought this info might help somebody.

stephen




More information about the devel mailing list