After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652294 - './configure --with-mdb=yes' does not configure in embedded MDB support on any system
'./configure --with-mdb=yes' does not configure in embedded MDB support on an...
Status: RESOLVED INCOMPLETE
Product: libgda
Classification: Other
Component: MDB provider
4.2.x
Other All
: Normal minor
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-10 14:44 UTC by Ryan Laboucane
Modified: 2011-11-28 07:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
config and build logs (17.32 KB, application/x-compressed-tar)
2011-06-16 04:37 UTC, Ryan Laboucane
Details

Description Ryan Laboucane 2011-06-10 14:44:19 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>
Comment 1 Ryan Laboucane 2011-06-10 14:49:15 UTC
It seems the configure script is set up to only check /usr, /usr/local, and /opt/gnome directories for the relevant headers.
Comment 2 malerba 2011-06-15 14:22:42 UTC
You should run configure with the following arguments:
--with-mdb=yes --enable-system-mdbtools=no

Can you check?
Comment 3 Ryan Laboucane 2011-06-16 04:37:42 UTC
Created attachment 190011 [details]
config and build logs
Comment 4 Ryan Laboucane 2011-06-16 04:47:58 UTC
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].
Comment 5 malerba 2011-06-16 18:38:36 UTC
The missing mdbtools.h file has been fixed in commit http://git.gnome.org/browse/libgda/commit/?h=LIBGDA_4.2&id=5bae64a290d5e6dcc2bd55bfc44bab0eca62e378
Comment 6 Ryan Laboucane 2011-06-18 11:04:31 UTC
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?
Comment 7 Fabio Durán Verdugo 2011-08-29 00:50:13 UTC
any news for this report?
Comment 8 Akhil Laddha 2011-10-14 05:25:11 UTC
malerba, can you please respond to comment#6 ?
Comment 9 Akhil Laddha 2011-11-28 07:00:00 UTC
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!