SIP won't compile on OSX 10.3

Benjamin musiccomposition at gmail.com
Tue Nov 6 04:41:17 CET 2007


Hi! I'm trying to install SIP on my Mac with the eventual aim of
installing PyQt. The "python configure.py" stage works fine, but when
I type make this is what I see:
cc -c -pipe -Os -w -I. -o main.o main.c
cc -c -pipe -Os -w -I. -o transform.o transform.c
cc -c -pipe -Os -w -I. -o gencode.o gencode.c
cc -c -pipe -Os -w -I. -o export.o export.c
cc -c -pipe -Os -w -I. -o heap.o heap.c
cc -c -pipe -Os -w -I. -o parser.o parser.c
cc -c -pipe -Os -w -I. -o lexer.o lexer.c
c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o
export.o heap.o parser.o lexer.o
cc -c -pipe -fPIC -Os -w -I. -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -o siplib.o siplib.c
cc -c -pipe -fPIC -Os -w -I. -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -o qtlib.o qtlib.c
cc -c -pipe -fPIC -Os -w -I. -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -o threads.o threads.c
cc -c -pipe -fPIC -Os -w -I. -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -o objmap.o objmap.c
c++ -c -pipe -fPIC -Os -w -I. -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -o bool.o bool.cpp
c++ -headerpad_max_install_names -bundle -F/Library/Frameworks -
framework Python -o sip.so siplib.o qtlib.o threads.o objmap.o bool.o
ld: Undefined symbols:
_fstatvfs referenced from Python expected to be defined in libSystem
_lchown referenced from Python expected to be defined in libSystem
_statvfs referenced from Python expected to be defined in libSystem
make[1]: *** [sip.so] Error 1
make: *** [all] Error 2

I'm not an expert at linking, but it looks like the Python lib was
built incorrectly. Or is this a SIP problem? Thanks.




More information about the Python-list mailing list