|
From: | Eric Blake |
Subject: | Re: AC_CHECK_LIB: Library is found on build host but is not on a target host |
Date: | Mon, 23 Aug 2010 14:13:39 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 |
[please keep the list in the loop] On 08/23/2010 02:04 PM, Sergio Belkin wrote:
2010/8/23 Eric Blake<address@hidden>:I didn't see any mention of mysql in your sample configure.ac, nor any macro call that would explain why you are getting this message:checking for mysql_get_parameters in -lmysqlclient... no Error: Required library mysqlclient not found. Install it and try againAre you sure you pasted the right file?Oops, I've read too fast the mail that I thought that you were talking about of the configure.ac, so here is the complete configure.ac:
...
AC_CHECK_LIB([mysqlclient], [mysql_get_parameters],[MYSQLCLIENT="-lmysqlclient"],echo "Error: Required library mysqlclient not found. Install it and try again"&& exit 1)
That's the part that wasn't in your original mail. And from your config.log pastebin: configure:4272: checking for mysql_get_parameters in -lmysqlclient configure:4297: g++ -o conftest -g -O2 conftest.cpp -lmysqlclient >&5 /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit statusAt this point, all I can guess is that you haven't installed the libraries correctly for your system. Can you do a simple command line test (rather than through autoconf) to rule out whether 'gcc ... -lmysqlclient' works in isolation for you? Or maybe you are trying to access a symbol that is exported in newer versions of the library, but not in the version that you have installed?
-- Eric Blake address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |