Re: Problem compiling with MySql support
"Alejandro Guerrieri" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Magicom |
| Message-ID | <050401c489fa$b7d0f2d0$0200a8c0@legolas> |
Stipe, Nop, I've checked, make-cleaned re-configured and tail-ed the config.log and it always ends there. Maybe I'm missing something, but I cannot seem to find conftest.c anywhere on the source tree. I've even searched the .tar.gz to check if it was accidentally deleted, but it's not there neither. I mean: gateway-1.3.2.tar.gz Date: July 14 10:18 Size: 2,449,484 It's a file that comes with the distribution or it's generated during configure? Regards, ----- Original Message ----- From: "Stipe Tolj" <[email protected]> To: "Alejandro Guerrieri" <[email protected]> Cc: <[email protected]> Sent: Tuesday, August 24, 2004 5:44 PM Subject: Re: Problem compiling with MySql support > Alejandro Guerrieri wrote: > > > 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 > > nftest -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; } > > isn't there more lines after this that output the gcc output? > > Try to compile the conftest.c by hand on your own (like here tried by > configure) and see what ld says about it. > > 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----- >