configure.in:301: warning: AC_TRY_RUN called without default to allow cross compiling make: Entering directory `/var/tmp/portage/mutt-1.5.6-r2/work/mutt-1.5.6/m4' make: `Makefile.am' is up to date. make: Leaving directory `/var/tmp/portage/mutt-1.5.6-r2/work/mutt-1.5.6/m4' configure.in:301: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:324: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:325: warning: AC_TRY_RUN called without default to allow cross compiling autoconf: Undefined macros: configure.in:820: AC_LINK_IFELSE([AC_LANG_PROGRAM([[ !!! ERROR: net-mail/mutt-1.5.6-r2 failed. !!! Function src_unpack, Line 72, Exitcode 1 !!! autoconf failed Reproducible: Always Steps to Reproduce: 1. emerge rsync 2. emerge autoconf 3. emerge mutt Portage 2.0.50-r7 (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-r4 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"
Same here. configure.in:301: warning: AC_TRY_RUN called without default to allow cross compiling make: Entering directory `/var/tmp/portage/mutt-1.5.6-r2/work/mutt-1.5.6/m4' make: `Makefile.am' is up to date. make: Leaving directory `/var/tmp/portage/mutt-1.5.6-r2/work/mutt-1.5.6/m4' configure.in:301: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:324: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:325: warning: AC_TRY_RUN called without default to allow cross compiling autoconf: Undefined macros: configure.in:820: AC_LINK_IFELSE([AC_LANG_PROGRAM([[ !!! ERROR: net-mail/mutt-1.5.6-r2 failed. !!! Function src_unpack, Line 72, Exitcode 1 !!! autoconf failed And autoconf is indeed 2.59-r4...
does it work with autoconf-2.59-r3?
yes, it worked for me just before upgrading autoconf.
I have this problem also on amd64. Portage 2.0.50-r7 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r1, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 x86_64 4 Gentoo Base System version 1.4.15 distcc 2.14 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirror.tucdemonic.org/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa amd64 apache2 apm avi berkdb cdr crypt cups dvd dvdr encode esd flac foomaticdb gdbm geoip gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg kde libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nogcj noreiserfs oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl sdl slang slp spell sqlite ssl tcltk tcpd tetex tiff truetype usb xml2 xmms xv zlib"
The problem seem to come from the maildir header cache patch which uses the AC_LINK_IFELSE and AC_LANG_PROGRAM autoconf macros in configure.in. While the configure.in states it requires autoconf 2.12, these macros are not available in autoconf 2.12 (nor 2.13). I think the reason why the bug only exits when using autoconf-2.59-r4 is because that version actually detects the correct version of autoconf to use. A solution to the bug might be to force the autoconf wrapper to use version 2.5x - I'm attaching a patch to make the ebuild do so. While this works perfectly on my system, I'm not sure if this will conflict with bug 22787. Other solutions could be to patch configure.in to not use the AC_LINK_IFELSE and AC_LANG_PROGRAM macroes, or to change AC_PREREQ.
Created attachment 32406 [details, diff] Patch to make mutt-1.5.6-r2.ebuild use autoconf 2.5x
I agree; I was the one who did the -r3 -> -r4 change, and the difference is that it now correctly identifies autoconf-2.11,.12 and .13 whereas before it was not correctly finding them. So the fix is best to be done to mutt.
This crashes for me too; same errors. How do I apply the patch so I can emerge mutt?
can we push that patch upstream so we can test it?
Sorry I missed this bug earlier! It was assigned to net-mail when it should have been assigned to me. It's fixed now in portage.