autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CHECK_LIB: Library is found on build host but is not on a target


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:43:34 -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

On 08/23/2010 02:26 PM, Sergio Belkin wrote:
2010/8/23 Eric Blake<address@hidden>:
[please keep the list in the loop]

[I reiterate - I do NOT want these mails coming only to me, when I have asked for them to go to the list]

At 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?

--


Yes I could run:

g++ -o testUpThreadWorkDistributor -ansi -mtune=i686 -march=i686
-Iinclude -Wall -Wno-deprecated -g -DDEBUG -ggdb -L/usr/lib/mysql
testUpThreadWorkDistributor.cc libUpTools.a -lpthread -lmysqlclient
-lcrypto -lssl /usr/lib/libresolv.a

Ah - the difference is the presence of -L/usr/lib/mysql in the working command line. For your configure test to work, you'd also have to provide that same -L option to LDFLAGS prior to using AC_CHECK_LIB (or the better AC_SEARCH_LIBS).

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]