$ emerge -u imlib2 [...] make[2]: Entering directory `/var/tmp/portage/imlib2-1.1.1.20040417/work/imlib2/test' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -O3 -march=pentium3 -pipe -c main.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -O3 -march=pentium3 -pipe -c bmtest.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -O3 -march=pentium3 -pipe -c imlib2_test.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -O3 -march=pentium3 -pipe -c color_spaces.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -O3 -march=pentium3 -pipe -c polytest.c /bin/sh ../libtool --mode=link gcc -O3 -march=pentium3 -pipe -L/usr/X11R6/lib -o bumpmaptest bmtest.o -export-dynamic ../src/libImlib2.la mkdir .libs gcc -O3 -march=pentium3 -pipe -o .libs/bumpmaptest bmtest.o -Wl,--export-dynamic -L/usr/X11R6/lib ../src/.libs/libImlib2.so /usr/lib/libltdl.so -ldl /usr/lib/libfreetype.so -lz -lm bmtest.o(.text+0x23): In function `main': : undefined reference to `XOpenDisplay' bmtest.o(.text+0xaf): In function `main': : undefined reference to `XCreateSimpleWindow' bmtest.o(.text+0xca): In function `main': : undefined reference to `XSelectInput' bmtest.o(.text+0xe2): In function `main': : undefined reference to `XMapWindow' bmtest.o(.text+0xfc): In function `main': : undefined reference to `imlib_context_set_display' bmtest.o(.text+0x10a): In function `main': : undefined reference to `imlib_context_set_visual' bmtest.o(.text+0x118): In function `main': : undefined reference to `imlib_context_set_colormap' bmtest.o(.text+0x126): In function `main': : undefined reference to `imlib_context_set_drawable' bmtest.o(.text+0x1b1): In function `main': : undefined reference to `XResizeWindow' bmtest.o(.text+0x1c5): In function `main': : undefined reference to `XSync' bmtest.o(.text+0x1ee): In function `main': : undefined reference to `XNextEvent' bmtest.o(.text+0x216): In function `main': : undefined reference to `XPending' bmtest.o(.text+0x271): In function `main': : undefined reference to `imlib_render_image_on_drawable' collect2: ld returned 1 exit status distcc[20135] ERROR: compile on localhost failed make[2]: *** [bumpmaptest] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/imlib2-1.1.1.20040417/work/imlib2/test' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/imlib2-1.1.1.20040417/work/imlib2' make: *** [all-recursive-am] Error 2 Turning off parallel compilation (i.e. setting MAKEOPTS="-j1") doesn't help. # emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3) ================================================================= System uname: 2.6.3 i686 Pentium III (Katmai) Gentoo Base System version 1.4.9 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium3 -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="-O3 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.freenet.de/pub/ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://ftp.ibiblio.org/pub/Linux/distributions/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage" USE="acpi apache2 apm berkdb crypt cscope cups curl encode fbcon gdbm gif gpm gtk gtk2 idea imap imlib imlib2 java jpeg kde libg++ libwww mad maildir mbox mikmod mng motif moznocompose moznoirc moznomail mpeg mpeg4 mpi mysql ncurses nls oggvorbis openssh pam parse-clocks pcap pdflib pear-db perl php plotutils png python readline skey slang spell sse ssl svga tcpd tiff truetype type1 vanilla vim-with-x x86 xchatnogtk xchattext xml2 zlib" System is up-to-date in ~x86.
The problem persists in imlib2-1.1.1.20040501.
It compiled when I set the X use flag instead of -X...
I've taken a shot at that (enabling X in USE) and it worked. Still, the way it fails without it is a bug. It either should complain about the lacking X setting or the case of -X should be handled properly. If the package simply doesn't work without X, it should not care about X vs. -X at all and just have it as a fixed dependency.
*** Bug 48799 has been marked as a duplicate of this bug. ***
removed test and demo from the SUBDIRS variable raster said it should get fixed in cvs sometime in the next week