Hi, everyone. I've been trying to compile flac 1.2.1 on OSX by using the 10.4 SDK. I need to use the 10.4 SDK because the application linking to flac requires it. Compiling flac with 10.5 results in link issues due to 10.5's fopen being different.
Unfortunately, when trying to compile using a command such as: CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" CXXFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" CPPFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" ./configure --disable-asm-optimizations --enable-shared=false --prefix=$PWD/build-osx --with-ogg-libraries=$PWD/../../OGG/libogg-1.3.0/macosx/build/Release --with-ogg-includes=$PWD/../../OGG/libogg-1.3.0/include; make I end up with the following error In file included from main.c:26: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory main.c: In function ‘usage_error’: main.c:1116: warning: implicit declaration of function ‘va_start’ main.c:1120: warning: implicit declaration of function ‘va_end’ make[3]: *** [main.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I suspect this has something to do with gcc 4.0 not being used. I remember trying to go down that path of forcing gcc 4.0 to be used without much luck but I can't recall was command I used to do so (so can't post it here) As I've spend a ridiculous amount of time on this, including trying to compile the source using an xcode project (which did work until the app that requires flac gave me all sorts of stack_chk_fail errors (http://tinyurl.com/76uegap) ) I thought I'd post here to inquire if any one has been able to compile using 10.4 SDK Any help with this would be greatly appreciated. Cheers Glenn _______________________________________________ flac-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/flac-dev
