Subject: Re: Configure fails to use libmysqlclient
From: Rob Siemborski (rjs3 at andrew dot cmu dot edu)
Date: Sun Feb 09 2003 - 00:21:13 EST
You're probably going to run into trouble if you try to staticly link a
mysql library.
Do you not have a dynamic version?
-Rob
On Sun, 9 Feb 2003, Petri Riihikallio wrote:
> Hello
>
> I am trying to build SASL 2.1.12 with MySQL 4.0.9 on FreeBSD 4.7-p4.
>
> Configure fails with :
> checking for mysql_select_db in -lmysqlclient... no
> configure: error: MYSQL libarary mysqlclient not found
> gmake: *** No targets specified and no makefile found. Stop.
>
> I have checked the library with:
> "strings /usr/local/mysql/lib/libmysqlclient.a | grep mysql_select_db -"
> grep returns two lines.
>
> My configure line is:
> MAKE=gmake \
> ./configure \
> --sysconfdir=/etc \
> --disable-krb4 \
> --disable-gssapi \
> --disable-anon \
> --enable-login \
> --with-mysql=/usr/local/mysql
>
> I have sprinkled the configure script with echos. Configure finds the
> right dirs and sets LIB_MYSQL_DIR, LIB_MYSQL, CPPFLAGS and eventually
> LIBS correctly. LIBS gets set to "-lmysqlclient
> -L/usr/local/mysql/lib". Then there are some if-clauses I can't
> understand. All I know that three if's are evaluated and they all
> turn out to be false.
>
> Is anybody using SASL with MySQL 4 ?
> Am I missing something obvious?
> --
> Cheers,
> Petri
>
> Metis / Petri Riihikallio
> GSM: +358 400 505 939
>
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
|
|
|