emerge fails in unpack, either in autoconf or automake. I had similar problems with other packages, but manage to emerge if not using sandbox-feature. gtk+ doesn't respond to that threatment. Reproducible: Always Steps to Reproduce: 1. emerge gtk+ 2. 3. Actual Results: * Applying gtk+-2.6-smoothscroll-r2.patch ... [ ok ] configure.in:146: /usr/bin/m4: ERROR: Reading inserted file: Invalid argument autom4te-2.59: /usr/bin/m4 failed with exit status: 1 Expected Results: Ta-da! Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-hardened-r1 i686) ================================================================= System uname: 2.6.10-hardened-r1 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 19:26:58)] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.9.4, 1.6.3, 1.5, 1.7.9-r1, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -mcpu=pentium4 -Os -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -mcpu=pentium4 -Os -pipe" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache collision-protect distlocks nodoc sandbox sfperms suidctl userpriv usersandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/home/portage/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib alsa apache1 avi berkdb bitmap-fonts caps crypt cscope cups curl divx4linux dlloader encode esd extensions fam flac foomaticdb fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 gtkhtml guile hardened icq imagemagick imlib ithreads jack java jpeg ldap libwww lzo mad maildir mikmod mime mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg ncurses nls oggvorbis opengl operanom2 pam pdflib perl pic pie plotutils png postgres ppds pthreads pwdb qt quicktime readline rtc ruby sdl slang speex spell sse sse2 ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts wmf x86 xchattext xml xml2 xmms xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
i think this has nothing todo with gtk+ but with your m4/autotools setup.
Update your autotools, then try again and reopen if you're still having problems.