Calculating dependencies ...done! [ebuild U ] dev-java/ant-1.6.1-r1 [1.5.4-r1] +doc 0 kB [ebuild N ] dev-java/ant-optional-1.6.1-r1 +doc -javamail 0 kB BUILD SUCCESSFUL Total time: 17 seconds ... Cleaning Up Build Directories ... Done Bootstrapping Ant Distribution Invalid implementation version between Ant core and Ant optional tasks. core : 1.6.0 optional: 1.6.1 Reproducible: Always Steps to Reproduce: 1. emerge -u dev-java/ant Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.4.3.13p1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /opt/resin/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://gentoo.noved.org/ ftp://gentoo.mirrors.pair.com ftp://ftp.uesb.edu/pub/mirrors/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib accessibility acl acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb doc dvb dvd encode esd evo faad fbcon firebird flac flash foomaticdb freetds gd gdbm gif glut gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib informix innodb jack java jikes joystick jpeg kde ladcca lcms ldap libg++ libgda libwww lirc mad mcal mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mysql nas ncurses netcdf nls nvidia oggvorbis opengl optional-tasks oss pam pdflib perl plotutils png pnp postgres python qt quicktime readline regexp rhino ruby samba sasl scanner sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff transcode truetype unicode usb wmf wxwindows x86 xine xinerama xml xml2 xmms xosd xv xvid zlib" main smarty # java-config --java-version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01) Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode)
emerge -C ant && emerge ant ant-optional
Still gives the same error :(
Just noticed this is a duplicate of bug 44950 which was marked fixed, but its still not working for me...
emerge -C ant ant-optional emerge ant If this doesn't work, ant is LYING to you :P We'll solve this issue ;)
Already tried that as you recommended in the other :P Its lying to me!
ls -l /usr/share/ant/lib/ What's the output of that when you emerge -C ant-optional, and before that. Something is strange.
I've done an emerge -C ant ant-optional and I've exactly the same bug: BUILD SUCCESSFUL Total time: 25 seconds ... Cleaning Up Build Directories ... Done Bootstrapping Ant Distribution Invalid implementation version between Ant core and Ant optional tasks. core : 1.6.0 optional: 1.6.1 !!! ERROR: dev-java/ant-1.6.1-r1 failed. !!! Function src_compile, Line 60, Exitcode 1 !!! (no error message)
(The output of emerge -C ant ant-optional was obviously different before, since it removed the old packages) main root # emerge -C ant ant-optional --- Couldn't find ant to unmerge. --- Couldn't find ant-optional to unmerge. >>> unmerge: No packages selected for removal. main root # ls -l /usr/share/ant/lib/ ls: /usr/share/ant/lib/: No such file or directory I didn't do it before I unmerged them before, so I don't know what was there then...
Any updates on this? I haven't been able to reproduce this one :/
Still having the problems :( If anyone wants to try anything with me in attempt to fix it, I'll be in #gentoo-java ...
If you emerged an older 4.x version of tomcat (the current ebuild won't do this) it appended the tomcat path to your classpath like so: $ echo $CLASSPATH /opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:.:/usr/share/tomcat/lib:. To fix this, edit /etc/env.d/21tomcat and comment out the CLASSPATH line. Then: # java-config -X && env-update && source /etc/profile # emerge dev-java/ant ant-optional That should do it.
Thanks a lot! I had to modify the CLASSPATH in /etc/env.d/21java but you gave me the right clue!
This one is fixed, joy! Mental note, clear classpath... ;O