List:General Discussion« Previous MessageNext Message »
From:Fredrik Axtelius Date:March 30 1999 2:20pm
Subject:Error compiling 3.22.20 with egcs-1.1.2
View as plain text  
Tried to compiled 3.22.20 on a Sun Ultra 450 with Solaris 2.7, egcs-1.1.2 
and
GNU make 3.77.
Got the following error:

(cd .libs && ln -s libmysqlclient.so.6.0.0 libmysqlclient.so)
ar cru .libs/libmysqlclient.a libmysql.o net.o password.o get_password.o 
errmsg.
o my_init.o my_static.o my_malloc.o my_realloc.o my_create.o my_delete.o 
my_temp
nam.o my_open.o mf_casecnv.o my_read.o my_write.o errors.o my_error.o 
my_lib.o m
y_getwd.o my_div.o mf_pack.o my_messnc.o mf_dirname.o mf_wcomp.o 
typelib.o safem
alloc.o my_alloc.o getopt.o getopt1.o getvar.o mf_format.o mf_path.o 
mf_unixpath
.o my_fopen.o mf_loadpath.o my_pthread.o my_thr_init.o thr_mutex.o 
mulalloc.o st
ring.o default.o my_compress.o array.o my_once.o strmov.o strxmov.o 
strnmov.o st
rmake.o strend.o strfill.o ct_init.o is_prefix.o int2str.o str2int.o 
strinstr.o
strcont.o strcend.o bchange.o bmove.o bmove_upp.o ctype-latin1.o dbug.o
ranlib .libs/libmysqlclient.a
creating libmysqlclient.la
(cd .libs && ln -s ../libmysqlclient.la libmysqlclient.la)
c++ -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I..  -O 
  -fno
-implicit-templates -DDBUG_OFF -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-c mys
ql.cc
In file included from mysql.cc:50:
/usr/include/term.h:1060: syntax error before `,'
/usr/include/term.h:1081: syntax error before `;'
/usr/include/term.h:1082: syntax error before `;'
/usr/include/term.h:1101: syntax error before `['
/usr/include/term.h:1108: syntax error before `*'
/usr/include/term.h:1111: syntax error before `;'
/usr/include/term.h:1115: syntax error before `;'
/usr/include/term.h:1116: syntax error before `;'
/usr/include/term.h:1209: `chtype' was not declared in this scope
/usr/include/term.h:1209: parse error before `('
make[2]: *** [mysql.o] Error 1
make[2]: Leaving directory `/root/downloads/mysql-3.22.20a/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/mysql-3.22.20a'
make: *** [all-recursive-am] Error 2

root@nic# gcc -v
Reading specs from 
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.7/egcs-2.91.66
/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)


I have compiled on other versions of Solaris with egcs-1.1.1 with no 
problems.
I used ./configure --prefix=/export/mysql

Any ideas??

Thread
Error compiling 3.22.20 with egcs-1.1.2Fredrik Axtelius30 Mar