Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526520 - net-analyzer/iftop-1.0_pre4 - configure.ac:107: error: possibly undefined macro: AC_MSG_CHECKING
Summary: net-analyzer/iftop-1.0_pre4 - configure.ac:107: error: possibly undefined mac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-22 20:41 UTC by Mike
Modified: 2014-10-28 16:07 UTC (History)
4 users (show)

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


Attachments
environment file from failed emerge (environment,97.52 KB, text/plain)
2014-10-27 12:33 UTC, Ben Kohler
Details
emerge --info (emerge-info.txt,4.95 KB, text/plain)
2014-10-27 12:34 UTC, Ben Kohler
Details
autoconf.out (autoconf.out,423 bytes, text/plain)
2014-10-27 12:35 UTC, Ben Kohler
Details
environment file from successful emerge (environment.new,98.04 KB, text/plain)
2014-10-27 13:01 UTC, Ben Kohler
Details
environment file from the first build (failed) (failedbuild-environment,101.96 KB, text/plain)
2014-10-27 13:03 UTC, antu456
Details
environment file from the second build (successful) (successfulbuild-environment,102.53 KB, text/plain)
2014-10-27 13:04 UTC, antu456
Details
emerge --info (emerge-info,6.18 KB, text/plain)
2014-10-27 13:07 UTC, antu456
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2014-10-22 20:41:26 UTC
* ERROR: net-analyzer/iftop-1.0_pre4::gentoo failed (prepare phase):
 *   Failed Running autoconf !

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

# cat /var/tmp/portage/net-analyzer/iftop-1.0_pre4/temp/autoconf.out

***** autoconf *****
***** PWD: /var/tmp/portage/net-analyzer/iftop-1.0_pre4/work/iftop-1.0pre4
***** autoconf

configure.ac:107: error: possibly undefined macro: AC_MSG_CHECKING
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:196: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:357: error: possibly undefined macro: AC_TRY_LINK


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-


# cat /var/tmp/portage/net-analyzer/iftop-1.0_pre4/temp/build.log

 * Package:    net-analyzer/iftop-1.0_pre4
 * Repository: gentoo
 * Maintainer: netmon@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking iftop-1.0pre4.tar.gz to /var/tmp/portage/net-analyzer/iftop-1.0_pre4/work
>>> Source unpacked in /var/tmp/portage/net-analyzer/iftop-1.0_pre4/work
>>> Preparing source in /var/tmp/portage/net-analyzer/iftop-1.0_pre4/work/iftop-1.0pre4 ...
 * Applying iftop-1.0_pre4-tinfo.patch ...                                                                      [ ok ]
 * Applying iftop-1.0_pre4-pthread.patch ...                                                                    [ ok ]
 * Running eautoreconf in '/var/tmp/portage/net-analyzer/iftop-1.0_pre4/work/iftop-1.0pre4' ...
 * Running aclocal ...                                                                                          [ ok ]
 * Running autoconf ...                                                                                         [ !! ]

 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/net-analyzer/iftop-1.0_pre4/temp/autoconf.out

 * ERROR: net-analyzer/iftop-1.0_pre4::gentoo failed (prepare phase):
 *   Failed Running autoconf !
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 2712:  Called eautoreconf
 *   environment, line  836:  Called eautoconf
 *   environment, line  743:  Called autotools_run_tool '--at-m4flags' 'autoconf'
 *   environment, line  583:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 *
 * If you need support, post the output of `emerge --info '=net-analyzer/iftop-1.0_pre4::gentoo'`,


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

