gcc -Wall -pedantic -Wall -pedantic -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=387,sse -o mutt patchlist.o addrbook.o alias.o attach.o base64.o browser.o buffy.o color.o compress.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 pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o smime.o resize.o pop.o pop_lib.o pop_auth.o account.o mutt_socket.o mutt_tunnel.o mutt_ssl.o md5c.o regex.o -Limap -limap -lslang -lm -lssl -lcrypto muttlib.o(.text+0xac): In function `mutt_adv_mktemp': : warning: the use of `mktemp' is dangerous, better use `mkstemp' menu.o(.text+0x293): In function `print_enriched_string': : undefined reference to `PAIR_NUMBER' menu.o(.text+0x2ab): In function `print_enriched_string': : undefined reference to `pair_content' menu.o(.text+0x2b7): In function `print_enriched_string': : undefined reference to `PAIR_NUMBER' menu.o(.text+0x2cf): In function `print_enriched_string': : undefined reference to `pair_content' collect2: ld returned 1 exit status theferret root # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.3-rc1-mm1) ================================================================= System uname: 2.6.3-rc1-mm1 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=387,sse" CHOST="i686-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/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=387,sse" DISTDIR="/usr/portage/distfiles" FEATURES="ccache fixpackages sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/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/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow S3TC X aalib acpi acpi4linux alsa apm arts avi cdr clanJavaScript clanVoice crypt cups curl dga directfb doc emacs encode esd fbcon flash foomaticdb gd gdbm ggi gif gimpprint gphoto2 gpm gtk gtk2 guile imap imlib ipv6 java javascript jikes jpeg justify libg++ libwww mad mbox mikmod mmx motif mozilla mpeg msn music ncurses nls noqmax nptl offensive oggvorbis opengl oss pam passfile pda pdflib perl php pic png python qt quicktime readline ruby18 samba sdl slang spell sse ssl stencil-buffer svga tcltk tcpd tetex tiff truetype usb videos wmf x86 xml xml2 xmms xv xvid zlib"
Created attachment 25439 [details, diff] #ifndef out some ncurses-specific code menu.c has been changed since mutt 1.5.5.1 with some code that breaks if slang is enabled. This should fix it.
patch works great over here.
I've checked with a mutt person, and this is a known issue. This patch should be okay until they release a fixed-up version. :)
While we're here, can I suggest a trivial alteration to the ebuild to mkdir -p /var/spool/mail when necessary? Otherwise I get a configure error.
emerging net-mail/mutt-1.5.6 with USE=slang yields the same error.
With the patch, you mean? Hrm. That's odd.
I haven't used a patch, just saying there is no fix built into mutt 1.5.6. The patch might work, I just altered my useflags to -slang for mutt.
The patch works great. As I couldn't find out a maintainer for this package, I added the patch to our CVS. Closing this bug.
*** Bug 41423 has been marked as a duplicate of this bug. ***
I can still make this happen on x86 and sparc after having sync my trees this morning.
Jason, is the failure output exactly the same as the original post? Do you happen to have USE=vanilla? I'm committing a fix for that right now...
Yes the error appears identical to the one before, and yes the vanilla useflag is enabled.
It's much happier now :) Thanks for the help Aron, you rock!