Tuesday, March 30, 2010

Mac stdarg.h build error

I ran into this error while trying to build psycopg on a mac.

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory


I solved it by renaming stdarg.h and replacing it with a link to

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc/darwin/3.3/stdarg.h

This should work if you're trying to build the python mysql module too.