# emerge --info '=net-analyzer/iftop-1.0_pre4::gentoo'

Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     8026728 total,   1702472 free
KiB Swap:     262140 total,    262140 free
Timestamp of tree: Wed, 22 Oct 2014 18:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://mirror.ovh.net/gentoo-distfiles ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mexmat.sgu.ru/soft/Linux/distributions/gentoo/distfiles/ ftp://mirror.linux.org.au/gentoo/gentoo/distfiles/ ftp://tux.rainside.sk/gentoo/ ftp://iso.linux.hr/gentoo/distfiles/"
LANG="en_US.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X \ a52 aac acl acpi alsa amd64 avx bashlogger berkdb bindist branding bzip2 cairo cdda cdio cdr cdrom cgi cli consolekit cracklib crypt cups curl cxx dbus directfb dri dts dv dvd dvdr embedded emboss emerald enca encode exif extras faac fam fbcon firefox flac fontconfig fortran freetype gbm gd gdbm gif glamor gles gles2 glx gnutls gpm gstreamer gtk gtk2 h264 hal httpd iconv icu imapi jack jpeg kde lcms ldap libass libkms libnotify lirc lm_sensors lua mad matroska mboxi minizip mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin nv nvidia ogg opengl openmp openssl osdmenu oss pam pango passwordsave pcapi pcntli pcre pdf png policykit portaudio ppds pulseaudio qemu-ifup qt qt3support qt4 radeon readline real realtime rtc rtmp rtsp run-as-root samba sdl server session sip sna spell sqlite sse sse2 ssl ssse3 startup-notification suid svg system-sqlite system-wide tcpd tftp threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vde vdpau vesa vim-syntax vorbis wav wayland win32codecs wxwidgets x264 xa xcb xcomposite xine xml xmp xorg xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-2" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon nvidia intel i965 vesa vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Comment 1 Mike 2014-10-22 20:55:03 UTC
the compile fails on autoconf if another package is installed just before 'iftop'
( in this case it is one of its dependencies - libpcap-1.5.3 )
if 'emerge' is re-started again, it passes with no issues.
Also, this is the second time within last two days that the i7-4770k system fails in a similar way ( alsamixergui-0.9.0.1.2-r4 ), if MAKEOPTS="-j1" it does not fail in both cases. but if -j8, it dies...
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-22 23:03:56 UTC
(In reply to Mike from comment #1)
> the compile fails on autoconf if another package is installed just before
> 'iftop'
> ( in this case it is one of its dependencies - libpcap-1.5.3 )
> if 'emerge' is re-started again, it passes with no issues.
> Also, this is the second time within last two days that the i7-4770k system
> fails in a similar way ( alsamixergui-0.9.0.1.2-r4 ), if MAKEOPTS="-j1" it
> does not fail in both cases. but if -j8, it dies...

It dies in exactly the same way? I don't think so, judging from your contributions to bug #490354.
Comment 3 Mike 2014-10-23 04:30:32 UTC
(In reply to Jeroen Roovers from comment #2)
> (In reply to Mike from comment #1)
> > the compile fails on autoconf if another package is installed just before
> > 'iftop'
> > ( in this case it is one of its dependencies - libpcap-1.5.3 )
> > if 'emerge' is re-started again, it passes with no issues.
> > Also, this is the second time within last two days that the i7-4770k system
> > fails in a similar way ( alsamixergui-0.9.0.1.2-r4 ), if MAKEOPTS="-j1" it
> > does not fail in both cases. but if -j8, it dies...
> 
> It dies in exactly the same way? I don't think so, judging from your
> contributions to bug #490354.

I agree, it does not die the same way, although the cause might be related. If -j1 does build the requested package successfully, along with its dependencies earlier. If that's the case then the bug might be hiding somewhere else...


...In the previous case I did not properly point out the affected Makefile...
Comment 4 Mike 2014-10-23 04:36:49 UTC
is there any other test I could do to test for a possible race condition or timing issue via emerge? in both cases if fails with "my usual" -j8.
I have seen similar behavior in the past, This time it started appearing after "emerging" over 200 packages... reproducible.
Comment 5 Mike 2014-10-23 12:13:19 UTC
if the package is "emerged" by itself, after all dependencies are installed, in both cases it succeeds. If dependencies are installed just before the requested package ( alsamixergui and iftop ) it fails. repeated this scenario and failed every time on both packages.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-25 09:26:21 UTC
All I can think of is that some variable is polluting the build environment.
Comment 7 thegeekpirate 2014-10-26 01:53:06 UTC
I had the same issue, installed it by itself instead, and it worked without a hitch.

$ emerge --info
Portage 2.2.14 (python 3.4.2-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.17.1-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.17.1-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12331232 total,   4739500 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 25 Oct 2014 22:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo sublime-text steam-overlay qt eroen unity-gentoo x-portage
Installed sets: @qt5-addons, @qt5-essentials
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sublime-text /var/lib/layman/steam /var/lib/layman/qt /var/lib/layman/eroen /var/lib/layman/unity-gentoo /usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm iconv ipv6 mmx modules mouse multilib ncurses nls nptl openmp pam pcre pulseaudio readline session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 systemd tcpd threads unicode vim-syntax zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-26 08:25:44 UTC
I have made some notable changes to the configure script that might help fix this issue. I still can't reproduce it so I'm trying to generally improve configure.ac. Could you try and reproduce this with either -r1 or -r2?
Comment 9 Ben Kohler gentoo-dev 2014-10-27 01:26:55 UTC
I've just hit this same error myself on net-analyzer/iftop-1.0_pre4-r2, and like the reporter, emerging it again immediately succeeds.  Let me know if there's any info I can provide.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 09:08:24 UTC
(In reply to Ben Kohler from comment #9)
> Let me know if there's any info I can provide.

emerge --info :)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 09:10:48 UTC
(In reply to Jeroen Roovers from comment #10)
> (In reply to Ben Kohler from comment #9)
> > Let me know if there's any info I can provide.
> 
> emerge --info :)

Also, I changed things near line 107 of configure.ac, so the error messages in autoconf.out should be different.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 09:53:43 UTC
Also, you should see a difference in your environment file, and I see neither of those attached.
Comment 13 Mike 2014-10-27 12:19:39 UTC
(In reply to Jeroen Roovers from comment #8)
> I have made some notable changes to the configure script that might help fix
> this issue. I still can't reproduce it so I'm trying to generally improve
> configure.ac. Could you try and reproduce this with either -r1 or -r2?

Jeroen, what do you mean by saying "-r1 or -r2" ?
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 12:22:59 UTC
(In reply to Mike from comment #13)
> Jeroen, what do you mean by saying "-r1 or -r2" ?

=net-analyzer/iftop-1.0_pre4-r1
=net-analyzer/iftop-1.0_pre4-r2
Comment 15 Ben Kohler gentoo-dev 2014-10-27 12:33:57 UTC
Created attachment 387532 [details]
environment file from failed emerge
Comment 16 Ben Kohler gentoo-dev 2014-10-27 12:34:33 UTC
Created attachment 387534 [details]
emerge --info
Comment 17 Ben Kohler gentoo-dev 2014-10-27 12:35:11 UTC
Created attachment 387536 [details]
autoconf.out
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 12:44:53 UTC
(In reply to Ben Kohler from comment #15)
> Created attachment 387532 [details]
> environment file

Both the one from the "combined emerge" run and the "single emerge" run, please. Which one is this?
Comment 19 Ben Kohler gentoo-dev 2014-10-27 13:01:21 UTC
Created attachment 387548 [details]
environment file from successful emerge

I emerged it on a second desktop so I could reproduce the problem, and it was the only package in the emerge list.  But subsequent 'emerge iftop' runs succeed, here is the environment file from the successful emerge.
Comment 20 antu456 2014-10-27 13:03:28 UTC
Created attachment 387550 [details]
environment file from the first build (failed)
Comment 21 antu456 2014-10-27 13:04:14 UTC
Created attachment 387552 [details]
environment file from the second build (successful)
Comment 22 antu456 2014-10-27 13:05:58 UTC
I also just got this error, I've attached the environment file from the failed/successful build, hope this helps.
Comment 23 antu456 2014-10-27 13:07:02 UTC
Created attachment 387554 [details]
emerge --info
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 13:44:37 UTC
--- env2.fail
+++ env2.succ
...
-declare -x WANT_AUTOCONF="latest"
-declare -x WANT_AUTOMAKE="latest"
+declare -x WANT_AUTOCONF="2.5"
+declare -x WANT_AUTOMAKE="1.14"

--- env.fail
+++ env.succ

-declare -x WANT_AUTOCONF="latest"
-declare -x WANT_AUTOMAKE="latest"
+declare -x WANT_AUTOCONF="2.5"
+declare -x WANT_AUTOMAKE="1.14"

It appears that app-editors/xemacs might be responsible for WANT_AUTOCONF (bug #527076). Do any of you have app-editors/xemacs installed? Or something from an overlay that might do this?

As for WANT_AUTOMAKE, I don't see anything in the tree that sets WANT_AUTOMAKE to that version. Again, overlay?
Comment 25 Mike 2014-10-27 13:47:22 UTC
sorry - for some reason I assumed that there is no r1 or r2 release of iftop.

I unmerged iftop and libpcap since it was failing as a part of a emerge with deps:
 
=net-analyzer/iftop-1.0_pre4-r2 : did not fail 
=net-analyzer/iftop-1.0_pre4-r1 : did not fail

then I emerged =net-analyzer/iftop-1.0_pre4 ( several times ) and it did not fail either. So I opened a new session, and the emerge failed.
So for testing, I would suggest that the env is "fresh" before doing an emerge for testing this case ( and maybe not only ).

both r1 and r2 ebuilds were energed properly when doing a fresh session, emerging iftop and pulling also libpcap. Then I connected again, and the emerge of the plain pre4 version failed again.. and again...
This probably confirms that there is some mess happening with the env.

I do not have xemacs installed.
Comment 26 antu456 2014-10-27 14:19:52 UTC
I do not have xemacs installed and I don't think I have any package installed from an overlay that does this.

$ find /var/lib/layman/ -type f -exec grep -l WANT_AUTOMAKE '{}' \;
/var/lib/layman/sunrise/games-board/holtz/holtz-1.3.1.ebuild
/var/lib/layman/sunrise/dev-util/mockpp/mockpp-1.14.0.ebuild

$ find /var/lib/layman/ -type f -exec grep -l WANT_AUTOCONF '{}' \;
/var/lib/layman/sunrise/dev-util/mockpp/ChangeLog

(I repeated the commands for my own overlay /usr/local/portage, nothing found)

$ eix -c -e xemacs -o holtz -o mockpp
[N] app-editors/xemacs ((~)21.5.34-r2): highly customizable open source text editor and application development system
[N] dev-util/mockpp [1] (--): mockpp is a platform independent generic unit testing framework for C++.
[N] games-board/holtz [1] ((~)1.3.1): A program to play the abstract board games Zertz, Dvonn and Relax
[1] "sunrise" /var/lib/layman/sunrise

Packages that were emerged right before the failed iftop-merge are:

net-analyzer/iftop-1.0_pre4-r2 <- failed
x11-apps/xrandr-1.4.3
dev-libs/libevdev-1.2.1
dev-libs/libev-4.19
x11-libs/pixman-0.32.6
x11-libs/libdrm-2.4.58
dev-libs/nspr-4.10.7-r1
x11-libs/xtrans-1.3.5
dev-db/sqlite-3.8.7
dev-libs/libxml2-2.9.2
x11-libs/libXext-1.3.3
media-libs/libmikmod-3.3.7
dev-perl/DBI-1.631.0
sys-kernel/linux-headers-3.17
virtual/perl-File-Temp-0.230.400-r2
perl-core/File-Temp-0.230.400-r1
dev-lang/perl-5.20.1-r2
virtual/podofo-build-0.9.2
dev-python/pillow-2.5.3-r1
media-libs/lcms-2.6-r1
media-fonts/unifont-7.0.05
dev-python/cryptography-0.6.1
dev-python/pytest-2.6.4
dev-python/simplejson-3.6.5
dev-python/py-1.4.26
dev-python/numpy-1.9.0-r1
dev-python/pycurl-7.19.3.1-r2
dev-python/setuptools-7.0
sys-apps/portage-2.2.14
app-portage/elogv-0.7.6.5
app-misc/ca-certificates-20140927.3.17.2
app-shells/bash-completion-2.1-r91
net-misc/tor-0.2.5.10 - 27.10.2014
app-shells/bash-4.3_p30
kde-base/kde-env-4.14.2
dev-libs/xapian-1.2.19
sys-apps/file-5.20-r1
sys-apps/net-tools-1.60_p20141019041918
app-misc/pax-utils-0.9.1
app-arch/unrar-5.2.1
sys-libs/timezone-data-2014i-r1
net-libs/webkit-gtk-2.4.7
app-portage/layman-2.2.0-r5
kde-base/kdelibs-4.14.2
x11-drivers/xf86-input-evdev-2.9.0
mail-client/thunderbird-31.2.0-r1
sys-devel/gcc-4.8.3
sys-devel/gcc-4.9.0
dev-java/oracle-jdk-bin-1.8.0.25
app-emulation/virtualbox-modules-4.3.18
x11-drivers/nvidia-drivers-343.22-r2
x11-drivers/nvidia-drivers-343.22-r2
app-emulation/virtualbox-modules-4.3.18
x11-drivers/nvidia-drivers-343.22-r2
x11-drivers/nvidia-drivers-343.22-r2

The command used was

# emerge -avuDN --with-bdeps=y world system --keep-going
Comment 27 Ben Kohler gentoo-dev 2014-10-27 16:52:03 UTC
I believe you can reproduce this with "emerge -j1 =webkit-gtk-2.4.7 =iftop-1.0_pre4-r2"
Comment 28 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 18:24:35 UTC
(In reply to Ben Kohler from comment #27)
> I believe you can reproduce this with "emerge -j1 =webkit-gtk-2.4.7
> =iftop-1.0_pre4-r2"

You couldn't have picked a nice small package? :)
Comment 29 Ben Kohler gentoo-dev 2014-10-27 18:35:06 UTC
Yeah sorry 'bout that.  I have no idea why webkit-gtk would be the culprit but I just iterated through the whole list of packages I updated yesterday before iftop, something like "for i in $(big-package-list); do emerge -j1 $i iftop; done" and webkit-gtk is the only one triggering the failure.
Comment 30 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 18:48:52 UTC
  27 Oct 2014; Jeroen Roovers <jer@gentoo.org> iftop-1.0_pre4-r2.ebuild,
  +files/iftop-1.0_pre4-Makefile.am.patch,
  +files/iftop-1.0_pre4-configure.ac.patch:
  Combine several configure.ac patches and add PKG_PROG_PKG_CONFIG().

I have changed configure.ac yet again.
Comment 31 Ben Kohler gentoo-dev 2014-10-27 20:09:24 UTC
I don't claim to understand the changes but I can confirm that my previously failing test case (emerge -j1 =webkit-gtk-2.4.7 =iftop-1.0_pre4-r2) is now working fine.
Comment 32 antu456 2014-10-27 22:18:17 UTC
Works here too. :-)
Comment 33 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-27 23:06:33 UTC
Ah, then that's because previously, in configure.ac, PKG_CHECK_MODULES() was called twice, one call nested inside the other, which according to (/usr/share/aclocal/)pkg.m4 should never be attempted lest a separate call to PKG_PROG_PKG_CONFIG() is made earlier on (in the script).

That last change I made added as much (and reorganised all the patching).
Comment 34 Mike 2014-10-28 16:07:47 UTC
Thank you Jeroen.

Mike