[Twisted-Python] error "limits.h missing" while compiling zope interface in Sumo on mac os x 10.4.6 Py 2.4

Nitin Borwankar on Twisted-Python list nitin-twisted at borwankar.com
Wed Apr 19 11:46:42 MDT 2006


Hello Twisted gurus,

Apologies if this is a FAQ - couldn't find answers in the obvious
places. ( list archives, google, ...).

I've been trying to build the TwistedSumo-2006-02-12 package -
especially the ZopeInterface package within, and am getting the
following errors
about limits.h not being found.
This is on Mac OS X 10.4.6 on a PPC powerbook G4 with gcc 4.0, I tried
swicthing to 3.3 via gcc_select and got a different error about gcc
command line switches.
An 'ls' on
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/
indicates that indeed there's no limits.h there.
Separately downloading earlier stable ZopeInterface version and building
gave exactly the same error.

Python 2.4 is the default python installed via the MacPython 2.4 dmg.
An older Python 2.3 also exists on the system but 2.4 is ahead in the
PATH.

Any help getting past this appreciated.

Nitin Borwankar

gcc 4.0 errors
-----------------

nitin-pbook:~/dl/TwistedSumo-2006-02-12/ZopeInterface-3.1.0c1 nitin$
sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'zope.interface._zope_interface_coptimizations' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g
-IDependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
Dependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface/_zope_interface_coptimizations.c
-o
build/temp.macosx-10.4-fat-2.4/Dependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface/_zope_interface_coptimizations.o
In file included from
Dependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface/_zope_interface_coptimizations.c:15:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:18:20:
error: limits.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:21:2:
error: #error "Something's broken.  UCHAR_MAX should be defined in
limits.h."
[...]
many more errors which I guess stem from limits.h not being found

gcc 3.3 errors
-----------------

nitin$ sudo gcc_select 3.3
Password:
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
nitin-pbook:~/dl/TwistedSumo-2006-02-12/ZopeInterface-3.1.0c1 nitin$
sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'zope.interface._zope_interface_coptimizations' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g
-IDependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
Dependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface/_zope_interface_coptimizations.c
-o
build/temp.macosx-10.4-fat-2.4/Dependencies/zope.interface-ZopeInterface-3.1.0c1/zope.interface/_zope_interface_coptimizations.o
gcc: cannot specify -o with -c or -S and multiple compilations
error: command 'gcc' failed with exit status 1






-- 
  Nitin Borwankar
  nitin at borwankar.com





More information about the Twisted-Python mailing list