471,330 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Can't Find Headers on OSX

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/
Nov 30 '07 #1
1 3441
Calvin Spealman schrieb:
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: :
Do you have the XCode tools insalled? The Python.h seems to pull in some
basic headers that aren't found - usually, these should ship with the
OSX SDK that is part of XCode

Diez
Nov 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by andrew blah | last post: by
6 posts views Thread by scottyman | last post: by
5 posts views Thread by Milos Prudek | last post: by
7 posts views Thread by Jim Richards | last post: by
reply views Thread by triplezone3 | last post: by
12 posts views Thread by Adam Chapman | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.