Build failure with dbi enabled

Geert Janssens geert.gnucash at kobaltwit.be
Fri Apr 24 09:36:18 EDT 2015


I upgraded to Fedora 21 a couple of days ago and today I reran a gnucash build for the first 
time since that upgrade.

As the upgrade changes lots of libraries I decided to start clean. That is, remove build directory 
and start with a call to autogen.sh.

The call to autogen.sh triggers the same subdir-objects warnings Alex already reported earlier. 
I'm conveniently ignoring them for now. The related bug will apparently be fixed in automake 
1.16 (not yet in Fedora 21).

However when I ran configure (from a clean build directory), it exited with this error:
...
checking for dbi/dbi.h... yes
/kobaltnet/janssege/Development/EclipseGnuCash/GnuCash-git/configure: line 22003: 
LD_LIBRARY_PATH: command not found
/kobaltnet/janssege/Development/EclipseGnuCash/GnuCash-git/configure: line 22004: 
LD_LIBRARY_PATH: command not found
configure: Search Path 
checking Looking for at least one supported DBD module... configure: error: 
Unable to find any of the supported dbd modules
(libdbdsqlite3, libdbdmysql, or libdbdpgsql) needed to actually use the SQL backend.
...

I fixed this by changing
AC_MSG_NOTICE([Search Path $(LD_LIBRARY_PATH)])
to
AC_MSG_NOTICE([Search Path $LD_LIBRARY_PATH])
in configure.ac

I'm surprised this wasn't detected before. Is this new behavior of the automake tools ?


The next configure run exited again due to no DBD modules being found even though the 
"LD_LIBRARY_PATH: command not found" errors were now gone:
...
checking for dbi/dbi.h... yes
configure: Search Path :/usr/lib64/dbd
checking Looking for at least one supported DBD module... configure: error: 
Unable to find any of the supported dbd modules
(libdbdsqlite3, libdbdmysql, or libdbdpgsql) needed to actually use the SQL backend.
...

Looking at config.log it seems to me the LD_LIBRARY_PATH should be exported before running 
the dbi driver tests. On my system, I can make configure work by applying the attached patch.

Before committing it however, I'd like some feedback on how it behaves on OS X. John, can you 
look at this patch ?

Thanks,

Geert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbd-detection.patch
Type: text/x-patch
Size: 894 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20150424/9a3ddef9/attachment.bin>


More information about the gnucash-devel mailing list