On Oct 15, 2006, at 11:43 PM, [EMAIL PROTECTED] wrote:

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:
[... snip build trac]
    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?

The 10.4u SDK. You have to install the MacOSX10.4u SDK. The easiest way to do that is to reinstall Xcode and make sure you select 10.4 universal SDK on the 'customize...' page.

Ronald


Thx,

Skip
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to