emerging app-text/a2ps-4.14 failed, Reproducible: Always Steps to Reproduce: 1. emerge -uND world / emerge a2ps Actual Results: * Running aclocal -I m4 ... [ ok ] * Running autoconf ... [ ok ] * Running automake --add-missing --copy --foreign ... [ ok ] * Running eautoreconf in '/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14' ... * Running aclocal -I m4 ... [ !! ] * Failed Running aclocal ! * * Include in your bugreport the contents of: * * /var/tmp/portage/app-text/a2ps-4.14/temp/aclocal-29395.out * * ERROR: app-text/a2ps-4.14 failed. * Call stack: * ebuild.sh, line 49: Called src_unpack * environment, line 2750: Called eautoreconf * environment, line 856: Called eaclocal * environment, line 795: Called autotools_run_tool 'src_unpack' 'src_unpack' 'aclocal' * environment, line 358: Called die * The specific snippet of code: * die "Failed Running $1 !"; * The die message: * Failed Running aclocal ! * * 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/app-text/a2ps-4.14/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/a2ps-4.14/temp/environment'. * * GNU info directory index is up-to-date. localhost mat # cat /var/tmp/portage/app-text/a2ps-4.14/temp/aclocal-29395.out ***** aclocal ***** ***** aclocal -I m4 configure.in:2: error: m4_defn: undefined macro: _m4_divert_diversion configure.in:2: the top level autom4te-2.61: /usr/bin/m4 failed with exit status: 1 aclocal-1.10: autom4te failed with exit status: 1 Expected Results: It should compile Portage 2.1.5_rc2 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r4matiit i686) ================================================================= System uname: 2.6.24-gentoo-r4matiit i686 AMD Sempron(tm) 2400+ Timestamp of tree: Sun, 06 Apr 2008 17:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 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.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-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/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://src.gentoo.pl http://gentoo.zie.pg.gda.pl " LC_ALL="pl_PL.UTF-8" LDFLAGS="" LINGUAS="pl en" MAKEOPTS="-j1" PKGDIR="/home/mat/" 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" PORTDIR_OVERLAY="/usr/portage/local/layman/arcon-portage /usr/portage/local/layman/custom-kernels /usr/portage/local/layman/arcon /usr/portage/local/layman/initng /usr/portage/local/layman/einit /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa atm bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cdrom cli cracklib crypt cups dbus dhcp dri dvd dvdr dvdread eds emboss encode esd evo expat fam ffmpeg firefox flac fortran freetype gd gdbm gif glibc-omitfp glitz gnome gphoto2 gpm gstreamer gtk hal iconv isdnlog jpeg kde kerberos lcms ldap mad mdnsresponder-compat midi mikmod mmext mmx moznopango mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl openmp pam pci pcmcia pcre pdf physfs png pppd pulseaudio python qt qt3 qt3support qt4 quicktime rar readline reflection sdl session spell spl ssl startup-notification svg symlink tcpd theora threads tiff truetype udev unicode userlocales utf8 vcd vorbis win32codecs x86 xcomposite xine xml xml2 xorg xulrunner xv zip 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" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="nv" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 217437 has been marked as a duplicate of this bug. ***
Created attachment 149714 [details] Updated app-text/a2ps-4.14 ebuild applying compile fix patches This updated ebuild applies two tiny patches that fix a2ps compilation on a GNU/Linux (glibc) system.
Created attachment 149715 [details, diff] [Patch 1 of 2] Patch eliminates mempcpy check
Created attachment 149716 [details, diff] [Patch 2 of 2] Patch eliminates invalid stpcpy() prototype
Created attachment 149901 [details, diff] Add check for mempcpy to configure.in (In reply to comment #3) > Created an attachment (id=149715) [edit] > [Patch 1 of 2] Patch eliminates mempcpy check I believe that this is not correct. There is nothing wrong with the conditional for HAVE_MEMPCPY; only the check for it is missing in configure. Attached patch adds it to AC_CHECK_FUNCS. (In reply to comment #4) > Created an attachment (id=149716) [edit] > [Patch 2 of 2] Patch eliminates invalid stpcpy() prototype This is o.k.
Fixed (with permission from genstef). Thanks to Mateusz for reporting, and to Colin for providing the initial bugfix.
a2ps-4.13c-r6 also fails (reported by Rick Harris in bug 212050 comment #9), therefore reopening. The patches from attachment 149901 [details, diff] and attachment 149716 [details, diff] can be applied to that version, too.
4.13c-r6 fixed too.