tried m4 versions: 1.4.11 and 1.4.10-r3 on two different amd64 systems and one x86 system resulted in the same error: # cat /var/tmp/portage/net-fs/am-utils-6.1.5/temp/aclocal-8440.out ***** aclocal ***** ***** aclocal acinclude.m4:3971: the serial number must appear before any macro definition acinclude.m4:10530: error: m4_defn: undefined macro: _m4_divert_diversion acinclude.m4:10530: the top level autom4te-2.62: /usr/bin/m4 failed with exit status: 1 aclocal-1.10: autom4te failed with exit status: 1 emerge --info: Portage 2.1.5_rc6 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.23-gentoo-r9 x86_64) ================================================================= System uname: 2.6.23-gentoo-r9 x86_64 AMD Athlon(tm) 64 FX-60 Dual Core Processor Timestamp of tree: Sat, 03 May 2008 23:30:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r11, 2.5.2-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.3 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -march=athlon64 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/n/mali/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/n/mali/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 berkdb cli cracklib crypt cups dbus dri fortran gdbm gpm hal iconv ipv6 isdnlog kde midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python qt readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard kbd mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia fbdev vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** Bug 222593 has been marked as a duplicate of this bug. ***
I've had the same problem here on Gentoo/FreeBSD. I noticed that aclocal-1.7 runs fine, but there will be problems with autoconf later. It seems to work fine though when you revert to autoconf-2.61-r1. There seems to be a misconfiguration in the m4 code of autoconf-2.62. Here is a more detailled list of the autotools used: sys-devel/autoconf-2.61-r1 sys-devel/automake-1.10.1-r1 sys-devel/automake-1.10.1 also works (this one on Gentoo/Linux) sys-devel/automake-wrapper-3-r1 sys-devel/autoconf-wrapper-4-r3 also installed but not used: sys-devel/automake-1.7.9-r1 Hope that helps.
(In reply to comment #0) autoconf-2.61-r2 also works suggesting that there is some definite incompatibility with 2.62* (thus far). Keep in mind that if you use autoconf-2.61* you will also need to revert libtool also or the am-utils make will fail further inwards. (I successfully used libtool-1.5.26)
PLEASE BE ADVISED: courier-authlib 0.61.0 suffers from the exact same autoconf and libtool problems during compilation *both* autoconf _and_ libtool need to be reverted to earlier versions for the compile to complete successfully without onerous and disgusting user intervention I used autoconf 2.61-r2 and libtool 1.5.26
(In reply to comment #4) > ... > *both* autoconf _and_ libtool need to be reverted to earlier versions for the > compile to complete successfully without onerous and disgusting user > intervention > > I used autoconf 2.61-r2 and libtool 1.5.26 I can confirm that downgrading to those versions works for Gentoo/Linux; using both sys-devel/autoconf-2.63 & sys-devel/libtool-2.2.6a still fail.
The acinclude.m4 file should be removed, and m4 should be added to AT_M4_DIR, instead, possibly removing libtool files, otherwise it fails with a message about serials.
*** Bug 240754 has been marked as a duplicate of this bug. ***
no longer in the tree ... it was pmasked + punted