Hi, I'm installing a new system with lvm2 support, after compile the kernel I've installed all the necessaries tools to the system. When I'll try to install lvm2 support the emerge ever fails. livecd ~ # emerge lvm2 >>> Failed to emerge sys-fs/lvm2-2.02.56-r2, Log file: >>> '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log' * Messages for package sys-fs/lvm2-2.02.56-r2: * Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with * their static versions. If you need the static binaries, * you must append .static the filename! * Failed Running autoconf ! * * Include in your bugreport the contents of: * * /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out * * ERROR: sys-fs/lvm2-2.02.56-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_prepare * environment, line 2809: Called eautoreconf * environment, line 856: Called eautoconf * environment, line 798: Called autotools_run_tool 'autoconf' * environment, line 344: Called die * The specific snippet of code: * die "Failed Running $1 !"; * The die message: * Failed Running autoconf ! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/environment'. Content of "/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log" livecd ~ # cat /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log * Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with * their static versions. If you need the static binaries, * you must append .static the filename! >>> Unpacking source... >>> Unpacking LVM2.2.02.56.tgz to /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work >>> Source unpacked in /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work >>> Preparing source in /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work/LVM2.2.02.56 ... * Applying lvm2-2.02.56-dmeventd.patch ... [ ok ] * Applying lvm.conf-2.02.56.patch ... [ ok ] * Applying lvm2-2.02.56-device-mapper-export-format.patch ... [ ok ] * Applying lvm2-2.02.56-always-make-static-libdm.patch ... [ ok ] * Applying lvm2-2.02.56-lvm2create_initrd.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work/LVM2.2.02.56' ... * Running aclocal ... [ ok ] * Running autoconf ... [ !! ] * Failed Running autoconf ! * * Include in your bugreport the contents of: * * /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out * * ERROR: sys-fs/lvm2-2.02.56-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_prepare * environment, line 2809: Called eautoreconf * environment, line 856: Called eautoconf * environment, line 798: Called autotools_run_tool 'autoconf' * environment, line 344: Called die * The specific snippet of code: * die "Failed Running $1 !"; * The die message: * Failed Running autoconf ! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/environment'. * livecd ~ # emerge --info Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-QEMU_Virtual_CPU_version_0.9.1-with-gentoo-1.12.13 Timestamp of tree: Thu, 07 Jan 2010 07:45:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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.europe.gentoo.org/gentoo-portage" USE="acl acpi apache2 apm bash-completion bcmath berkdb bzip2 caps cli cracklib crypt cups curl curlwrappers cxx dbm dbx dri exif fam fortran gd gdbm gpm hal iconv imagemagick innodb java java5 jpeg lmsensors memlimit mhash mime mmap modules mudflap ncurses nls nptl nptlonly openmp pam pcntl pcre perl php posix postgres pppd python readline reflection session spl ssl sysfs tcpd tokenizer unicode x86 xml xorg xsl zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access auth_basic auth_dbm auth_anon auth_digest authn_file alias filter file_cache echo charset_lite cache deflate disk_cache mem_cache ext_filter mime mime_magic cern_meta expires headers usertrack unique_id proxy proxy_connect proxy_ftp proxy_http proxy_ajp info include cgi cgid dav vhost_alias speling rewrite log_config logio env setenvif status autoindex asis negotiation dir actions userdir authz_host" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 215484 [details] environment The file is the content of '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/environment'
* Include in your bugreport the contents of: * * /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out
livecd ~ # cat /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out ***** autoconf ***** ***** PWD: /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work/LVM2.2.02.56 ***** autoconf configure.in:85: error: possibly undefined macro: AC_CHECK_HEADERS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:138: error: possibly undefined macro: AC_MSG_RESULT
I think your autoconf is broken. Please test w/ autoconf-2.65. vapier: any other questions/suggestions re his autoconf?
cant say ive seen that error before. autoconf-2.63 should work fine with that (and it does for me). the two macros it's complaining about are part of the default autoconf distro: /usr/share/autoconf/autoheader.m4:define([AC_CHECK_HEADERS], [# you could always go into the build dir referenced by the autoconf log and run: autoconf --verbose and post the output as an attachment ...
Thank you, This was the problem. After a new emerge --sync the problem was solved. Thanks.
Hello all, I'm still having this problem. I tried syncing portage, but no success, this is happening with autoconf 2.65. I've looked for the file /usr/share/autoconf/autoheader.m4 but no success. I could not find the definition of AC_CHECK_HEADERS under /usr/share/autoconf I'm going to run autoconf --verbose from the build directory.
>>> Failed to emerge sys-fs/lvm2-2.02.56-r2, Log file: >>> '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log' * Messages for package sys-fs/lvm2-2.02.56-r2: * Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with * their static versions. If you need the static binaries, * you must append .static the filename! * Failed Running autoconf ! * * Include in your bugreport the contents of: * * /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out * * ERROR: sys-fs/lvm2-2.02.56-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_prepare * environment, line 2879: Called eautoreconf * environment, line 880: Called eautoconf * environment, line 822: Called autotools_run_tool 'autoconf' * environment, line 364: Called die * The specific snippet of code: * die "Failed Running $1 !"; * The die message: * Failed Running autoconf ! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/environment'. --------- Contents from /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/temp/autoconf.out ***** autoconf ***** ***** PWD: /var/tmp/portage/sys-fs/lvm2-2.02.56-r2/work/LVM2.2.02.56 ***** autoconf configure.in:85: error: possibly undefined macro: AC_CHECK_HEADERS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:138: error: possibly undefined macro: AC_MSG_RESULT ----- Running autoconf --verbose on the build dir utoconf-2.65: running /usr/bin/autom4te-2.65 --verbose --language=autoconf --output=configure configure.in autom4te-2.65: formatting traces for `/tmp/am4tHGALUV/dependencies': include, m4_include autom4te-2.65: up_to_date (autom4te.cache/traces.0): up to date autom4te-2.65: the trace request object is: autom4te-2.65: $VAR1 = bless( [ autom4te-2.65: '0', autom4te-2.65: 1, autom4te-2.65: [ autom4te-2.65: '/usr/share/autoconf' autom4te-2.65: ], autom4te-2.65: [ autom4te-2.65: '/usr/share/autoconf/autoconf/autoconf.m4f', autom4te-2.65: 'configure.in' autom4te-2.65: ], autom4te-2.65: { autom4te-2.65: 'AM_PROG_F77_C_O' => 1, autom4te-2.65: '_LT_AC_TAGCONFIG' => 1, autom4te-2.65: 'm4_pattern_forbid' => 1, autom4te-2.65: 'AC_INIT' => 1, autom4te-2.65: 'AC_CANONICAL_TARGET' => 1, autom4te-2.65: '_AM_COND_IF' => 1, autom4te-2.65: 'AC_CONFIG_LIBOBJ_DIR' => 1, autom4te-2.65: 'AC_SUBST' => 1, autom4te-2.65: 'AC_CANONICAL_HOST' => 1, autom4te-2.65: 'AC_FC_SRCEXT' => 1, autom4te-2.65: 'AC_DEFUN' => 1, autom4te-2.65: 'AC_PROG_LIBTOOL' => 1, autom4te-2.65: 'AM_INIT_AUTOMAKE' => 1, autom4te-2.65: 'AC_CONFIG_SUBDIRS' => 1, autom4te-2.65: 'AM_AUTOMAKE_VERSION' => 1, autom4te-2.65: 'LT_CONFIG_LTDL_DIR' => 1, autom4te-2.65: 'AC_CONFIG_LINKS' => 1, autom4te-2.65: 'AC_REQUIRE_AUX_FILE' => 1, autom4te-2.65: 'LT_SUPPORTED_TAG' => 1, autom4te-2.65: 'm4_sinclude' => 1, autom4te-2.65: 'AM_MAINTAINER_MODE' => 1, autom4te-2.65: 'AC_DEFUN_ONCE' => 1, autom4te-2.65: 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, autom4te-2.65: '_m4_warn' => 1, autom4te-2.65: 'AM_PROG_CXX_C_O' => 1, autom4te-2.65: '_AM_COND_ENDIF' => 1, autom4te-2.65: 'AM_ENABLE_MULTILIB' => 1, autom4te-2.65: 'AM_SILENT_RULES' => 1, autom4te-2.65: 'AC_CONFIG_FILES' => 1, autom4te-2.65: 'include' => 1, autom4te-2.65: 'LT_INIT' => 1, autom4te-2.65: 'AM_GNU_GETTEXT' => 1, autom4te-2.65: 'AC_LIBSOURCE' => 1, autom4te-2.65: 'AC_CANONICAL_BUILD' => 1, autom4te-2.65: 'AM_PROG_FC_C_O' => 1, autom4te-2.65: 'AC_FC_FREEFORM' => 1, autom4te-2.65: 'AH_OUTPUT' => 1, autom4te-2.65: 'AC_CONFIG_AUX_DIR' => 1, autom4te-2.65: '_AM_SUBST_NOTMAKE' => 1, autom4te-2.65: 'AM_PROG_CC_C_O' => 1, autom4te-2.65: 'm4_pattern_allow' => 1, autom4te-2.65: 'sinclude' => 1, autom4te-2.65: '_AM_AUTOCONF_VERSION' => 1, autom4te-2.65: 'AM_CONDITIONAL' => 1, autom4te-2.65: 'AC_CANONICAL_SYSTEM' => 1, autom4te-2.65: 'AC_CONFIG_HEADERS' => 1, autom4te-2.65: 'AC_DEFINE_TRACE_LITERAL' => 1, autom4te-2.65: 'AM_PROG_LIBTOOL' => 1, autom4te-2.65: 'm4_include' => 1, autom4te-2.65: '_AM_COND_ELSE' => 1, autom4te-2.65: 'AU_DEFUN' => 1, autom4te-2.65: 'AC_SUBST_TRACE' => 1 autom4te-2.65: } autom4te-2.65: ], 'Autom4te::Request' ); autom4te-2.65: formatting traces for `/tmp/am4tHGALUV/warnings': _m4_warn autom4te-2.65: reading /tmp/am4tHGALUV/warnings
rodolpho: Can you please show us: # grep -ril 'define.*AC_CHECK_HEADERS' /usr/share/autoconf/ # find /usr/share/autoconf/ -type f -ls
Hello Robin, Here it is: # grep -ril 'define.*AC_CHECK_HEADERS' /usr/share/autoconf/ # find /usr/share/autoconf/ -type f -ls 22122 60 -rw-r--r-- 1 root root 60161 Jan 8 18:53 /usr/share/autoconf/autoconf/c.m4 22437 4 -rw-r--r-- 1 root root 2019 Jan 8 18:53 /usr/share/autoconf/autoconf/autoscan.m4 22440 64 -rw-r--r-- 1 root root 62654 Jan 8 18:53 /usr/share/autoconf/autoconf/functions.m4 22427 24 -rw-r--r-- 1 root root 23173 Jan 8 18:53 /usr/share/autoconf/autoconf/lang.m4 22444 36 -rw-r--r-- 1 root root 35550 Jan 8 18:53 /usr/share/autoconf/autoconf/types.m4 22426 4 -rw-r--r-- 1 root root 2955 Jan 8 18:53 /usr/share/autoconf/autoconf/autotest.m4 22432 16 -rw-r--r-- 1 root root 16283 Jan 8 18:53 /usr/share/autoconf/autoconf/libs.m4 22441 8 -rw-r--r-- 1 root root 4349 Jan 8 18:53 /usr/share/autoconf/autoconf/autoupdate.m4 22443 32 -rw-r--r-- 1 root root 29582 Jan 8 18:53 /usr/share/autoconf/autoconf/programs.m4 22429 452 -rw-r--r-- 1 root root 460603 Jan 8 18:53 /usr/share/autoconf/autoconf/autoconf.m4f 22436 100 -rw-r--r-- 1 root root 100998 Jan 8 18:53 /usr/share/autoconf/autoconf/general.m4 22435 16 -rw-r--r-- 1 root root 14274 Jan 8 18:53 /usr/share/autoconf/autoconf/specific.m4 22431 4 -rw-r--r-- 1 root root 2775 Jan 8 18:53 /usr/share/autoconf/autoconf/autoheader.m4 22428 4 -rw-r--r-- 1 root root 3873 Jan 8 18:53 /usr/share/autoconf/autoconf/oldnames.m4 22434 56 -rw-r--r-- 1 root root 55314 Jan 8 18:53 /usr/share/autoconf/autoconf/status.m4 22433 40 -rw-r--r-- 1 root root 40890 Jan 8 18:53 /usr/share/autoconf/autoconf/fortran.m4 22439 4 -rw-r--r-- 1 root root 3683 Jan 8 18:53 /usr/share/autoconf/autoconf/autoconf.m4 22442 32 -rw-r--r-- 1 root root 30638 Jan 8 18:53 /usr/share/autoconf/autoconf/headers.m4 22438 12 -rw-r--r-- 1 root root 9916 Jan 8 18:53 /usr/share/autoconf/autoconf/erlang.m4 22430 12 -rw-r--r-- 1 root root 9582 Jan 8 18:53 /usr/share/autoconf/autoscan/autoscan.list 22402 4 -rw-r--r-- 1 root root 1215 Jan 8 18:53 /usr/share/autoconf/autotest/autotest.m4 22422 124 -rw-r--r-- 1 root root 125065 Jan 8 18:53 /usr/share/autoconf/autotest/autotest.m4f 22423 72 -rw-r--r-- 1 root root 71306 Jan 8 18:53 /usr/share/autoconf/autotest/general.m4 22424 4 -rw-r--r-- 1 root root 3038 Jan 8 18:53 /usr/share/autoconf/autotest/specific.m4 188367 120 -rw-r--r-- 1 root root 121287 Jan 8 18:53 /usr/share/autoconf/m4sugar/m4sugar.m4 22404 16 -rw-r--r-- 1 root root 14755 Jan 8 18:53 /usr/share/autoconf/m4sugar/foreach.m4 22409 72 -rw-r--r-- 1 root root 70475 Jan 8 18:53 /usr/share/autoconf/m4sugar/m4sh.m4 22406 32 -rw-r--r-- 1 root root 30427 Jan 8 18:53 /usr/share/autoconf/m4sugar/m4sugar.m4f 22407 68 -rw-r--r-- 1 root root 69443 Jan 8 18:53 /usr/share/autoconf/m4sugar/m4sh.m4f 22405 4 -rw-r--r-- 1 root root 523 Jan 8 18:53 /usr/share/autoconf/m4sugar/version.m4 22408 16 -rw-r--r-- 1 root root 15578 Jan 8 18:53 /usr/share/autoconf/INSTALL 22445 12 -rw-r--r-- 1 root root 10111 Jan 8 18:53 /usr/share/autoconf/Autom4te/FileUtils.pm 22414 12 -rw-r--r-- 1 root root 9176 Jan 8 18:53 /usr/share/autoconf/Autom4te/ChannelDefs.pm 22417 8 -rw-r--r-- 1 root root 4908 Jan 8 18:53 /usr/share/autoconf/Autom4te/C4che.pm 22413 4 -rw-r--r-- 1 root root 2555 Jan 8 18:53 /usr/share/autoconf/Autom4te/Request.pm 22416 12 -rw-r--r-- 1 root root 9640 Jan 8 18:53 /usr/share/autoconf/Autom4te/General.pm 22418 4 -rw-r--r-- 1 root root 3363 Jan 8 18:53 /usr/share/autoconf/Autom4te/Configure_ac.pm 22420 24 -rw-r--r-- 1 root root 20555 Jan 8 18:53 /usr/share/autoconf/Autom4te/Channels.pm 22419 8 -rw-r--r-- 1 root root 7857 Jan 8 18:53 /usr/share/autoconf/Autom4te/XFile.pm 22415 20 -rw-r--r-- 1 root root 19599 Jan 8 18:53 /usr/share/autoconf/Autom4te/Struct.pm 22412 8 -rw-r--r-- 1 root root 4513 Jan 8 18:53 /usr/share/autoconf/autom4te.cfg
vapier: reping for you on this. The user has only >=autoconf-2.63 and NOT autoconf-2.13 as well, references to AC_CHECK_HEADERS seem to be undefined in his case. I can't reproduce here however, so I'm wondering if you have any suggestions on how his autoconf is broken.
what does your headers.m4 look like ? post it as an attachment. autoconf-2.50+ define it here: /usr/share/autoconf/autoconf/headers.m4:AC_DEFUN([AC_CHECK_HEADERS],
Created attachment 215720 [details] m4 source
Can you try to emerge "pkgconfig" beforehand and see if it helps? That dependency is required when running autoreconf, but not listed in the ebuild. I didn't double-check, but I got the same error on a freshly installed machine, went on with the rest first and retried later and then it magically worked.
Installing pkgconfig first solved the issue!
Christophe Saout: Nice find. Fixed in th ebuild now.