[...] gcc -DPKGDATADIR=\"/usr/share/mutt\" -DSYSCONFDIR=\"/etc/mutt\" -DBINDIR=\"/usr/bin\" -DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1 -I. -I. -I./imap -Iintl -I./intl -I/usr/include -Wall -pedantic -march=athlon -mcpu=athlon -O3 -pipe -c hcache.c hcache.c: In function `mutt_hcache_dump': hcache.c:333: warning: implicit declaration of function `gettimeofday' hcache.c: In function `mutt_hcache_open': hcache.c:570: error: incompatible type for argument 4 of indirect function call hcache.c:570: error: too many arguments to function hcache.c: In function `mutt_hcache_close': hcache.c:585: warning: unused variable `ret' make[2]: *** [hcache.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/mutt-1.5.6-r1/work/mutt-1.5.6' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mutt-1.5.6-r1/work/mutt-1.5.6' make: *** [all-recursive-am] Error 2 !!! ERROR: net-mail/mutt-1.5.6-r1 failed. !!! Function src_compile, Line 144, Exitcode 2 !!! make failed (myconf= --enable-nls --with-ssl --enable-imap --enable-pgp --disable-default-japanese --sysconfdir=/etc/mutt --with-docdir=/usr/share/doc/mutt-1.5.6-r1 --with-regex --enable-pop --enable-nfs-fix --disable-fcntl --enable-flock --enable-external-dotlock --with-slang --with-maildir=/var/spool/mail --enable-imap-edit-threads --enable-compressed --disable-nntp --enable-hcache) Reproducible: Always Steps to Reproduce: 1. emerge mutt 2. 3. Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.2-r9, 2.4.26) ================================================================= System uname: 2.4.26 i686 mobile AMD Athlon(tm) 4 Processor Gentoo Base System version 1.4.15 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -mcpu=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/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/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage.local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi acpi4linux alsa apache2 avi berkdb cdr crypt cscope curl dga dvd esd fbcon foomaticdb gd gif gpm gtk gtk2 imap imlib innodb java jpeg ldap libwww mbox mmx mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib plotutils png pnp quicktime readline samba sdl slang socks5 spell sse ssl svga tcpd tetex tiff truetype usb wavelan x86 xv zlib"
mmmh... Compiles cleanly here... hcache.c:333: warning: implicit declaration of function `gettimeofday' This is because they forgot to include sys/time.h. But it does not matter. hcache.c:570: error: incompatible type for argument 4 of indirect function call hcache.c:570: error: too many arguments to function This is weird, on my system the function does take 4 arguments. It is declared in /usr/include/db4.1/db.h, line 1649. What version of sys-libs/db do you have installed? I have 4.1.25_p1-r3. hcache.c:585: warning: unused variable `ret' This is silly. Probably the people who wrote this code do not read compiler warnings, or they forgot -Wall :)
Could you please provide the output of "qpkg -I -v sys-libs/db"
Ok, fixed in mutt-1.5.6-r2... Thanks to khai for debugging
now it complains about: checking for idna_to_ascii_lz... no checking for idna_to_ascii_from_locale... no checking for BerkeleyDB > 4.0... no checking for gdbm_open... no configure: error: You need Sleepycat DB4 or GDBM for --enable-hcache !!! ERROR: net-mail/mutt-1.5.6-r2 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed but I have: # qpkg -I -v sys-libs/db sys-libs/db-4.0.14-r2 * sys-libs/db-1.85-r1 * sys-libs/db-3.2.9-r10 * sys-libs/db-4.1.25_p1-r3 * do I need something more ? bye
just something bad in the ebuild: if USE="nntp" is set, patch patch-1.5.6.vvv.nntp-gentoo.bz2 does not apply correctly ( block on Makefile.am ) work around: USE="-nntp" emerge mutt
nntp was already disabled in my make.conf settings... btw the result is the same with "USE="-nntp" emerge mutt" bye
Alberto, would you mind *attaching* (not posting inline) the file config.log from /var/tmp/portage/mutt-1.5.6-r2/work/mutt-1.5.6?
Created attachment 32073 [details] config.log here it is. bye
Alberto, here are a couple more commands. You can post the results inline. epm -q db | sort | while read db; do echo "#### $db ####"; epm -V $db; done ls -l /usr/include/db.h
epm -q db | sort | while read db; do echo "#### $db ####"; epm -V $db; done #### db-1.85-r1 #### #### db-3.2.9-r10 #### #### db-4.0.14-r2 #### #### db-4.1.25_p1-r3 #### ls -l /usr/include/db.h lrwxrwxrwx 1 root root 10 May 26 12:24 /usr/include/db.h -> db4.1/db.h
btw, I just fixed nntp problem, thanks Patrick
ok, the reason this works for me is that I have gdbm installed. It's not using Berkeley db at all! Blech
Ok, I will join the millions who find Berkeley DB support too annoying to care. I just changed mutt-1.5.6-r2 to require gdbm. If you want to use it immediately without waiting for the sync: emerge gdbm mutt