Trying to compile libgda-1.2.2-r1 with db-4.3.27, i got this: ------------------------------------------------------------- if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"GNU\ Data\ Access\" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"1.2.2\" -DPACKAGE_STRING=\"GNU\ Data\ Access\ 1.2.2\" -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_SQLITE=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 -march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe -MT gda-bdb-recordset.lo -MD -MP -MF ".deps/gda-bdb-recordset.Tpo" -c -o gda-bdb-recordset.lo gda-bdb-recordset.c; \ then mv -f ".deps/gda-bdb-recordset.Tpo" ".deps/gda-bdb-recordset.Plo"; else rm -f ".deps/gda-bdb-recordset.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"1.2.2\" "-DPACKAGE_STRING=\"GNU Data Access 1.2.2\"" -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_SQLITE=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 -march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe -MT gda-bdb-recordset.lo -MD -MP -MF .deps/gda-bdb-recordset.Tpo -c gda-bdb-recordset.c -fPIC -DPIC -o .libs/gda-bdb-recordset.o gda-bdb-recordset.c: In function `gda_bdb_recordset_new': gda-bdb-recordset.c:234: warning: passing arg 2 of pointer to function from incompatible pointer type gda-bdb-recordset.c:234: error: too few arguments to function make[2]: *** [gda-bdb-recordset.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgda-1.2.2-r1/work/libgda-1.2.2/providers/bdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgda-1.2.2-r1/work/libgda-1.2.2/providers' make: *** [all-recursive] Error 1 ------------------------------------------------------------- In db.h, i've found this: struct __db { <snip> int (*stat) __P((DB *, DB_TXN *, void *, u_int32_t)); Hence the attached patch. Gnome bug http://bugzilla.gnome.org/show_bug.cgi?id=307616 seems to confirm both the issue and the patch. Reproducible: Always Steps to Reproduce: Portage 2149-svn (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-archck7.1 i686) ================================================================= System uname: 2.6.13-archck7.1 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.12.0_pre9 ccache version 2.4 [disabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/cursors/xorg-x11/default /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/dev.d /etc/env.d /etc/gconf /etc/hotplug /etc/hotplug.d /etc/init.d /etc/sound /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig digest distlocks fixpackages manifest sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/ http://pandemonium.tiscali.de/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.ussg.iu.edu/linux/gentoo" LANG="en_US" LC_ALL="en_US" LINGUAS="fr fr_FR en en_US" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage/tree" PORTDIR_OVERLAY="/var/portage/overlays/bugzilla /var/portage/overlays/tgl /var/portage/overlays/demexp /var/portage/overlays/camelis /var/portage/overlays/tiny" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac aalib acpi adns alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdparanoia cdr cross crypt cscope cups curl dba dbus dga dpms dvd dvdr emboss encode expat faad fam fame fastcgi fbcon ffmpeg firefox flac foomaticdb fortran freetype gd gdbm ggz gif gimp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imap imlib imlib2 ipv6 java jikes jpeg junit lcms leim libcaca libg++ libwww lirc logrotate lzo mad mailwrapper matroska mbox memlimit mikmod mjpeg mmx mng mozilla mp3 mpeg musicbrainz ncurses network nls nodrm nptl nsplugin offensive ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl plotutils png pnp postgres python qt quicktime readline ruby scanner sdl slang slp smooth sndfile snmp sox speex spell sqlite sse sse2 ssl svg sysfs syslog tcltk tcpd tetex theora threads tiff tmpfs truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vhosts vorbis wifi win32codecs wmf wxwindows xface xfs xine xinerama xml xml2 xosd xpm xprint xscreensaver xsl xv xvid zeo zlib video_cards_radeon input_devices_synaptics linguas_fr linguas_fr_FR linguas_en linguas_en_US userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Created attachment 71631 [details, diff] libgda-1.2.2-bdb-4.3-compilation-fix.patch
Oh, and for more info on this parameter i've set to NULL, see: http://www.sleepycat.com/docs/api_c/db_stat.html Basically, there is no transaction involved here, that's why it should be fine.
The fix has been integrated upstream, but no new version yet.
*** Bug 118772 has been marked as a duplicate of this bug. ***
libgda-1.2.3 has been added to the tree, which already contains this fix. Sorry for the late reply.. :)
*** Bug 140097 has been marked as a duplicate of this bug. ***
*** Bug 141568 has been marked as a duplicate of this bug. ***