Solaris 2.7 compile error
am 17.04.2003 21:46:47 von Craig TammelI'm stuck back in Solaris 2.7 (clickxchange.com) and now need to compile since there are no longer any binary dist.
Any help on this would be greatly appreciated!
Craig Tammel
clickxchange.com
I have this error while compiling and have had no luck fixing it:
OS: Solaris 2.7
gcc: 3.2.2 with --disable-nls (from sunfreeware.com)
make: 3.80
Configure command:
CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/newraid/mysql-4.0.12 --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --with-named-
z-libs=no --with-named-curses-libs=-lcurses --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disa
ble-shared
Make error:
make[1]: Entering directory `/newraid/mysql-4.0.12/client'
/bin/ksh ../libtool --mode=link gcc -O3 -DDBUG_OFF -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -DHAVE_CURSES_H -I/newraid/mysql-4.0.12/include -DHAVE_RWLOCK_T -o mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lcurses -all-static ../libmysql/libmysqlclient.la -lcrypt -lgen -lsocket -lnsl -lm
gcc -O3 -DDBUG_OFF -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -DHAVE_CURSES_H -I/newraid/mysql-4.0.12/include -DHAVE_RWLOCK_T -o mysql mysql.o readline.o sql_string.o completion_hash.o -static ../readline/libreadline.a -lcurses ../libmysql/.libs/libmysqlclient.a -lcrypt -lgen -lsocket -lnsl -lm
Undefined first referenced
symbol in file
dlclose /usr/lib/libnsl.a(netdir.o)
dlsym /usr/lib/libnsl.a(netdir.o)
dlopen /usr/lib/libnsl.a(netdir.o)
dlerror /usr/lib/libnsl.a(netdir.o)
ld: fatal: Symbol referencing errors. No output written to mysql
collect2: ld returned 1 exit status
make[1]: *** [mysql] Error 1
make[1]: Leaving directory `/newraid/mysql-4.0.12/client'
make: *** [all-recursive] Error 1
*** Error code 2
make: Fatal error: Command failed for target `all'
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org