Even though xemacs is emerged with the +berkdb flag, xemacs doesn't seem to have berkeley-db support. Reproducible: Always Steps to Reproduce: 1. M-x toggle-where-was-i Actual Results: Error: Cannot open load file: berkeley-db * app-editors/xemacs-21.4.15-r3 Install date: Sun Aug 14 13:08:16 2005 USE="gpm ldap nas X jpeg tiff png motif berkdb -postgres -xface -dnd -mule -freewnn -canna -athena -neXt -Xaw3d" Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5- r0, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10, 2.16-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=pentium -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdread eds emacs emboss encode esd exif fam ffmpeg flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg junit lda p libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg nas ncurses nls offensive ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline ruby sdl slang speex spell sse sse2 ssl tcltk tcpd tiff truetype truetype-fonts type1-fon ts vorbis xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
yes, i seems that berkdb should be renamed to gdbm. where does toggle-where-was-i come from? i don't have it.
It's part of app-xemacs/edit-utils.
Setting berkdb does indeed enable gdbm. Updated ebuild for 21.4.19 in bug 97786 has both a gdbm and a berkdb flag. I tried toggle-where-was-i for the first time :)
Created attachment 100194 [details, diff] Patch to fix gdbm / berkdb confusion. I've created a patch (which I have attached to this bug report) which does two things: first, it cleans up the current berkdb/gdbm confusion, so that if berkdb is specified, then that is what is used, and if gdbm is specified, then that is what is used; second, this patch causes xemacs to use db-4 rather than db-1.
This is now fixed in xemacs 21.4.19-r2, using a combination of my own and Adam's patches.