Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27241 - Xerces-J-2.5.0 build fails using Blackdown 1.4.1
Summary: Xerces-J-2.5.0 build fails using Blackdown 1.4.1
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Adrian Almenar
URL:
Whiteboard:
Keywords:
: 28623 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-24 13:15 UTC by Howard B. Golden
Modified: 2003-12-02 09:29 UTC (History)
4 users (show)

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


Attachments
Patch for 2.5.0 ebuild (xerces-2.5.0.ebuild.patch,678 bytes, patch)
2003-09-17 12:02 UTC, Tobias Sager
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Howard B. Golden 2003-08-24 13:15:34 UTC
When building Xerces-J-2.5.0 under Blackdown-1.4.1, the following build errors
are shown. See below.

A similar bug was reported on the Apache bugzilla, with a fix. Please see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22471

Reproducible: Always
Steps to Reproduce:
1. #(must be using blackdown)
2. emerge xerces
Actual Results:  
Xerces-Java Build System
------------------------

Building with classpath
/opt/blackdown-jdk-1.4.1/lib/tools.jar:/opt/blackdown-jdk-1.4.1/lib/classes.zip:./tools/ant.jar:./tools/xml-apis.jar:./tools/xercesImpl.jar:./tools/bin/xjavac.jar
Starting Ant...

Buildfile: build.xml

init:
     [echo] ---------------- Xerces-J 2.5.0 [1999-2003] ---------------

prepare:
    [mkdir] Created dir: /var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build

prepare-common:
    [mkdir] Created dir: /var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src
    [mkdir] Created dir:
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes
    [mkdir] Created dir:
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF
    [mkdir] Created dir:
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF/services
     [copy] Copying 1 file to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF/services
     [copy] Copying 1 file to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF/services
     [copy] Copying 1 file to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF/services

prepare-src:
     [copy] Copying 1 file to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes/META-INF/services
     [copy] Copying 604 files to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src
    [unzip] Expanding:
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/tools/xml-apis--src.zip into
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src

compile:
     [copy] Copying 9 files to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes
   [xjavac] Compiling 617 source files to
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/classes
   [xjavac]
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src/org/apache/html/dom/HTMLIFrameElementImpl.java:69:
org.apache.html.dom.HTMLIFrameElementImpl should be declared abstract; it does
not define getContentDocument() in org.apache.html.dom.HTMLIFrameElementImpl
   [xjavac] public class HTMLIFrameElementImpl
   [xjavac]        ^
   [xjavac]
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src/org/apache/html/dom/HTMLObjectElementImpl.java:69:
org.apache.html.dom.HTMLObjectElementImpl should be declared abstract; it does
not define getContentDocument() in org.apache.html.dom.HTMLObjectElementImpl
   [xjavac] public class HTMLObjectElementImpl
   [xjavac]        ^
   [xjavac]
/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build/src/org/apache/html/dom/HTMLFrameElementImpl.java:69:
org.apache.html.dom.HTMLFrameElementImpl should be declared abstract; it does
not define getContentDocument() in org.apache.html.dom.HTMLFrameElementImpl
   [xjavac] public class HTMLFrameElementImpl
   [xjavac]        ^
   [xjavac] Note: Some input files use or override a deprecated API.
   [xjavac] Note: Recompile with -deprecation for details.
   [xjavac] 3 errors

BUILD FAILED
file:/var/tmp/portage/xerces-2.5.0/work/xerces-2_5_0/build.xml:232: Compile
failed; see the compiler error output for details.

Total time: 9 seconds

!!! ERROR: dev-java/xerces-2.5.0 failed.
!!! Function src_compile, Line 28, Exitcode 1
!!! Compile failed.

Expected Results:  
Compiled without errors.

bash-2.05b# emerge info
Portage 2.0.49 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(tm) XP 2200+
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/
http://gentoo.seren.com/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java
guile ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gnome gtk qt kde motif opengl mozilla ldap snmp cdr acl acpi
acpi4linux apache2 directfb dnd doc dvd ethereal evo fbcon fbdev foreign-package
foreign-sysvinit freetds gb ginac gnomedb gtk2 imap innodb ipv6 jikes junit
kerberos libgda maildir mbox mdb moznoirc moznomail oci8 odbc pda pic plotutils
radeon samba sasl slp sse tiff type1 usb wmf wxwindows Xaw3d xml zeo"
Comment 1 Dan A. Dickey 2003-09-05 13:38:27 UTC
FYI 
I was having the same problem and installed the sun-j2sdk 
ebuild.  Xerces-J-2.5.0 builds ok now. 
 
Comment 2 Tobias Sager 2003-09-11 11:36:33 UTC
Confirm error here:
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r1, 2.4.21-pfeifer-r1_pre4)
=================================================================
System uname: 2.4.21-pfeifer-r1_pre4 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://gentoo.linux.no/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss crypt cups foomaticdb gif jpeg libwww mad mikmod mmx ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline aalib bonobo svga java mysql X sdl gpm tcpd pam ssl python esd imlib oggvorbis gtk qt motif opengl cdr sse sse2 -3dnow pcmcia pnp trusted pda gphoto2 dga fbcon -gnome libg++ tcltk tiff alsa dvd ggi mozilla xml perl samba -doc -kde xfs gtkhtml encode avi mpeg -arts gtk2 usb ethereal apm xface"
Comment 3 Adrian Almenar 2003-09-13 19:17:23 UTC
*** Bug 28623 has been marked as a duplicate of this bug. ***
Comment 4 sf 2003-09-17 01:29:44 UTC
See "fix" in bug #17765 and my comments about it in bug #21778.
Comment 5 Tobias Sager 2003-09-17 12:02:31 UTC
Created attachment 17900 [details, diff]
Patch for 2.5.0 ebuild

Copy xerces-2.3.0-gentoo.diff to xerces-2.5.0-gentoo.diff first.

This patch modifies ebuild to incorporate the changes from bug 20712.
Works nicely for me.
Comment 6 Adrian Almenar 2003-09-22 20:29:23 UTC
I have tested this patch, but it causes problems compiling some apps that require 
xerces, and the problem is found just were it gets patched. 
 
Im looking for a workaround to this. 
Comment 7 Adrian Almenar 2003-12-01 15:57:45 UTC
Ok, xerces 2.6 doesnt have this problem, ill commit it in few hours. (CVS is down right now). 
Going to put in ~arch so please anyone that would like to test it should be welcome.
Comment 8 Adrian Almenar 2003-12-01 20:20:01 UTC
This is now available on portage tree, please sync and test with xerces-2.6.0.
Comment 9 Howard B. Golden 2003-12-02 09:29:05 UTC
Works for me. Thanks, Adrian!