GNOME Bugzilla – Bug 162471
Build error in 1.2.0: MDB_WRITABLE undeclared
Last modified: 2007-03-19 18:58:46 UTC
The MDB provider fails to build in 1.2.0 (built fine in 1.1.99) Using version unspecified as Bugzilla doesn't have 1.2.0 available yet. gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"1.2.0\" "-DPACKAGE_STRING=\"GNU Data Access 1.2.0\"" -DPACKAGE_BUGREPORT=\"gnome-db-list@gnome.org\" -DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DGETTEXT_PACKAGE=\"libgda-2\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_BDB=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRES=1 -DHAVE_XBASE=1 -DHAVE_SQLITE=1 -DHAVE_MDB=1 -DHAVE_LDAP=1 -DHAVE_POPT_H=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -I. -I. -I../.. -I../.. -pthread -I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include -g -O2 -MT gda-mdb-provider.lo -MD -MP -MF .deps/gda-mdb-provider.Tpo -c gda-mdb-provider.c -fPIC -DPIC -o .libs/gda-mdb-provider.o gda-mdb-provider.c: In function `gda_mdb_provider_open_connection': gda-mdb-provider.c:212: error: `MDB_WRITABLE' undeclared (first use in this function) gda-mdb-provider.c:212: error: (Each undeclared identifier is reported only oncegda-mdb-provider.c:212: error: for each function it appears in.) gda-mdb-provider.c:212: warning: passing arg 1 of `mdb_open' discards qualifiers from pointer target type gda-mdb-provider.c:212: error: too many arguments to function `mdb_open' gda-mdb-provider.c: In function `get_mdb_tables': gda-mdb-provider.c:617: warning: passing arg 1 of `gda_data_model_append_row' from incompatible pointer type gda-mdb-provider.c: In function `gda_mdb_provider_execute_sql': gda-mdb-provider.c:732: warning: assignment discards qualifiers from pointer target type make[2]: *** [gda-mdb-provider.lo] Error 1
Does this problem still exist in the latest libgda versions?
Yes, just tested it with 1.3.91 and 2.99.5 and the same problem exists.
What version of MDB is this, on what platform/distro? I'm not sure that this is MDB thing is a stable API, but it's good to know the details, and maybe we can #ifdef around the changes.
It's mdbtools 0.5 on openSUSE, i586 and x86_64. The thing is that (trying to think back to when I first opened this bug) I don't think I'd updated mdbtools between building libgda 1.1.99 and 1.2.0.
0.6pre1 is required for MDB_WRITABLE.
Can be marked RESOLVED DUPLICATE bug 412122.
Excellent. *** This bug has been marked as a duplicate of 412122 ***