this is a fresh install of gentoo, no funny business. here's the last bit of output: gcc -O2 -march=athlon -fomit-frame-pointer -pipe -Wall -o .libs/screenshot screenshot.o -Wl,--export-dynamic ../../libgimp/.libs/libgimpui-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so -lX11 /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status make[3]: *** [screenshot] Error 1 make[3]: *** Waiting for unfinished jobs.... gcc -O2 -march=athlon -fomit-frame-pointer -pipe -Wall -o .libs/sel_gauss sel_gauss.o -Wl,--export-dynamic ../../libgimp/.libs/libgimpui-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so creating sel_gauss make[3]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/plug-ins/common' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0' make: *** [all] Error 2 Reproducible: Didn't try Steps to Reproduce: 1.emerge gimp 2. 3. Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://www.gigaload.org/gentoo.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow aalib alsa avi berkdb bzlib cdr cjk crypt curl dga dgs divx4linux doc gif gtk2 jpeg mad matroska mmx mpeg msn ncurses nls oggvorbis opengl pam pcre perl png posix postgres python quicktime readline sdl spell ssl tcpd tiff truetype unicode x86 xv xvid zlib"
USE=X fixes this.
Isn't there a way to implement "must have" use flags in ebuilds? I can remember seeing emerge complaining about a missing USE flag with an ebuild once (can't remember which one). In the case of this ebuild it would save a lot of hassle, trying to recompile and recompile after looking at the wrong bug reports. Same people trying to build gimp but not having the "X" use-flag in make.conf may have valid reasons for doing so. BTW: Bug 46851 is also related to this bug here.
i disabled the X use flag btw, there is an incorrect reference to -lX11 somewhere in the gimp make stuff which causes these problem. In theory it can work if someone fixes up the makefiles.