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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/09/12 10:44 pm, Glenn McCord wrote:> 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 directoryThis error makes no sense, perhaps your install is broken? What is line 4 of /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h? Here stdarg.h ultimately links to 386/stdarg.h where the macros for va_start and va_end are defined.> 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 1Grep your include tree, I guess /Developer/SDKs/MacOSX10.4u.sdk/usr/include, for va_start and va_end for the include where they are defined. Dave -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (OS/2) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBTzTE43oc36Ns6m33AQKIEQf/diS0YuKVnVQmCAadBCmKIUWKR+Rv3UaA y15Pl8qzTacfOwMNRXYj+yb1c35GwlQVfNhrGlRsS1Su4kXNgm/0I3G+ZZKQ3rPB vNMdDDQQnpk1Auc6IR3Zf0sUWJK4NNJpPokXf9EfkQSR/5//1tjoXKMZyD4WsrmT BUvOQni3nbekai2QLfvh74S3q2tAy+GEAJS3FSipej+ZMI0efIETHVzuS7QN3WBt s0KtgY+GPUOmQkrTod6Iixoz3mANY70QfylluTmhQd/e0rabgiUDwOT+kL/BZi/k G5x4hrIjJe7vugxkqCEAu0qQNpb1n0w3UnIkW75vWGzaN7zNsmKOWQ==5v5r -----END PGP SIGNATURE-----
Hi Glenn, Thanks for your efforts to support 10.4 I still run 10.4 on a G5. I believe that it can sometimes be more difficult to compile for 10.4 from newer systems, whereas building for 10.4 on 10.4 is a cinch. Note that the Xcode project may be broken. I don't think that anyone ever really used it. I recall trying, and it was too broken, so I gave up. What I always do with FLAC is build from the command line just like with any other flavor of Unix. Did you try building FLAC from the command line using the normal Unix instructions? When you build under Xcode, did you build the Release version instead of the Debug version? Sometimes it necessary to make a Deployment version or use something equivalent to make install. Finally, did you try the flac 1.2.1 installer disk image that I compiled? Look on flac.sourceforge.net for flac-1.2.1.dmg - it should have everything you need. If there are any problems with this build (and nobody has complained to me since 2009), then please let me know so I can make corrections and update the installer. Brian Willoughby Sound Consulting On Feb 9, 2012, at 22:44, Glenn McCord wrote:> 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. > > 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.