Hi, I'm trying to install mysql on solaris 10, sparc. I'm using gcc 3.4.6. I downloaded the source, and did the configure using the recommended: CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \ -fno-exceptions -fno-rtti" ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static Then I went ahead and tried a make, i get this: make[3]: *** [libedit.a] Error 1 make[3]: Leaving directory `/tmp/ben/mysql-5.0.37/cmd-line-utils/libedit' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/ben/mysql-5.0.37/cmd-line-utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/ben/mysql-5.0.37' I tried looking in the config.log file, i *think* these are the problem parts... configure:4135: gcc -c -O3 conftest.c >&5 conftest.c:2: error: syntax error before "me" configure:4141: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif
conftest.cc: In function `int main()': conftest.cc:31: error: `exit' was not declared in this scope configure:4769: $? = 1 configure: failed program was: | /* confdefs.h. */ configure:23124: checking term.h usability configure:23136: gcc -c -O3 conftest.c >&5 In file included from conftest.c:103: /usr/include/term.h:1034: error: syntax error before "bool" /usr/include/term.h:1060: error: syntax error before "SGTTY" /usr/include/term.h:1081: error: syntax error before "sgr_mode" /usr/include/term.h:1082: error: syntax error before "sgr_faked" /usr/include/term.h:1092: error: syntax error before "funckeystarter" /usr/include/term.h:1094: error: syntax error before "_fl_rawmode" /usr/include/term.h:1101: error: syntax error before "_input_queue" /usr/include/term.h:1108: error: syntax error before '*' token /usr/include/term.h:1111: error: syntax error before "bit_vector" /usr/include/term.h:1115: error: syntax error before "check_turn_off" /usr/include/term.h:1116: error: syntax error before "non_faked_mode" /usr/include/term.h:1117: error: syntax error before "_cur_pair" /usr/include/term.h:1118: error: syntax error before '*' token /usr/include/term.h:1120: error: syntax error before '}' token /usr/include/term.h:1207: error: syntax error before "int" /usr/include/term.h:1207: error: `vidputs' declared as function returning a function /usr/include/term.h:1207: error: syntax error before ')' token configure:23142: $? = 1 configure:6554: gcc -E conftest.cc conftest.cc:41:28: ac_nonexistent.h: No such file or directory configure:23124: checking select.h usability configure:23136: gcc -c -O3 conftest.c >&5 conftest.c:90:20: select.h: No such file or directory configure:23142: $? = 1 configure:23124: checking sys/vadvise.h usability configure:23136: gcc -c -O3 conftest.c >&5 conftest.c:102:25: sys/vadvise.h: No such file or directory configure:23142: $? = 1 and a whole bunch more... But it appears that this conftest and confdefs thing show up a lot... Is there something I did wrong? or am I even looking at the right things? Sorry to ask so many questions. I just started to use unix and compiling and installing... If i'm posting in the wrong mailing list, please let me know where I should post. Thank you very much, Ben