r23186 - gnucash/trunk - Bug 654196 - "make check" fails when built with --enable-dbi
Derek Atkins
warlord at MIT.EDU
Tue Sep 24 09:35:02 EDT 2013
John Ralls <jralls at ceridwen.us> writes:
> On Sep 23, 2013, at 7:42 AM, Derek Atkins <warlord at mit.edu> wrote:
>
>> Christian Stimming <christian at cstimming.de> writes:
>>
>>> The new test fails for me as well: Kubuntu 11.10, and config.log says:
>>>
>>> configure:20323: checking Looking for at least one supported DBD module
>>> configure:20343: gcc -o conftest -I/home/cs/usr/include -ldl conftest.c -
>>> lpthread
>>>> &5
>>
>> Curious: What happens if this line were to become:
>>
>> gcc -o conftest -I/home/cs/usr/include conftest.c -ldl -lpthread
>>
>
> The patch I proposed here yesterday does that, at least with respect
> to the order of the libraries wrt conftest.c. Other CFLAGS are
> determined elsewhere by configure and the environment, of course.
I didn't take a close look at the patch, but I was just wondering
because if -ldl is before conftest.c then the compiler might not notice
that you need dlopen() from -ldl until after it's processing conftest.c,
which would be "too late". So yes, sometimes order of files/libraries
on the command line *is* important.
> Regards,
> John Ralls
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list