The ebuild uses X USE flag, but if no X is installed. The build will fail since linker cannot find libX11 while finishing GD.so. The error message says it all: LD_RUN_PATH="/usr/lib:/lib:/usr/X11R6/lib" gcc -shared -L/usr/local/lib GD.o -o blib/arch/auto/GD/GD.so -L/usr/X11R6/lib -L/usr/local/lib -lgd -lpng -lz -ljpeg -lm -lX11 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status distcc[16806] ERROR: compile on localhost failed with exit code 1 make: *** [blib/arch/auto/GD/GD.so] Error 1 Reproducible: Always Steps to Reproduce: 1. Don't emerge xfree86 2. USE="-X" emerge GD 3. Actual Results: Building shared library failed while linking. Expected Results: Built shared libs and installed the perl module. Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21) ================================================================= System uname: 2.4.21 i686 Pentium III (Katmai) distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs distcc" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm crypt foomaticdb libg++ mad mmx ncurses pdflib png xml2 zlib gdbm berkdb readline tcpd pam libwww ssl -3dnow apache2 -arts -avi -cups -encode gd -gif -gnome -gpm -gtk -gtk2 imap -imlib innodb -java -jpeg -kde ldap maildir -mikmod -motif -mpeg mysql -nls odbc -oggvorbis -opengl -oss perl postgres -python -qt -qtmt -quicktime sasl -sdl -slang snmp -spell sse -svga tetex -truetype -X -xmms -xv"
please try GD-1.41
No problems with GD-1.41. :)
wh0rd