Thanks for the advice. Indeed, I was able to find the problem. Actually, it
had nothing to do with libmysqlclient.a. I think the message is a little
confusing. Below is an extract of failed compilation from configure.log. It
looks like there was a missing dependency on libm.so(libm.a). Both static
and shared library are in the lib directory. However, the link line is
missing -lm to dynamically link math library. I am not a configure expert,
so all I did is to add the reference to the library before the test. Of
course it will do it regardless of OS and could be redundant, but it worked
configure:9484: gcc -o conftest -g -O2
s2.8-sparc/lib conftest.c -lmysqlclient -lnsl -lsocket -lintl -lz >&5
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to conftest
Here is the fix for the configure script
LIBS="-lm $LIBS" # I only added this line and it worked in Solaris 2.8
echo "$as_me:$LINENO: checking for mysql_store_result in -lmysqlclient" >&5
echo $ECHO_N "checking for mysql_store_result in -lmysqlclient... $ECHO_C"
Thanks for your help
From: Chris Frey [mailto:cdfrey@stripped]
Sent: Wednesday, February 09, 2005 5:13 PM
Subject: Re: configuration problem on Solaris 2.8 with release
On Wed, Feb 09, 2005 at 04:58:19PM -0500, Alex Vishnev wrote:
> Then I had a problem that I could not resolve yet. Please take a look
> at the configure execution. I don't understand why it thinks that the
> library is broken. That's the library that came with the 4.1.9 distro. Is
> possible to run mysql++ with this distribution?
> checking for mysql_store_result in -lmysqlclient... no
> configure: error: Could not find working MySQL client library!
When configure runs, it creates a file called config.log. Since processing
stopped, the error should be near the end. It may offer a clue as to
what went wrong.
Since the libraries you have don't seem to match what configure expects,
it is possible you have missed a symlink somewhere in /usr/lib, etc.
I'm not a Solaris person, but on linux, I'd recommend you run ldconfig.
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus