[asterisk-users] MySQL components in asterisk-addons not being built

hugolivude hugolivude at gmail.com
Tue Jul 24 18:35:43 CDT 2007


Thanks again.  Ive posted the rpm query & configure.log below.  I
noticed that the mysql libraries were in /usr/lib/mysql/ so I tried
./configure --with-mysqlclient=/usr/lib/mysql but end up with the
following:

configure: ***
configure: *** mysql_config was not found in the path you specified:
configure: *** /usr/lib/mysql/bin
configure: *** including --without-mysqlclient

Further pointers welcome!

Thanks
Hugh


rpm query
=======
[root at rapperyo asterisk-addons-1.4.2]# rpm -ql MySQL-devel | grep client
/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

[root at rapperyo asterisk-addons-1.4.2]# rpm -ql MySQL-client | grep client
[root at rapperyo asterisk-addons-1.4.2]# rpm -ql MySQL-server | grep client

Doesn't find anything with:
rpm -ql MySQL-client | grep client
or
rpm -ql MySQL-server | grep client


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


On 7/24/07, James FitzGibbon <james.fitzgibbon at gmail.com> wrote:
> On 7/24/07, hugolivude <hugolivude at gmail.com> wrote:
>
> > Thanks or all your help!
> >
> > 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!!  As I
> > mentioned, I have MySQL installed and it works fine.  rpm -qa
> > indicates:
> >
> >    MySQL-server-5.0.22-0
> >    MySQL-devel-5.0.22-0
> >    MySQL-client-5.0.22-0
> >
> > How do I get mysql_init set up properly, if indeed that is the source
> > of my problem?
>
> Post the snippet of config.log that deals with mysql, as that will give more
> detail as to why it's not finding mysql_init.  For example, mine has this:
>
> configure:6161: checking for mysql_config
> configure:6179: found /usr/bin/mysql_config
> configure:6191: result: /usr/bin/mysql_config
> configure:6223: checking for mysql_init in -lmysqlclient
> configure:6258: gcc -o conftest -g -O2   conftest.c -lmysqlclient
> -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl
> -lcrypto  >&5
> configure:6264: $? = 0
> configure:6282: result: yes
>
> Yours will likely have several iterations of trying to find it, indicating
> that the script is looking for the mysql libs in several directories and
> then when it fails to find it, gives up.  Mine is only one iteration because
> it was found in the first place the configure script looked.
>
> Also, post the output of
>
> rpm -ql MySQL-devel | grep client
>
> and
>
> rpm -ql MySQL-client | grep client
>
> from the looks of the RPM package names, you aren't running the same distro
> as me (CentOS), but I suspect that the problem is that your RPMs have stuck
> the libraries in a non-standard place that the asterisk-addons configure
> script doesn't know to look in.
>
> Once you've figured out what that non-standard place is, it should be a
> simple matter of passing "--with-mysqlclient=PATH" to ./configure to make it
> look for your libs in their actual home.
>
> --
> j.



More information about the asterisk-users mailing list