[Pythonmac-SIG] Pysqlite build problem

Ronald Oussoren ronaldoussoren at mac.com
Thu Oct 19 15:26:03 CEST 2006


On Oct 15, 2006, at 11:43 PM, skip at pobox.com 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 at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20061019/16d98af1/attachment.bin 


More information about the Pythonmac-SIG mailing list