The elfutils package contains several gettext-related files which do not seem to work and prevent elfutils from compiling. These are m4/*.m4, po/Makefile.in.in and libelf-po/Makefile.in.in. Reproducible: Always Steps to Reproduce: 1. emerge =dev-libs/elfutils-0.101 Actual Results: >>> emerge (1 of 1) dev-libs/elfutils-0.101 to / <snip> aclocal: macro `jm_GLIBC21' required but not defined aclocal: macro `jm_AC_TYPE_UINTMAX_T' required but not defined autoreconf-2.59: aclocal failed with exit status: 1 !!! ERROR: dev-libs/elfutils-0.101 failed. !!! Function src_unpack, Line 32, Exitcode 1 Expected Results: elfutils should have been built. emerge info output: Gentoo Base System version 1.6.10 Failed to write to mtimedb: [Errno 13] Permission denied: '/var/cache/edb/mtimedb' Portage 2.0.51.19 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.60GHz Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 28 2005, 13:01:41)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.9.5, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium-m -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/lib/X11/xkb /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="-march=pentium-m -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks nostrip sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://argl.spline.inf.fu-berlin.de/gentoo-portage" USE="x86 16bit 3ds S3TC X a52 aac aalib aavm acpi acpi4linux activefilter alsa apache2 asterisk async audiofile avi bash-completion bcmath bdf berkdb bidi bitmap-fonts blender-game bootsplash bzlib c++ calendar cddb cdparanoia cdr cjk clanJavaScript clanVoice codecs cpdflib crypt cscope css ctype cups curl curlwrappers dba dbase dbx dga dillo dio directfb divx4linux doc dts dv dvd dvdr dvdread edl emboss encode erandom escreen esd exif extensions fam fame fastcgi fbcon fbdev ffmpeg flac flash flatfile flood fmod font-server foomaticdb fortran fpx freetds freetts freetype ftp gb gcc-libffi gcj gd gdbm geoip geotiff ggi gif gimp gimpprint ginac glitz glut gmail gmp gnuplot gpm graphviz gs gsl gtk gtk2 gtkhtml hal hardened icon iconv icu ieee1394 image imagemagick imap imlib imlib2 inifile innkeywords insecure-drivers intl ipv6 ipv6arpa java javascript jce jikes jimi jp2 jpeg justify kde ladcca largeterminal latex layout-from-conf-file lcms ldap libcaca libdsk libg++ libsamplerate libwww live lmtp lua lzo lzw lzw-tiff m17n-lib mad mailwrapper make-busybox-symlinks maps matroska mbox mbrola mcal md5sum mdb mew mhash migemo mikmod milter mime mimencode ming mixer mjpeg mmap mmx mmx2 mng modcache modchat modlocalizer monkey mono motif mozaccess mozcalendar mozdevelop moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpi mplayer mppe-mppc msdav msession msql music mysql mysqli mythtv mzscheme ncurses neXt netbeans nethack network neural nis nls nntp nptl ntlm nvidia nviz objc odbc offensive ofx oggvorbis openal opengl pam pcmcia pcntl pcre pdf pdflib pear-db perl php physfs pic pie plotutils png pnp posix povray print procmail pthreads pvm python qemu-fast qhull qt quicktime quotas readline real recode rogue rtc ruby samba sasl scanner sdl session sftplogging shaper shared sharedmem simplexml skey slang smartcard smime sms sndfile snmp soap sockets sounds speedo speex spell spl sqlite sqlite3 sse sse2 ssl stats stencil-buffer svg svga sysvipc szip t1lib tcltk tcpd tcpmd5 tcsim tetex tga theora threads tidy tiff timidity tokenizer tools transcode truetype truetype-fonts trusted type1 type1-fonts underscores unicode usb userlocales uudeview vcd vcdimager videos vim vim-pager wddx wifi winbind withsamplescripts wmf wxwindows xanim xface xine xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xsl xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Created attachment 54762 [details, diff] Patch to work around the problems. This requires (a fairly recent version of?) gettext to be installed, which is the case anyway because elfutils depends on it.
Hrm, I cannot reproduce it here even with your USE flags.
More data, then. My gettext version is 0.14.2; the relevant files in /usr/share/aclocal (glibc21.m4 and uintmax_t.m4) do not differ from those in gettext-0.14.2.tar.gz. A search for the missing macros yields this: $ egrep -r AC_DEFUN.*AC_TYPE_UINTMAX_T gettext-0.14.2/ gettext-0.14.2/gettext-runtime/m4/uintmax_t.m4:AC_DEFUN([gl_AC_TYPE_UINTMAX_T], $ egrep -r AC_DEFUN.*GLIBC21 gettext-0.14.2/ gettext-0.14.2/gettext-runtime/m4/glibc21.m4:AC_DEFUN([gl_GLIBC21], gettext-0.14.2/gettext-runtime/m4/ChangeLog says: > 2004-04-19 Bruno Haible <bruno@clisp.org> > > * gettext.m4: Change jm_ to gl_ in AC_DEFINE'd names. Update all uses. This would seem to be a likely cause for the errors, then. Is this whole thing some sort of mix-up on my system? Google yields very little regarding the macros problem and people apparently have fixed it by reinstalling stuff, but this doesn't seem to be a solution here. Regarding elfutils, it is my extremely humble opinion that the ebuild should either use a complete shipped set of .m4 files so that they're consistent, or none (and rely on those provided by gettext). With gettext being a dependency, the latter option seems preferable. However, if it works for everybody except myself as it is now, I don't insist on changing anything.
i'm using gettext-0.14.2 and elfutils works fine for me too ...
Well, OK. I don't have any ideas, but I do have a fix that works for now. Maybe it'll just go away in the next version.