Re: Can't Find Headers on OSX



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
.



Relevant Pages

  • Re: Linker Errors 2005 and 1104
    ... Still compiles OK, but failing on linkage. ... > single-threaded and multithreaded libraries. ... > project file includes only the appropriate libraries and that any ...
    (microsoft.public.vc.mfc)
  • Re: linklisted load library failing
    ... We IPL'd on Saturday and last night all sorts of jobs started ... I then removed both of those libraries and now get an s806 ... None of the programs that are failing are ... We're in the process of having steplibs added to the jobs that are affected ...
    (bit.listserv.ibm-main)
  • Cant Find Headers on OSX
    ... I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing ... libraries. ... I depend on your acceptance of my opinion! ...
    (comp.lang.python)