Can't Find Headers on OSX

Calvin Spealman ironfroggy at gmail.com
Fri Nov 30 15:10:51 CET 2007


I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing
with Python.h trying to include and failing to find any of the shared
libraries. I can't figure this one out because i just don't compile
anything non trivial often.

ironfroggy:~/Desktop/pyOpenSSL-0.6 ironfroggy$ python setup.py build
running build
running build_py
running build_ext
building 'OpenSSL.crypto' 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 -O3 -I/sw/include
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-c src/crypto/crypto.c -o
build/temp.macosx-10.4-fat-2.4/src/crypto/crypto.o
In file included from src/crypto/crypto.c:11:
/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."
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:25:2:
error: #error "Python's source code assumes C's unsigned char is an
8-bit type."
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:32:19:
error: stdio.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:34:5:
error: #error "Python.h requires that stdio.h define NULL."
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:37:20:
error: string.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:38:19:
error: errno.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:39:20:
error: stdlib.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:41:20:
error: unistd.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:53:20:
error: assert.h: No such file or directory
In file included from src/crypto/crypto.c:11In file included from
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
                 from src/crypto/crypto.c:11:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:7:20:
error: :

...

-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://ironfroggy-code.blogspot.com/



More information about the Python-list mailing list