I am installing Gentoo on new machine, and after getting X and KDE up and running, I wanted to install emacs. But the ebuild fails with this compilation error: [ ...... ] creating src/config.h creating src/epaths.h cd /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3 && autoconf aclocal.m4:30: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/c.m4:870: AC_PROG_CC_STDC is expanded from... aclocal.m4:30: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 make: *** [/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/configure] Error 1 creating lib-src/Makefile creating src/Makefile cd /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3 && autoconf aclocal.m4:30: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/c.m4:870: AC_PROG_CC_STDC is expanded from... aclocal.m4:30: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 make: *** [/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/configure] Error 1 !!! ERROR: app-editors/emacs-21.3-r3 failed. !!! Function src_compile, Line 82, Exitcode 2 !!! (no error message) I have tried it with and without forcing autoconf to use version 2.59 with the same result. Reproducible: Always Steps to Reproduce: 1. emerge emacs 2. 3. Actual Results: The error above occured Expected Results: Installing emacs. :-) IBM Thinkpad T30. I do two slighly unusual things: I use the jfs filesystem, and I use nptl. bash-2.05b# emerge info Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6.8.1) ================================================================= System uname: 2.6.8.1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d acpi alsa arts atlas avi berkdb bitmap-fonts cdr crypt cups dga dvd emacs encode fam foomaticdb gdbm gif gpm gtk gtk2 imap imlib jpeg kde libg++ libwww mad maildir mbox mikmod motif mozilla mpeg mule ncurses netcdf nls nptl oggvobis oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype trustedusb wxwindows x86 xml2 xmms xprint xv zlib" bash-2.05b#
I'm seeing this too. Just completing a new server install (from stage3-pentium4-2004.2.tar.bz2), very little set up yet - just got to putting emacs on :) `emerge info` output: Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6. 8-gentoo-r7) ================================================================= System uname: 2.6.8-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://mir. zyrianes.net/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://linux.rz.ruhr-uni-bo chum.de/download/gentoo-mirror/ http://ftp.caliu.info/pub/gentoo/ ftp://ftp.cali u.info/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 apm avi berkdb bitmap-fonts crypt cups dba emacs encode foomaticdb gd gdbm gif gpm imlib jpeg libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl session slang spell sse sse2 ssl svga tcpd truetype x86 xml2 xmms xprint xsl xv zlib"
What does `equery list autoconf` say? It is not autoconf-2.5 but autoconf-2.1 you have to force (and it should be done in the ebuild). FYI, /usr/bin/autoconf is a perl script to switch between autoconf versions.
I'm also installing a new server. I think the other reporters missed the first error message printed when emerging emacs. electra root # equery list autoconf Searching for package 'autoconf' in all categories among: * installed packages [I--] [ ] sys-devel/autoconf-2.59-r4 (2.5) electra root # autoconf --version Autoconf version 2.13 electra root # emerge emacs Calculating dependencies ...done! >>> emerge (1 of 1) app-editors/emacs-21.3-r3 to / >>> md5 src_uri ;-) emacs-21.3.tar.gz >>> Unpacking source... >>> Unpacking emacs-21.3.tar.gz to /var/tmp/portage/emacs-21.3-r3/work >>> Source unpacked. * Applying emacs-21.3-amd64.patch... [ ok ] * Applying emacs-21.3-hppa.patch... [ ok ] aclocal.m4:30: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/c.m4:870: AC_PROG_CC_STDC is expanded from... aclocal.m4:30: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 nls creating cache ./config.cache checking host system type... i686-pc-linux-gnu [...] creating src/epaths.h cd /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3 && autoconf aclocal.m4:30: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/c.m4:870: AC_PROG_CC_STDC is expanded from... aclocal.m4:30: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 make: *** [/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/configure] Error 1 creating lib-src/Makefile creating src/Makefile cd /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3 && autoconf aclocal.m4:30: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/c.m4:870: AC_PROG_CC_STDC is expanded from... aclocal.m4:30: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 make: *** [/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/configure] Error 1 !!! ERROR: app-editors/emacs-21.3-r3 failed. !!! Function src_compile, Line 82, Exitcode 2 !!! (no error message)
bash-2.05b# autoconf --version Autoconf version 2.13 bash-2.05b# equery list autoconf Searching for package 'autoconf' in all categories among: * installed packages [I--] [ ] sys-devel/autoconf-2.59-r4 (2.5) bash-2.05b# etcat -v autoconf [ Results for search key : autoconf ] [ Candidate applications found : 1 ] Only printing found installed programs. * sys-devel/autoconf : [ I] 2.59-r4 (2.5) Clearly, it is bug 66854 causing this, as setting WANT_AUTOCONF_2_1 fixed the problem. /Jakob
*** This bug has been marked as a duplicate of 66854 ***