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
diff --git a/configure.ac b/configure.ac
index fc4fb20..c8c53c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -648,8 +648,8 @@ then
 	 ;;
       esac
     old_ld_library_path="$LD_LIBRARY_PATH"
-    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SEARCH_LIBS"
-    AC_MSG_NOTICE([Search Path $(LD_LIBRARY_PATH)])
+    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SEARCH_LIBS"
+    AC_MSG_NOTICE([Search Path $LD_LIBRARY_PATH])
     AC_MSG_CHECKING([Looking for at least one supported DBD module])
     AC_RUN_IFELSE([AC_LANG_PROGRAM([$LDINC],
 				     [[if (!$lt_cv_dlopen("libdbdsqlite3.$LDEXT"$LDFUNCARGS)) return -1;
@@ -677,7 +677,7 @@ to the configure argument list and run it again.
     LIBDBI_LIBS=-ldbi
     _COMPONENTS="$_COMPONENTS dbi"
     LIBS=$saved_libs
-    LD_LIBRARY_PATH="$old_ld_library_path"
+    export LD_LIBRARY_PATH="$old_ld_library_path"
   else
     AC_MSG_ERROR([
 
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to