GNOME Bugzilla – Bug 652294
'./configure --with-mdb=yes' does not configure in embedded MDB support on any system
Last modified: 2011-11-28 07:00:00 UTC
In short, running configure does not correctly detect in the embedded MDB provider code, resulting in a build with no MDB provider. This is in both the case that the patch from the site below is applied or not. http://git.gnome.org/browse/libgda/commit/?id=4d84a6f3013a4cc66f642a55356f0df72a26a31c With mdbtools-0.6.pre1 installed, the MDB(system) provider is configured, and will build without incident. This was attempted on a Ubuntu 11.04 AMD64, using --host=i686-pc-mingw32 flag and with no host flag. The following is the relevant output from configure: <code> checking for MDB... no checking for MDB Tools files in /usr... not found checking for MDB Tools files in /usr/local... not found checking for MDB Tools files in /opt/gnome... not found configure: MDB backend not used . . . Configuration summary for version 4.2.8 Installation prefix = /usr/local Building GTK+ UI extension: yes Building Libxslt extension: yes Building libgda GObject Introspection: no Building libgda-ui GObject Introspection: no Compiled providers: Berkeley DB = no Berkeley DB SQL = no MDB (MS Access) = no MySQL = no Oracle = no PostgreSQL = yes SQLite = yes (embedded) SQLCipher = yes JDBC = no WEB = yes LDAP = no </code>
It seems the configure script is set up to only check /usr, /usr/local, and /opt/gnome directories for the relevant headers.
You should run configure with the following arguments: --with-mdb=yes --enable-system-mdbtools=no Can you check?
Created attachment 190011 [details] config and build logs
Configuring with these flags successfully forces embedded mdbtools to be configured in, but build fails, complaining: catalog.c:20:22: fatal error: mdbtools.h: No such file or directory This is both with the patch and without the patch. Again, with system installed mdbtools, it fails to build but instead complains about the number of arguments. This is despite the '--enable-system-mdbtools=no' flag and identical to the errors received at first in the problem in [Bug 651607].
The missing mdbtools.h file has been fixed in commit http://git.gnome.org/browse/libgda/commit/?h=LIBGDA_4.2&id=5bae64a290d5e6dcc2bd55bfc44bab0eca62e378
This commit only seems to modify the contents of 'providers/mdb/libmdb-src/Makefile.am'. The 'providers/mdb/libmdb-src/include/' subdirectory is missing in the tarball, but is present in the git repo, and I can't seem to find a commit that adds these files for libgda 4.2 Is this intentional, or was there another commit that added include/mdbtools.h and other relevent header files themselves under libmdb-src?
any news for this report?
malerba, can you please respond to comment#6 ?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!