Re: Problem compiling with MySql support

"Alejandro Guerrieri" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Magicom
Message-ID <038c01c489e3$1fe43ed0$0200a8c0@legolas>
Stipe,

Thank you for your help.

Here it goes:

]# nm /usr/lib/mysql/libmysqlclient.a | grep mysql_init
00001100 T mysql_init
nm: my_pthread.o: no symbols
nm: my_thr_init.o: no symbols
nm: thr_mutex.o: no symbols
nm: my_port.o: no symbols
nm: getopt.o: no symbols
nm: getopt1.o: no symbols
nm: strmov.o: no symbols
nm: strnlen.o: no symbols
nm: bmove.o: no symbols
nm: strtoull.o: no symbols
nm: strtoll.o: no symbols

]# mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
        --cflags        [-I'/usr/include/mysql']
        --libs
         [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm]
        --socket        [/var/lib/mysql/mysql.sock]
        --port          [3306]
        --version       [3.23.58]

Thank you in advance,


----- Original Message ----- 
From: "Stipe Tolj" <[email protected]>
To: "Alejandro Guerrieri" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, August 24, 2004 3:35 PM
Subject: Re: Problem compiling with MySql support


> Alejandro Guerrieri wrote:
> > Hi,
> >
> > I am having problems compiling 1.3.2 with MySQL support. The system
doesn't
> > seem to find part of MySQL (mysql_init on libmysqlclient):
> >
> > ]#
> >
./configure --enable-start-stop-daemon  --prefix=/usr --with-defaults=speed
> > --disable-docs --disable-ssl --with-mysql --with-mysql-dir=/usr
> >
> > loading cache ./config.cache
> >
> >
> > Configuring for Kannel gateway version 1.3.2 ...
> >
> > <....>
> >
> > Configuring DB support ...
> > checking whether to compile with MySQL support... searching
> > checking for mysql_config... /usr/bin/mysql_config
> > checking mysql version... 3.23.58
> > checking mysql
> > libs...  -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm
> > checking for mysql_init in -lmysqlclient... no
> > configure: error: Unable to find MySQL client libraries
> >
> > I am using RedHat 9 and I have the proper RPM packages installed:
> >
> > ]# rpm -qa |grep -i mysql
> > perl-DBD-MySQL-2.1021-3
> > mysql-server-3.23.58-1.9
> > mysql-devel-3.23.58-1.9
> > mysql-3.23.58-1.9
> >
> > ]# locate mysql.h
> > /usr/include/mysql/mysql.h
> >
> > ]# locate libmysql
> > /usr/lib/mysql/libmysqlclient.so.10.0.0
> > /usr/lib/mysql/libmysqlclient.so.10
> > /usr/lib/mysql/libmysqlclient_r.so.10.0.0
> > /usr/lib/mysql/libmysqlclient_r.so.10
> > /usr/lib/mysql/libmysqlclient.a
> > /usr/lib/mysql/libmysqlclient.so
> > /usr/lib/mysql/libmysqlclient_r.a
> > /usr/lib/mysql/libmysqlclient_r.so
> >
> > Any hints?
>
> that's sort of suspicious, since the paths seem ok. Try these and mail
> us the output:
>
>   $ nm /usr/lib/mysql/libmysqlclient.a | grep mysql_init
>   $ mysql_config
>
> Stipe
>
> mailto:stolj_{at}_wapme.de
> -------------------------------------------------------------------
> Wapme Systems AG
>
> Vogelsanger Weg 80
> 40470 Düsseldorf, NRW, Germany
>
> phone: +49.211.74845.0
> fax: +49.211.74845.299
>
> mailto:info_{at}_wapme-systems.de
> http://www.wapme-systems.de/
> -------------------------------------------------------------------
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.2.2 (Cygwin)
>
> mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
> OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
> nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
> dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
> bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
> AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
> OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
> K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
> g2HyLAEKQIp30Q==
> =aYCI
> -----END PGP PUBLIC KEY BLOCK-----
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.