Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134232 - emerge xerces fails (2.7.1)
Summary: emerge xerces fails (2.7.1)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 141731 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-24 09:57 UTC by Lugduweb
Modified: 2006-07-25 13:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lugduweb 2006-05-24 09:57:17 UTC
Hi !
When I try to emerge "eclipsesdk", it tries to emerge "xerces" which fails.
I'm using IBM JDK 1.5.0 and JRE 1.4.2_04.
I've also tried IBM JDK 1.4.2_04 and I have another error (see below).

Regards.

Error log with JDK 1.5.0 :
=======================================
...
compile:
     [copy] Copying 13 files to /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/classes
   [xjavac] Compiling 657 source files to /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/classes
   [xjavac] /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/NodeImpl.java:22: cannot find symbol
   [xjavac] symbol  : class Hashtable
   [xjavac] location: package java.util
   [xjavac] import java.util.Hashtable;
   [xjavac]                  ^
   [xjavac] /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/NodeImpl.java:80: cannot access java.lang.Object
   [xjavac] file java/lang/Object.class not found
   [xjavac] public abstract class NodeImpl
...


Error log with JDK 1.4.2_04 :
=======================================
...
compile:
     [copy] Copying 13 files to /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/classes
   [xjavac] Compiling 657 source files to /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/classes
   [xjavac] /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/src/org/apache/html/dom/HTMLAnchorElementImpl.java:18: cannot access org.w3c.dom.html.HTMLAnchorElement
   [xjavac] bad class file: /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/tools/xml-apis.jar(org/w3c/dom/html/HTMLAnchorElement.class)
   [xjavac] class file has wrong version 49.0, should be 48.0
   [xjavac] Please remove or make sure it appears in the correct subdirectory of the classpath.
   [xjavac] import org.w3c.dom.html.HTMLAnchorElement;
   [xjavac]                         ^
   [xjavac] 1 error
...

emerge --info :
================
Portage 2.0.54-r2 (default-linux/ppc/ppc32, gcc-3.4.5, glibc-2.3.6-r3, 2.6.12-9-powerpc ppc)
=================================================================
System uname: 2.6.12-9-powerpc ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -mtune=G4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/rc.d /etc/terminfo /etc/wget /etc/env.d"CXXFLAGS="-O3 -mtune=G4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d altivec arts audiofile bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr cli crypt cups curl dri dvd dvdr dxr3 eds esd exif expat fam ffmpeg flac fortran gd gdbm gif glut gnome graphviz gstreamer gtk gtkhtml guile howl idn ieee1394 imagemagick imlib imlib2 ipv6 isdnlog jack java javascript jpeg jpeg2k kde lcms ldap lesstif libcaca libclamav libwww mng mozilla mysal mysql ncurses nls nptl ogg opengl pam pcre pcsc-lite pda perl png postgres ppc pppd python qt readline reflection samba sasl sdl session smartcard snmp socks5 speex spl sqlite ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis wifi xine xml xml2 xorg xv zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-05-24 10:28:35 UTC
The problem is that you must have been using a 1.5 JDK at some point or another. See http://www.gentoo.org/proj/en/java/tiger-faq.xml for details.
Comment 2 Lugduweb 2006-05-26 07:15:27 UTC
(In reply to comment #1)
> The problem is that you must have been using a 1.5 JDK at some point or
> another. See http://www.gentoo.org/proj/en/java/tiger-faq.xml for details.
> 
Hi again !
You're right, this is exactly the problem : my system VM was JDK1.5 and this seems to be a real mistake (I thought it was OK using JDK1.5 but it seems that it's not backward compatible).
So I guess that I must have a few modules compiled with JDK 1.5.
I have to run java-1.5fixer.
Somebody gave me a link on the gentoo-java mailing list explaining what I have to do :
https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay
So I will try this as soon as possible, and tell you if it solves my problem.

Thank you for your help anyway.
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-05-26 07:38:43 UTC
Marking invalid.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-25 13:23:21 UTC
*** Bug 141731 has been marked as a duplicate of this bug. ***