I get the following output... emerge -uDN world >>> Emerging (7 of 78) dev-java/servletapi-2.3-r2 to / * servletapi-2.3-20021101.tar.gz MD5 ;-) ... [ ok ] * servletapi-2.3-20021101.tar.gz RMD160 ;-) ... [ ok ] * servletapi-2.3-20021101.tar.gz SHA1 ;-) ... [ ok ] * servletapi-2.3-20021101.tar.gz SHA256 ;-) ... [ ok ] * servletapi-2.3-20021101.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking servletapi-2.3-20021101.tar.gz ;-) ... [ ok ] * Using Generation-1 System VM: blackdown-jdk-1.4.2 >>> Unpacking source... >>> Unpacking servletapi-2.3-20021101.tar.gz to /var/tmp/portage/servletapi-2.3-r2/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/servletapi-2.3-r2/work/jakarta-servletapi-4 ... Invalid implementation version between Ant core and Ant optional tasks. core : 1.6.5 optional: 1.6.2 !!! ERROR: dev-java/servletapi-2.3-r2 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile servletapi-2.3-r2.ebuild, line 26: Called die !!! compilation failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info output... Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz Gentoo Base System version 1.12.5 Last Sync: Sat, 30 Sep 2006 19:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=i686 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/" LINGUAS="" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cgi cli crypt ctype cups dba divx4linux dlloader dri dv eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 gtkhtml guile idn imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kernel_linux lcms ldap libg++ libwww mad memlimit mikmod mmx mng motif mozilla mp3 mpeg mppemppc ncurses nls nptl ogg opengl oss pam pcre pdflib perl php png posix postgres pppd python qt qt3 qt4 quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vhosts video_cards_fbdev video_cards_nvidia video_cards_radeon video_cards_vesa video_cards_vmware vorbis x86 xinerama xml xml2 xmms xorg xsl xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY You will notice that servletapi gets emerged before ant, yet is dependant on ant being at the right version to work... emerge -uDNp world These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild R ] dev-java/servletapi-2.3-r2 USE="doc*" [ebuild R ] dev-java/xerces-2.7.1 USE="doc*" [ebuild R ] dev-java/log4j-1.2.9 USE="doc*" [ebuild R ] dev-java/junit-3.8.1-r1 USE="doc*" [ebuild U ] dev-java/ant-tasks-1.6.5-r2 [1.6.2-r9] USE="-nobsf%" [ebuild U ] dev-java/ant-1.6.5 [1.6.2-r6] [ebuild U ] sys-libs/cracklib-2.8.9-r1 [2.8.9] [ebuild U ] sys-devel/bison-2.2 [2.1] [ebuild N ] dev-libs/mpfr-2.2.0_p10 [ebuild NS ] sys-devel/gcc-4.1.1 USE="fortran gtk nls (-altivec) -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" [ebuild U ] sys-libs/timezone-data-2006g [2006a] [ebuild U ] sys-libs/glibc-2.4-r3 [2.3.6-r4] [ebuild U ] media-libs/tiff-3.8.2-r2 [3.8.2-r1] [ebuild U ] dev-libs/atk-1.12.1 [1.11.4] [ebuild U ] media-libs/libpng-1.2.12-r1 [1.2.12] [ebuild R ] sys-apps/file-4.17-r1 [ebuild U ] x11-libs/libXfont-1.2.2 [1.1.0-r1] [ebuild R ] dev-perl/XML-Parser-2.34 [ebuild U ] x11-libs/libdrm-2.0.2 [2.0.1] [ebuild U ] sys-libs/com_err-1.39 [1.38] [ebuild U ] sys-libs/ss-1.39 [1.38] [ebuild U ] sys-fs/e2fsprogs-1.39 [1.38-r1] [ebuild U ] sys-apps/util-linux-2.12r-r4 [2.12r-r3] [ebuild U ] sys-libs/libutempter-1.1.4.1 [1.1.2.1] [ebuild R ] app-cdr/xcdroast-0.98_alpha15-r3 [ebuild U ] net-nds/openldap-2.3.27 [2.3.24-r1] [ebuild U ] net-www/apache-2.0.58-r2 [2.0.58] USE="doc* -mpm-itk%" [ebuild U ] www-apache/mod_jk-1.2.19 [1.2.13] USE="java%*" [ebuild U ] app-editors/nano-1.3.12-r1 [1.3.11-r2] [ebuild U ] net-misc/openssh-4.3_p2-r5 [4.3_p2-r1] USE="X%*" [ebuild U ] app-arch/gzip-1.3.5-r9 [1.3.5-r8] [ebuild U ] net-wireless/madwifi-ng-tools-0.9.2 [0.0.1531.20060427] [ebuild U ] net-wireless/madwifi-ng-0.9.2 [0.0.1531.20060427] [ebuild U ] sys-apps/busybox-1.2.1 [1.1.3] [ebuild U ] sys-apps/gawk-3.1.5-r2 [3.1.5-r1] [ebuild U ] mail-mta/ssmtp-2.61-r2 [2.61] [ebuild U ] dev-lang/php-5.1.6-r4 [5.1.4-r4] [ebuild NS ] virtual/jdk-1.4.2 [ebuild R ] dev-db/postgresql-8.0.8 USE="doc* xml%* -tcl% -tk%" [ebuild U ] dev-libs/cyrus-sasl-2.1.22 [2.1.21-r2] [ebuild U ] app-crypt/gnupg-1.4.5 [1.4.4] [ebuild U ] sys-apps/eject-2.1.5 [2.1.0-r1] [ebuild U ] dev-libs/libusb-0.1.12 [0.1.10a] [ebuild U ] media-libs/libsdl-1.2.11 [1.2.8-r1] [ebuild R ] media-libs/libao-0.8.5 [ebuild U ] dev-libs/liboil-0.3.6-r1 [0.3.6] [ebuild R ] kde-base/kdemultimedia-3.5.2-r2 [ebuild U ] app-crypt/qca-tls-1.0-r3 [1.0-r2] [ebuild R ] dev-perl/Net-SSLeay-1.25 [ebuild R ] dev-perl/IO-Socket-SSL-0.97 [ebuild U ] net-p2p/ktorrent-1.2 [1.0] [ebuild U ] net-misc/dhcpcd-2.0.5-r1 [2.0.5] [ebuild R ] dev-perl/DateManip-5.44 [ebuild U ] sys-process/lsof-4.77 [4.76] [ebuild U ] sys-apps/kbd-1.12-r7 [1.12-r6] [ebuild U ] app-editors/vim-core-7.0.17 [6.4] [ebuild U ] app-editors/vim-7.0.17 [6.4] USE="-mzscheme% -vim-pager%" [ebuild U ] app-vim/gentoo-syntax-20051221-r1 [20051221] [ebuild U ] sys-kernel/genkernel-3.4.1 [3.3.11d] [ebuild U ] net-p2p/bittorrent-4.4.0 [4.2.2] [ebuild U ] net-misc/neon-0.26.1-r1 [0.25.3] USE="nls%* -socks5% -static%" [ebuild U ] dev-util/subversion-1.4.0 [1.3.1] [ebuild R ] sys-apps/net-tools-1.60-r11 [ebuild R ] www-servers/tomcat-5.0.27-r6 USE="doc*" [ebuild U ] sys-boot/grub-0.97-r2 [0.96-r2] [ebuild R ] media-sound/alsa-driver-1.0.11 [ebuild U ] sys-apps/findutils-4.3.0 [4.1.20-r2] [ebuild U ] media-libs/xvid-1.1.0-r1 [1.0.3] USE="(-altivec)" [ebuild U ] media-video/ffmpeg-0.4.9_p20060530 [0.4.9_p20051216] USE="-amr% -x264%" [ebuild U ] media-libs/libquicktime-0.9.7-r1 [0.9.4] USE="X%*" [ebuild U ] www-client/mozilla-firefox-bin-1.5.0.7 [1.5.0.4] LINGUAS="-ar% -ca% -cs% -da% -de% -el% -en_GB% -es% -es_AR% -es_ES% -fi% -fr% -ga% -ga_IE% -he% -hu% -it% -ja% -ko% -mk% -nb% -nb_NO% -nl% -pl% -pt_BR% -ro% -ru% -sk% -sl% -sv% -sv_SE% -tr% -zh_CN% -zh_TW%" [ebuild U ] net-analyzer/tcpdump-3.9.4-r2 [3.9.4] USE="samba%*" emerge -uDNp dev-java/ant # won't work because something in the tree requires servletapi to me emerged first... These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-java/servletapi-2.3-r2 USE="doc*" [ebuild R ] dev-java/xerces-2.7.1 USE="doc*" [ebuild R ] dev-java/log4j-1.2.9 USE="doc*" [ebuild R ] dev-java/junit-3.8.1-r1 USE="doc*" [ebuild U ] dev-java/ant-tasks-1.6.5-r2 [1.6.2-r9] USE="-nobsf%" [ebuild U ] dev-java/ant-1.6.5 [1.6.2-r6] The *TEMPORARY* fix is to emerge -u dev-java/ant After that, servletapi emerges just fine.