i686-pc-linux-gnu-gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"1.2.3\" "-DPACKAGE_STRING=\"GNU Data Access 1.2.3\"" -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_MYSQL=1 -DHAVE_XBASE=1 -DHAVE_SQLITE=1 -DHAVE_MDB=1 -DHAVE_POPT_H=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -I. -I. -I../.. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include -march=athlon-xp -O2 -pipe -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: warning: passing argument 1 of 'mdb_open' discards qualifiers from pointer target type gda-mdb-provider.c:212: error: too few arguments to function 'mdb_open' gda-mdb-provider.c: In function 'get_mdb_tables': gda-mdb-provider.c:617: warning: passing argument 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 make[2]: Leaving directory `/var/tmp/portage/libgda-1.2.3/work/libgda-1.2.3/providers/mdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgda-1.2.3/work/libgda-1.2.3/providers' make: *** [all-recursive] Error 1 !!! ERROR: gnome-extra/libgda-1.2.3 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile ebuild.sh, line 1252: Called gnome2_src_compile gnome2.eclass, line 64: Called die !!! compile failure !!! If you need support, post the topmost build error, and the call stack if relevant. the problem is the path applied # Fix compilation of the mdb provider epatch "${FILESDIR}"/${PN}-1.2.1-mdb_fix.patch the two essential lines from this patch: - mdb_cnc->mdb = mdb_open (filename, MDB_WRITABLE); + mdb_cnc->mdb = mdb_open (filename); and this shows, why this happens: cat /usr/include/mdbtools.h |grep mdb_open extern MdbHandle *mdb_open(char *filename, MdbFileFlags flags); removing the patch makes libgda compile just fine. So probably this patch should be conditionally applied on different mdbtools versions.
Well, I'm sorry but there's no
Huh, accidential middle-clicks suck; ignore the above. ;)
Just committed a patch that allows libgda to compile with mdbtools 0.5 and 0.6pre1. Thanks.