By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

SIP won't compile on OSX 10.3

P: n/a
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.

Nov 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 5, 10:41 pm, Benjamin <musiccomposit...@gmail.comwrote:
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.
Do a google search for _fstatvfs, _lchown, _statvfs. I don't use mac
but I'd guess your missing a needed library.

Nov 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.