Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123168 - xerces-2.7.1 build fails
Summary: xerces-2.7.1 build fails
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2006-02-17 07:13 UTC by Josh Sled
Modified: 2006-08-15 04:06 UTC (History)
2 users (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 Josh Sled 2006-02-17 07:13:54 UTC
>>> Unpacking Xerces-J-src.2.7.1.tar.gz to /var/tmp/portage/xerces-2.7.1/work
tar: A lone zero block at 19079
* Applying xerces-2.7.1-gentoo.patch ... ok
* Applying xerces-2.7.1-no_dom3.patch ...ok
>>> Source unpacked.
Buildfile: build.xml

BUILD FAILED
file:/var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build.xml:22: taskdef class org.apache.xerces.util.XJavac cannot be found


phoenix ~ # emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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.16.1
sys-devel/libtool:   1.4.3-r3, 1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-overlay/latexer/overlays/misc /usr/local/portage-overlay/latexer/overlays/mono"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aalib alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bmp bonobo bzip2 cdr crypt cscope cups curl dbus dga directfb doc dri dvd dvdr eds emacs emboss encode esd ethereal evo exif expat faad fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq idn imagemagick imap imlib ipv6 jabber java joystick jpeg jpeg2k junit lcms ldap libg++ libwww lua mad maildir matrox mbox mikmod ming mmx mng motif mp3 mpeg msn mysql ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oscar oss pam pcre pdflib perl plotutil png powermate python qt quicktime readline ruby samba sdl slang speex spell sqlite sse ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wmf xinerama xml xml2 xmms xosd xv xvid yahoo zlib video_cards_matrox userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-03-13 20:57:09 UTC
A few questions...

Which JDK are you using?
Do you have dev-java/xjavac installed? If so, which version is it, and what slot is it in?
Comment 2 Josh Sled 2006-03-14 05:18:40 UTC
(In reply to comment #1)
> A few questions...
> 
> Which JDK are you using?

sun-jdk-1.5.0.06-2

> Do you have dev-java/xjavac installed? If so, which version is it, and what
> slot is it in?
 
Yes, xjavac-20041208-r1 in slot "1".


In the mean time I've upgraded to ant-1.6.5-r2, and it exhibits the same failure.
Comment 3 M. Edward Borasky 2006-06-24 13:56:23 UTC
It's not much better with xjavac installed:

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

BUILD FAILED
/var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build.xml:252: Compile failed; see the compiler error output for details.

Total time: 7 seconds

I'm going to drop back to a previous version of xerces and see if I can get stuff working.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-06-24 14:26:33 UTC
(In reply to comment #3)
> It's not much better with xjavac installed:
> 
> 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
> 

A classic case of using 1.5 as the system VM without knowing what you are doing.
You should be using the migration overlay with 1.5
https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay

This will seen be migrated to official.
Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-15 04:06:56 UTC
If you're using 1.5 please use dev-java/xerces-2.7.1-r1 - it builds ok when using 1.5 (as it's migrated to generation 2).