emerging gnu-javamail-1.0, as required for tomcat-5.5.17-r1, compilation fails with the following error: ./source/javax/mail/internet/MimeMessage.java:45: cannot access javax.activation.DataHandler bad class file: /usr/share/gnu-jaf-1/lib/activation.jar(javax/activation/DataHandler.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import javax.activation.DataHandler; ^ 1 error make: *** [classes/gnu/mail/providers/ReadOnlyMessage.class] Error 1 make: *** Waiting for unfinished jobs.... source/gnu/mail/providers/imap/IMAPBodyPart.java:34: cannot access javax.activation.DataHandler bad class file: /usr/share/gnu-jaf-1/lib/activation.jar(javax/activation/DataHandler.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import javax.activation.DataHandler; ^ 1 error ./source/javax/mail/Part.java:34: cannot access javax.activation.DataHandler bad class file: /usr/share/gnu-jaf-1/lib/activation.jar(javax/activation/DataHandler.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import javax.activation.DataHandler; ^ 1 error make: *** [classes/gnu/mail/providers/smtp/SMTPTransport.class] Error 1 make: *** [classes/gnu/mail/providers/imap/IMAPBodyPart.class] Error 1 !!! ERROR: dev-java/gnu-javamail-1.0 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile gnu-javamail-1.0.ebuild, line 45: Called die # emerge --info Portage 2.1.1_pre3-r1 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 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.1 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.12-r6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo " MAKEOPTS="-j3" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi acpi4linux alsa apache2 atlas avi berkdb bitmap-fonts bluetooth bootsplash browserplugin cli crypt cups dga dlloader dri dvd dvdr eds emboss encode esd ethereal fbcon ffmpeg fortran gb gdbm gif gnome gpm gstreamer gtk gtk2 hardenedphp imlib ipv6 isdnlog jpeg libg++ libwww mikmod motif mp3 mpeg mysql ncurses nptl odbc ogg opengl oss pam pcre pdflib perl png pnp postgres pppd python qt3 qt4 quicktime readline reflection sdk sdl session sms spell spl sqlite sse ssl tcpd truetype truetype-fonts trusted type1-fonts udev usb vorbis wifi wmf xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810 video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of 138825 ***