Find it gcc 3.3 dont support space character (0x20) before #ifdef try this :
test.c #include <math.h> int main() { return 0; } gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -c -o test.o test.c you have the same errors ... but this works gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -E -c -o test.o test.c also gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -c -o test.o test.c Payman Payman <[EMAIL PROTECTED]> wrote: > Hi Theodore > I download 7.3.4 and build it !!! > > All of PostgreSQL successfully made. Ready to install. > > i am in OS X.2.6 and > % gnumake -v > GNU Make version 3.79, by Richard Stallman and Roland McGrath. > Built for powerpc-apple-darwin6.0 > Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 > Free Software Foundation, Inc. > i dont patch gcc 3.3 ... > In gcc 3.1 all works ... > now you can do this for build with gcc 3.1 : (if you need) > > sudo /usr/sbin/gcc_select 3.1 > > I am goiing to install gcc3.3 to see the probleme !!! > > Payman > > > > > Theodore Petrosky <[EMAIL PROTECTED]> wrote: > > > Please help with a mac osx installation... I had > > installed 7.3.4 on osx 10.2.6 some months ago. it was > > a painless installation. I responded to someone on the > > apple help list about installing. this person was > > having a problem with the make stage. I didn't think > > to retry making on my system. > > > > I did. I can not make it now. I am getting an error > > > > [postgres:~/postgres/postgresql-7.3.4 copy.4] > > postgres% make > > make -C doc all > > make[1]: Nothing to be done for `all'. > > make -C src all > > make -C port all > > gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes > > -Wmissing-declarations -I../../src/include -c -o > > isinf.o isinf.c > > In file included from /usr/include/math.h:24, > > from isinf.c:5: > > /usr/include/architecture/ppc/math.h:128: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:128: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:129: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:130: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:130: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:131: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:132: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:140: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:140: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:141: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:142: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:142: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:143: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:144: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:151: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:151: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:152: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:153: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:153: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:154: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:155: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:163: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:163: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:164: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:165: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:165: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:166: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:167: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:175: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:175: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:176: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:177: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:177: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:178: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:179: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:187: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:187: error: parse > > error before "__cplusplus" > > /usr/include/architecture/ppc/math.h:188: error: > > syntax error before "inline" > > /usr/include/architecture/ppc/math.h:189: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:189: error: parse > > error before "else" > > /usr/include/architecture/ppc/math.h:190: error: > > syntax error at '#' token > > /usr/include/architecture/ppc/math.h:191: error: > > syntax error at '#' token > > make[2]: *** [isinf.o] Error 1 > > make[1]: *** [all] Error 2 > > make: *** [all] Error 2 > > > > any ideas... i believe the problem lies with the > > december 2002 update to the developers tools. > > > > Thanks, > > > > Ted > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > http://sitebuilder.yahoo.com > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED] ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend