Re: mod_log_sql will not configure on Solaris 8

Edward Rudd <[email protected]> Wed, 15 Sep 2004 18:34:10 -0500
Newsgroups gmane.comp.apache.mod-log-sql
Organization OutOfOrder.cc
Message-ID <[email protected]>
On Wed, 2004-09-15 at 13:08, Steven K.Wieda wrote:
> Greetings.
> 
> checking for mysql_init in -lmysqlclient... no
> configure: error: libmysqlclient is needed for MySQL support
> 
> The pertinent portion of the config.log file is as follows:
> 
> configure:2780: gcc -o conftest -g -O2 -I/opt/mysql/include
> -I/opt/mysql/include/mysql -I/opt/mysql/mysql/include   -L/opt/mysql/lib -L/opt
> /mysql/lib/mysql -L/opt/mysql/mysql/lib conftest.c -lmysqlclient  -lz -lm  >&5
> Undefined                       first referenced
>  symbol                             in file
> getservbyname                       /opt/mysql/lib/libmysqlclient.a(libmysql.o)
> gethostbyname_r                     /opt/mysql/lib/libmysqlclient.a(libmysql.o)
> socket                              /opt/mysql/lib/libmysqlclient.a(libmysql.o)
> setsockopt                          /opt/mysql/lib/libmysqlclient.a(viosocket.o)
> connect                             /opt/mysql/lib/libmysqlclient.a(libmysql.o)
> getpeername                         /opt/mysql/lib/libmysqlclient.a(viosocket.o)
> inet_addr                           /opt/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_ntoa                           /opt/mysql/lib/libmysqlclient.a(my_net.o)
> shutdown                            /opt/mysql/lib/libmysqlclient.a(viosocket.o)
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure:2783: $? = 1
> ********************************
Those symbols are defined in librt I believe in solaris and not in the
standard libc as they are on other *nix systems.  Could you attach the
entire config.log file? You can try 

export LDFLAGS=-lrt

and try rerunning ./configure and see if it fixes the problem. Once I
look at your full config.log I can work in a fix for the next release.

-- 
Edward Rudd <[email protected]>
Website http://www.outoforder.cc/

_______________________________________________
Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/

To unsubscribe send an e-mail to 
mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBBSNFyvwMxRUUct20RArA9AJ4rZq0TSpZkBtHRQAjT968QYlNOdgCeNina
nJcL/5I5hPQhjCdDVnRIGBg=
=BbVS
-----END PGP SIGNATURE-----