hugolivude
2007-Jul-25 21:07 UTC
[asterisk-users] Problem with asterisk-addons - checking for mysql_init in -lmysqlclient... no
I'm trying to build the MySQL components in asterisk-addons but no luck so far. I hope that you can help. I have MySQL installed. rpm -qa indicates: MySQL-server-5.0.22-0 MySQL-devel-5.0.22-0 MySQL-client-5.0.22-0 rpm -ql MySQL-devel | grep client indicates: /usr/lib/mysql/libmysqlclient.a /usr/lib/mysql/libmysqlclient.la /usr/lib/mysql/libmysqlclient_r.a /usr/lib/mysql/libmysqlclient_r.la /usr/lib/mysql/libndbclient.a /usr/lib/mysql/libndbclient.la I've posted the ./configure output below. I noticed that it says: checking for mysql_init in -lmysqlclient... no Presumably that's a problem, but I don't know how to fix it!! MySQL on my system works great w/ php - I can query insert and so on. Further pointers welcome! Thanks Hugh config.log snip ==========configure:6158: checking for mysql_config configure:6176: found /usr/bin/mysql_config configure:6188: result: /usr/bin/mysql_config configure:6220: checking for mysql_init in -lmysqlclient configure:6255: gcc -o conftest -g -O2 conftest.c -lmysqlclient -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv >&5 /usr/lib/mysql/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x8): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x10): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x14): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x18): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(cert_wrapper.o)(.text+0x77): In function `yaSSL::x509::~x509(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(cert_wrapper.o)(.text+0x30f): In function `yaSSL::CertManager::~CertManager(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL11SSL_SESSION+0x41): In function `mySTL::list<yaSSL::SSL_SESSION *>::~list(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL12input_buffer+0x41): In function `mySTL::list<yaSSL::input_buffer *>::~list(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL13output_buffer+0x41): In function `mySTL::list<yaSSL::output_buffer *>::~list(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPUc+0x41): more undefined references to `__builtin_delete' follow /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x8): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x10): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x14): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(yassl_imp.o)(.text+0x2a62): In function `yaSSL::ServerDHParams::~ServerDHParams(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(yassl_imp.o)(.text+0x4b3b): In function `yaSSL::Connection::~Connection(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(yassl_int.o)(.text+0x32cd): In function `yaSSL::SSL_SESSION::~SSL_SESSION(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(yassl_int.o)(.text+0x348b): In function `yaSSL::Sessions::~Sessions(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(yassl_int.o)(.text+0x37db): In function `yaSSL::SSL_CTX::~SSL_CTX(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(yassl_int.o)(.text+0x3c60): more undefined references to `__builtin_delete' follow /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x10): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x14): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x18): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x1c): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt11BER_Decoder+0xc): more undefined references to `__pure_virtual' follow /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.t._._Q28TaoCrypt13DSA_PublicKey+0xa7): In function `TaoCrypt::DSA_PublicKey::~DSA_PublicKey(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-random.o)(.text+0x166): In function `TaoCrypt::OS_Seed::~OS_Seed(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x14): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x18): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x1c): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x20): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x24): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x28): more undefined references to `__pure_virtual' follow /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.text+0x16a6): In function `yaSSL::RandomPool::~RandomPool(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.text+0x20d6): In function `yaSSL::Integer::~Integer(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.text+0x2476): In function `yaSSL::DiffieHellman::~DiffieHellman(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL3DES7DESImpl+0x37): In function `yaSSL::DES::DESImpl::~DESImpl(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL3AES7AESImpl+0x8e): In function `yaSSL::AES::AESImpl::~AESImpl(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL3RSA7RSAImpl+0x76): more undefined references to `__builtin_delete' follow /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt9Mode_BASE+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0x8): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0x10): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0x8): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0xc): more undefined references to `__pure_virtual' follow /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q28TaoCrypt14RSA_PrivateKey+0x12b): In function `TaoCrypt::RSA_PrivateKey::~RSA_PrivateKey(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt8DES_BASE+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(log.o)(.text+0x31): In function `yaSSL::Log::~Log(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0xc): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x10): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x14): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x18): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x3c): undefined reference to `__pure_virtual' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x40): more undefined references to `__pure_virtual' follow /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x85): In function `TaoCrypt::FileSource::~FileSource(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x295): In function `TaoCrypt::FileSink::~FileSink(void)': : undefined reference to `__builtin_delete' collect2: ld returned 1 exit status configure:6261: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PBX_PLATFORM "i686-pc-linux-gnu" | #define PBX_CPU "i686" | #define PBX_VENDOR "pc" | #define PBX_OS "linux-gnu" | #define Linux 1 | #define _GNU_SOURCE 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_CURSES 1 | #define HAVE_NCURSES 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char mysql_init (); | int | main () | { | return mysql_init (); | ; | return 0; | } configure:6279: result: no - Show quoted text -