Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110704 - libgda-1.2.2-r1 fails to compile with >=sys-libs/db-4.3
Summary: libgda-1.2.2-r1 fails to compile with >=sys-libs/db-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 118772 140097 141568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-28 06:14 UTC by TGL
Modified: 2006-08-01 18:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libgda-1.2.2-bdb-4.3-compilation-fix.patch (libgda-1.2.2-bdb-4.3-compilation-fix.patch,342 bytes, patch)
2005-10-28 06:15 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2005-10-28 06:14:32 UTC
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
Comment 1 TGL 2005-10-28 06:15:00 UTC
Created attachment 71631 [details, diff]
libgda-1.2.2-bdb-4.3-compilation-fix.patch
Comment 2 TGL 2005-10-28 06:46:17 UTC
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.
Comment 3 TGL 2005-10-31 04:06:15 UTC
The fix has been integrated upstream, but no new version yet.
Comment 4 Leonardo Boshell (RETIRED) gentoo-dev 2006-01-14 06:25:53 UTC
*** Bug 118772 has been marked as a duplicate of this bug. ***
Comment 5 Leonardo Boshell (RETIRED) gentoo-dev 2006-01-30 21:27:48 UTC
libgda-1.2.3 has been added to the tree, which already contains this fix. Sorry for the late reply.. :)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 04:20:22 UTC
*** Bug 140097 has been marked as a duplicate of this bug. ***
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2006-08-01 18:11:36 UTC
*** Bug 141568 has been marked as a duplicate of this bug. ***