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

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@borwankar.com

On Apr 19, 2006, at 10:46, Nitin Borwankar on Twisted-Python list wrote:
limits.h is a system header. From the invocation of gcc:
... it looks as if there's something wrong with your /Developer/SDKs/ MacOSX10.4u.sdk, since the compiler should be picking up a correct limits.h from somewhere in that tree. Is that directory installed on your machine? What version of Xcode do you have? --Grant Grant Baillie Open Source Applications Foundation http://www.osafoundation.org

On Apr 19, 2006, at 10:46, Nitin Borwankar on Twisted-Python list wrote:
limits.h is a system header. From the invocation of gcc:
... it looks as if there's something wrong with your /Developer/SDKs/ MacOSX10.4u.sdk, since the compiler should be picking up a correct limits.h from somewhere in that tree. Is that directory installed on your machine? What version of Xcode do you have? --Grant Grant Baillie Open Source Applications Foundation http://www.osafoundation.org
participants (2)
-
Grant Baillie
-
Nitin Borwankar on Twisted-Python list