hi everybody, it looks as if i have a problem with the gcc compiler. this occured recently, after updating to the most recent version of fink. when i'm compiling a code that use to compile fine before, here is what i'm getting:
gcc -c -O3 -I/Users/donati/lib geometry.c /usr/include/machine/types.h:34: #error architecture not supported /usr/include/machine/ansi.h:37: #error architecture not supported /usr/include/machine/endian.h:34: #error architecture not supported /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:93: undefined type, found `u_int64_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:94: undefined type, found `int64_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:98: undefined type, found `int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:99: undefined type, found `int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:100: undefined type, found `u_int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:101: undefined type, found `u_int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:102: undefined type, found `u_int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:104: undefined type, found `u_int16_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:105: undefined type, found `u_int16_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:107: undefined type, found `int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:109: undefined type, found `int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:110: undefined type, found `int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:111: undefined type, found `u_int32_t' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:123: undefined type, found `_BSD_CLOCK_T_' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:137: undefined type, found `_BSD_SSIZE_T_' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:142: undefined type, found `_BSD_TIME_T_' /usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/types.h:156: undefined type, found `int32_t' /usr/include/stdio.h:277: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:277: illegal function definition, found `)' /usr/include/stdio.h:278: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:278: illegal function definition, found `)' /usr/include/stdio.h:279: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:279: illegal function definition, found `)' /usr/include/stdio.h:281: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:281: illegal function definition, found `)' /usr/include/stdio.h:325: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:325: illegal function definition, found `)' /usr/include/stdio.h:326: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:326: illegal function definition, found `)' /usr/include/stdio.h:327: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:327: illegal function definition, found `)' /usr/include/stdio.h:328: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:328: illegal function definition, found `)' /usr/include/stdio.h:351: syntax error, found `_BSD_VA_LIST_' /usr/include/stdio.h:351: illegal function definition, found `)' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make: *** [geometry.o] Error 1 the problem looks to be coming from stdio.h. if i comment out the #include <stdio.h> line, i'm no longer getting any of this stuff, but i'm now getting gcc -c -O3 -I/Users/donati/lib geometry.c geometry.c:389: undefined type, found `FILE' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode geometry.c: In function `save_geom': geometry.c:389: error: `FILE' undeclared (first use in this function) because i need stdio.h for the definition of the FILE data type. this only appeared after the latest release of fink (if i remember correctly). in case it helps, below is the fink configuration i am under. thanks in advance for any help. cheers, jeanfrancois donati here is the fink status on my machine: OS X version: 10.3.7 Darwin version: 7.7.0 fink package manager version: 0.23.3 Fink distribution version: 0.7.1.rsync Fink updated from: rsync Checking fink-installed xfree86 packages: None X11 version installed: 4.3 Found X server Xquartz system-xfree86-shlibs provides 'x11-shlibs' system-xfree86 provides 'xserver', 'x11' Found header X11/Xlib.h: system-xfree86-dev provides 'x11-dev' Found library libGL.1.dylib: system-xfree86-shlibs provides 'libgl-shlibs' and system-xfree86 provides 'libgl' Found headers GL/gl.h: system-xfree86-dev provides 'libgl-dev' Found library libXft.1.dylib: system-xfree86-shlibs provides 'xft1-shlibs' Found libXft.dylib as symlink to libXft.2* and header X11/Xft/Xft.h: system-xfree86-dev provides 'xft2-dev' and system-xfree86 provides 'xft2' Found library libXft.2.dylib: system-xfree86-shlibs provides 'xft2-shlibs' Found libfontconfig.dylib as symlink to libfontconfig.1* and header fontconfig/fontconfig.h: system-xfree86-dev provides 'fontconfig1-dev' and system-xfree86 provides 'fontconfig1' Found library libfontconfig.1.dylib: system-xfree86-shlibs provides 'fontconfig1-shlibs' Found binary rman: system-xfree86 provides 'rman' Found threaded version of libXt.6.dylib: system-xfree86-shlibs provides 'xfree86-base-threaded-shlibs' and system-xfree86 may provide 'xfree86-base-threaded' -- ----------------------------------------------------- Jean-Francois Donati Laboratoire d'Astrophysique, Observatoire Midi-Pyrenees 14 avenue Edouard Belin, F-31400 Toulouse, France Tel: (33) 561332917 Fax: (33) 561332840 e-mail: [EMAIL PROTECTED] ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
