Solaris 2.7 compile error

I'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 [at] m.gmane.org
Craig Tammel [ Do, 17 April 2003 21:46 ] [ ID #67622 ]

Re: Solaris 2.7 compile error

You have to add -ldl to linker args.

--

Regards,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <sinisa [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Sinisa Milivojevic [ Fr, 18 April 2003 12:04 ] [ ID #67624 ]
Datenbanken » gmane.comp.db.mysql.bugs » Solaris 2.7 compile error

Vorheriges Thema: mysql 4.0.12 dump and databases with minus in names
Nächstes Thema: MySqlCC Bug: Strange auto where clause - WHERE ABS(`id` - `id`) < 1e-031