Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52008 - [bug] mutt-1.5.6-r1 does not compile
Summary: [bug] mutt-1.5.6-r1 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 06:46 UTC by Alberto Ornaghi
Modified: 2004-05-26 09:46 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,102.47 KB, text/plain)
2004-05-26 07:53 UTC, Alberto Ornaghi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Ornaghi 2004-05-25 06:46:41 UTC
[...]
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"
Comment 1 Stefan Sperling 2004-05-25 14:58:01 UTC
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 :)
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-25 19:45:00 UTC
Could you please provide the output of "qpkg -I -v sys-libs/db"
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-25 20:22:34 UTC
Ok, fixed in mutt-1.5.6-r2... Thanks to khai for debugging
Comment 4 Alberto Ornaghi 2004-05-26 00:35:30 UTC
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
Comment 5 Patrick Fourniols 2004-05-26 03:02:58 UTC
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
Comment 6 Alberto Ornaghi 2004-05-26 03:12:02 UTC
nntp was already disabled in my make.conf settings...

btw the result is the same with "USE="-nntp" emerge mutt"

bye
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2004-05-26 07:44:30 UTC
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?
Comment 8 Alberto Ornaghi 2004-05-26 07:53:45 UTC
Created attachment 32073 [details]
config.log

here it is.

bye
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2004-05-26 07:59:20 UTC
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
Comment 10 Alberto Ornaghi 2004-05-26 08:02:45 UTC
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
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-05-26 08:08:31 UTC
btw, I just fixed nntp problem, thanks Patrick
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2004-05-26 09:41:40 UTC
ok, the reason this works for me is that I have gdbm installed.  It's not using Berkeley db at all!  Blech
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2004-05-26 09:46:18 UTC
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