emerge mutt ends with muttlib.o: In function `mutt_adv_mktemp': muttlib.c:(.text+0xdb2): warning: the use of `mktemp' is dangerous, better use `mkstemp' hcache.o: In function `mutt_hcache_open': hcache.c:(.text+0x9d0): undefined reference to `db_env_create_4002' hcache.c:(.text+0xa0c): undefined reference to `db_create_4002' collect2: ld returned 1 exit status make[2]: *** [mutt] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/mutt-1.5.11/work/mutt-1.5.11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mutt-1.5.11/work/mutt-1.5.11' make: *** [all] Error 2 !!! ERROR: mail-client/mutt-1.5.11 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 930: Called src_compile mutt-1.5.11.ebuild, line 165: Called die Merged successful with "-berkdb" use flag. Portage 2.1_pre10-r5 (selinux/2005.1/amd64, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16.14 x86_64) ================================================================= System uname: 2.6.16.14 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-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/share/X11/xkb /usr/sh are/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/ share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/t exmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox selinux sfperms strict" GENTOO_MIRRORS="http://files.gentoo.gr" LINGUAS="en el" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acpi alsa amd64 apache2 avi berkdb blas cairo cdr cjk crypt cups dbus dvd dvdr emul-linux-x86 fam ffmpeg firefox fortran gamin gif gimpprint gnome gr aphviz gtk gtk2 gtkhtml hal hdf5 imlib immqt-bc java jpeg kde kdeenablefinal lap ack mad matroska mime motif moznocompose moznoirc moznomail mp3 mpeg ncurses nls nntp nosendmail nptl nptlonly nvidia ogg oggvorbis opengl pam perl php plotutil s png ppds python qt quicktime readline ruby sbcl selinux spell ssl svg tcltk tc pd tetex tidy tiff truetype unicode usb userlocales vorbis xine xmms xscreensave r xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_lin ux linguas_en linguas_el userland_GNU video_cards_nv" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA GS, PORTAGE_RSYNC_EXTRA_OPTS
I just compiled mutt with the berkdb flag and nothing failed. To start looking into this bug I need to know: - your sys-libs/db version - your linker line (the one before the first one you posted) Mine looks like (hope the layout doesn't get screwed): --- 8< --- i686-pc-linux-gnu-gcc -Wall -pedantic -march=athlon-xp -O2 -pipe -fomit-frame-pointer -o mutt patchlist.o addrbook.o alias.o attach.o base64.o browser.o buffy.o color.o crypt.o cryptglue.o commands.o complete.o compose.o copy.o curs_lib.o curs_main.o date.o edit.o enter.o flags.o init.o filter.o from.o getdomain.o handler.o hash.o hdrline.o headers.o help.o hook.o keymap.o main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o postpone.o query.o recvattach.o recvcmd.o rfc822.o rfc1524.o rfc2047.o rfc2231.o score.o send.o sendlib.o signal.o sort.o status.o system.o thread.o charset.o history.o lib.o muttlib.o editmsg.o utf8.o mbyte.o wcwidth.o url.o ascii.o mutt_idna.o crypt-mod.o pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o smime.o crypt-mod-smime-classic.o remailer.o resize.o account.o mutt_socket.o mutt_tunnel.o mutt_ssl.o hcache.o md5c.o regex.o -Limap -limap -lncursesw -lssl -lcrypto -L/usr/lib// -ldb-4.2 --- 8< --- - ferdy
ok my db ver is sys-libs/db-4.2.52_p2-r1 and exact error x86_64-pc-linux-gnu-gcc -Wall -pedantic -O2 -march=k8 -pipe -o pgpring pgppubring.o pgplib.o lib.o extlib.o sha1.o md5c.o pgppacket.o ascii.o regex.o -L/usr/lib// -ldb-4 muttlib.o: In function `mutt_adv_mktemp': muttlib.c:(.text+0xdb2): warning: the use of `mktemp' is dangerous, better use `mkstemp' hcache.o: In function `mutt_hcache_open': hcache.c:(.text+0x9d0): undefined reference to `db_env_create_4002' hcache.c:(.text+0xa0c): undefined reference to `db_create_4002' collect2: ld returned 1 exit status make[2]: *** [mutt] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/mutt-1.5.11/work/mutt-1.5.11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mutt-1.5.11/work/mutt-1.5.11' make: *** [all] Error 2 !!! ERROR: mail-client/mutt-1.5.11 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 930: Called src_compile mutt-1.5.11.ebuild, line 165: Called die
hmm, re emerged db and mutt compiled just fine. I should have done that first :/ bug marked invalid
*** Bug 174303 has been marked as a duplicate of this bug. ***