When trying to build dspam 3.10.0 or 3.10.1 on my machine, centos 4.8 linux, 64-bit, mysql 5.1.x with:
./configure --with-storage-driver=mysql_drv --enable-preferences-extension --with-mysql-libraries=/usr/lib64/mysql --with-mysql-includes=/usr/include/mysql I'm getting: ... checking for mysql_init in -lmysqlclient... no configure: error: Required version of libmysqlclient not found Portion of config.log below... I can build dspam up to version 3.9.1-rc1 just fine. Ideas? -Troy config.log: configure:13357: gcc -o conftest -g -O2 -I/usr/include/mysql -rdynamic conftest.c -lz >&5 configure:13357: $? = 0 configure:13374: result: -lz configure:13395: checking where to find MySQL libraries configure:13402: result: /usr/lib64/mysql configure:13422: checking for library containing inet_ntoa configure:13470: result: none required configure:13482: checking for library containing socket configure:13530: result: none required configure:13559: checking for mysql_init in -lmysqlclient configure:13582: gcc -o conftest -g -O2 -I/usr/include/mysql -L/usr/lib64/mysql -rdynamic conftest.c -lmysqlclient >&5 /usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x5c): In function `TaoCrypt::(anonymous namespace)::DiscreteLogWorkFactor(unsigned int) ': /export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/extra/yassl/taocrypt/src/dh.cpp:39: undefined reference to `pow' /usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x74):/export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/extra/yassl/t aocrypt/src/dh.cpp:39: undefined reference to `log' /usr/lib64/mysql/libmysqlclient.a(libtaocrypt_la-dh.o)(.text+0x81):/export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/extra/yassl/t aocrypt/src/dh.cpp:39: undefined reference to `pow' /usr/lib64/mysql/libmysqlclient.a(libmysql.o)(.text+0x3e61): In function `fetch_float_with_conversion': /export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/libmysql.c:3749: undefined reference to `floor' /usr/lib64/mysql/libmysqlclient.a(libmysql.o)(.text+0x3f4b):/export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/libmysql.c: 3749: undefined reference to `floor' /usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x26d): In function `scramble_323': /export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/password.c:198: undefined reference to `floor' /usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x295):/export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/password.c:1 99: undefined reference to `floor' /usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x35a): In function `check_scramble_323': /export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/password.c:239: undefined reference to `floor' /usr/lib64/mysql/libmysqlclient.a(password.o)(.text+0x3bf):/export/home/my/tmp-201004061343-5.1.46-24767/rpm/BUILD/mysql-5.1.46/libmysql/password.c:2 42: more undefined references to `floor' follow collect2: ld returned 1 exit status configure:13582: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "dspam" | #define PACKAGE_TARNAME "dspam" | #define PACKAGE_VERSION "3.10.1" | #define PACKAGE_STRING "dspam 3.10.1" | #define PACKAGE_BUGREPORT "dspam-de...@lists.sourceforge.net" | #define PACKAGE_URL "" | #define PACKAGE "dspam" | #define VERSION "3.10.1" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define CONFIGURE_ARGS " '--with-storage-driver=mysql_drv' '--enable-preferences-extension' '--with-mysql-libraries=/usr/lib64/mysql' '--with-mysql -includes=/usr/include/mysql'" | #define HAVE_ISO_VARARGS 1 | #define HAVE_STRING_H 1 | #define HAVE_MATH_H 1 | #define HAVE_SYS_TIME_H 1 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_STRSEP 1 | #define HAVE_STRTOK_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_MEMCPY 1 | #define HAVE_MEMSET 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_STRCASESTR 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_ARPA_INET_H 1 | #define TRUSTED_USER_SECURITY 1 | #define USE_SYSLOG 1 | #define MYSQL4_INITIALIZATION 1 | #define PREFERENCES_EXTENSION 1 | #define HAVE_MYSQL_H 1 | #define HAVE_MYSQLD_ERROR_H 1 | #define HAVE_ERRMSG_H 1 | /* end confdefs.h. */ | | #include <stdlib.h> | #include <mysql.h> | | int | main () | { | | MYSQL *mysql = mysql_init(NULL); | mysql_close(mysql); | | ; | return 0; | } configure:13590: result: no configure:13677: error: Required version of libmysqlclient not found ------------------------------------------------------------------------------ Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user