[Pythonmac-SIG] Pysqlite build problem
skip at pobox.com
skip at pobox.com
Sun Oct 15 23:43:30 CEST 2006
I'm trying to get pysqlite 2.3.2 built on my Mac (OSX 10.4.8, gcc-4.0,
Python 2.4.4c1). Sqlite built and installed into /usr/local just fine. I
adjusted setup.cfg appropriately:
[build_ext]
define=
include_dirs=/usr/local/include:/usr/include
library_dirs=/usr/local/lib:/usr/lib
libraries=sqlite3
and tried building:
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.4
creating build/lib.macosx-10.3-fat-2.4/pysqlite2
copying pysqlite2/__init__.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2
copying pysqlite2/dbapi2.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2
creating build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/__init__.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/dbapi.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/factory.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/hooks.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/regression.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/transactions.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/types.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
copying pysqlite2/test/userfunctions.py -> build/lib.macosx-10.3-fat-2.4/pysqlite2/test
running build_ext
building 'pysqlite2._sqlite' extension
creating build/temp.macosx-10.3-fat-2.4
creating build/temp.macosx-10.3-fat-2.4/src
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 -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/module.c -o build/temp.macosx-10.3-fat-2.4/src/module.o
In file included from /usr/include/math.h:28,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:94,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
from src/connection.h:26,
from src/module.c:24:
/usr/include/architecture/i386/math.h:439: warning: conflicting types for built-in function 'scalb'
In file included from /usr/include/math.h:26,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:94,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
from src/connection.h:26,
from src/module.c:24:
/usr/include/architecture/ppc/math.h:477: warning: conflicting types for built-in function 'scalb'
In file included from /usr/include/wchar.h:112,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/unicodeobject.h:118,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:81,
from src/connection.h:26In file included from /usr/include/wchar.h:112,
from src/module.c:24:
,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/unicodeobject.h:118/usr/include/stdarg.h:4:25:,
from /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:81 ,
from src/connection.h:26error: ,
from src/module.c:24:
stdarg.h: No such file or directory/usr/include/stdarg.h:4:25:
error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//ccofOA40.out
error: command 'gcc' failed with exit status 1
It seems the compile is failing on the
#include_next <stdarg.h>
line in /usr/include/stdarg.h. Running find against /usr indicates that
there are several 4.0 versions of stdarg.h:
/usr/include/gcc/darwin/3.3/stdarg.h
/usr/include/stdarg.h
/usr/lib/gcc/i686-apple-darwin8/4.0.0/include/stdarg.h
/usr/lib/gcc/i686-apple-darwin8/4.0.0/install-tools/include/stdarg.h
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/include/stdarg.h
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/install-tools/include/stdarg.h
I tried reinstalling XCode 2 from the install disk, but I still don't see a
gcc 4.0 version of stdarg.h. /usr/bin/gcc is a symlink to /usr/bin/gcc-4.0.
Software Update says my machine is up-to-date.
I must be missing something, but what?
Thx,
Skip
More information about the Pythonmac-SIG
mailing list