[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling mysql



Hi,
I want to learn PHP/MySQL and I'm trying to compile mysql (3.23.37) on 2.2 
r0. 
I ran successfuly '.configure --with-prefix=/usr/local/opt/mysql 
--with-low-memory'.
Now I'm running 'make' but I get the following error message :

make[2]: Entering directory `/usr/local/opt/mysql/client'
/bin/sh ../libtool --mode=link c++  -O3 -DDBUG_OFF   -fno-implicit-templates 
-rdynamic -o mysql  mysql.o readline.o sql_string.o completion_hash.o 
../readline/libreadline.a -lncurses ../libmysql/libmysqlclient.la  -lz 
-lcrypt -lnsl -lm
c++ -O3 -DDBUG_OFF -fno-implicit-templates -rdynamic -o .libs/mysql mysql.o 
readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses 
../libmysql/.libs/libmysqlclient.so -lz -lcrypt -lnsl -lm -lz -lcrypt -lnsl 
-lm -Wl,--rpath -Wl,/usr/local/opt/mysql/lib/mysql
../libmysql/.libs/libmysqlclient.so: undefined reference to 'atexit'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/usr/local/opt/mysql-3.23.37/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/opt/mysql-3.23.37'
make[1]: *** [all-recursive-am] Error 2

Does it mean function 'atexit' is not present on my system?
I know that atexit is a function that register a function to be called at 
normal program termination (dixit manpages)
If it isn't present, where can I find it (in which package ?).
Thanks in advance
Jean-Michel Le Bot



Reply to: