Dear Stipe,
Here is the mysql part from config.log. I'm not precisely an expert
analyzing this, but it seems that the linker cannot find libmysqlclient,
despite it's where it should be...
configure:4280: checking whether to compile with MySQL support
configure:4304: checking for mysql_config
configure:4402: checking mysql version
configure:4456: checking mysql libs
configure:4459: checking for mysql_init in -lmysqlclient
configure:4478: gcc -o
conftest -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -rdynam
ic
conftest.c -lmysqlclient -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl
-lm -lresolv -lnsl -lm -lpthread -L/usr/lib -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 4467 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_init();
int main() {
mysql_init()
; return 0; }
Regards,
----- Original Message -----
From: "Stipe Tolj" <[EMAIL PROTECTED]>
To: "Alejandro Guerrieri" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 24, 2004 4:13 PM
Subject: Re: Problem compiling with MySql support
> Alejandro Guerrieri wrote:
>
> > 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]
>
> ok, now, please the config.log file from Kannel's gateway dir, after
> the configure has run. Please have a look into it too, it should tell
> you at least why configure seems to fail in detecting the mysql_init()
> routine in libmysqlclient.a.
>
> 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-----
>