Compilation with MySQL 5.0
Rodolfo Gonzalez Gonzalez
rodolfo at equinoxe.g-networks.net
Thu Jan 26 15:31:46 EST 2006
Hi,
I'm trying to compile cyrus-sasl-2.1.21 with MySQL 5.0.18 but configure
says:
--- start ---
checking SQL... enabled
checking for mysql_select_db in -lmysqlclient... no
configure: WARNING: MySQL library mysqlclient does not work
--- end ---
config.log shows:
--- start ---
configure:11589: checking for mysql_select_db in -lmysqlclient
configure:11620: gcc -o conftest -Wall -W -O3 -mtune=nocona
-I/usr/include/mysql -O3 -mtune=nocona
-I/usr/include/mysql -I/usr/include/mysql -L/usr/lib/mysql
-lmysqlclient -lcrypt -L/usr/lib/mysql
-Wl,-rpath,/usr/lib/mysql conftest.c -lmysqlclient >&5
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xdd): In function
`my_compress_alloc':: undefined reference to
`compress'/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x180): In
function `my_uncompress':: undefined reference to `uncompress'
collect2: ld returned 1 exit status
--- end ---
The mysql libraries come from the mysql.com generic linux RPM's. I guess
this problem has something to do with a conflict between the system's zlib
and the mysql's zlib. I haven't tested recompiling MySQL but first I
wanted to know if someone else had the problem. The configure line was:
LDFLAGS="-L/usr/lib/mysql -lmysqlclient -lcrypt" \
CFLAGS="-O3 -mtune=nocona -I/usr/include/mysql" \
CPPFLAGS="-O3 -mtune=nocona -I/usr/include/mysql" \
./configure \
--enable-login \
--enable-sql \
--with-mysql=/usr \
--with-authdaemond=/var/lib/sasl \
--with-saslauthd=/var/run/sasl \
More information about the Cyrus-sasl
mailing list