Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108875 - Cannot install dev-java/xalan
Summary: Cannot install dev-java/xalan
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:
Depends on:
Blocks:
 
Reported: 2005-10-11 08:16 UTC by Mathieu Malaterre
Modified: 2005-10-11 09:39 UTC (History)
0 users

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 Mathieu Malaterre 2005-10-11 08:16:23 UTC
# rm /usr/portage/distfiles/xalan-j_2_6_0-src.tar.gz
# emerge --update dev-java/xalan
...
>>> Unpacking xalan-j_2_6_0-src.tar.gz to /var/tmp/portage/xalan-2.6.0-r2/work
tar: A lone zero block at 36857
>>> Source unpacked.
Buildfile: build.xml

prepare:
     [echo] Project:Xalan-Java version:2_6_0 build.xml $Revision: 1.206 $
    [mkdir] Created dir: /var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/build
    [mkdir] Created dir:
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/build/classes

xml.compile:
     [echo] Compiling DTM implementation and utilities
    [javac] Compiling 186 source files to
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/build/classes
    [javac] javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/build.xml:256: Compile
failed; see the compiler error output for details.

Total time: 0 seconds

!!! ERROR: dev-java/xalan-2.6.0-r2 failed.
!!! Function src_compile, Line 47, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mathieu Malaterre 2005-10-11 08:17:03 UTC
Adding configuration

# java-config -L
[blackdown-jre-1.4.2.02] "Blackdown JRE 1.4.2.02"
(/etc/env.d/java/20blackdown-jre-1.4.2.02)
[sun-jdk-1.5.0.05] "Sun JDK 1.5.0.05" (/etc/env.d/java/20sun-jdk-1.5.0.05) *
[blackdown-jdk-1.4.2.02] "Blackdown JDK 1.4.2.02"
(/etc/env.d/java/20blackdown-jdk-1.4.2.02)


# emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Opteron(tm) Processor 848
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
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.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fprefetch-loop-arrays -fforce-addr -msse2 -msse
-mmmx -m3dnow -mfpmath=sse,387 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib64/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fprefetch-loop-arrays -fforce-addr -msse2 -msse
-mmmx -m3dnow -mfpmath=sse,387 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/
http://mirror.clarkson.edu/pub/distributions/gentoo/ http://chod.cwru.edu/gentoo
ftp://chod.cwru.edu/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d acpi apache arts avi bash-completion berkdb bitmap-fonts
crypt cups curl dga dvd eds emacs emboss encode esd f77 fam foomaticdb fortran
gd gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java
javascript jpeg junit kde lcms libg++ libwww lzw lzw-tiff mad maildir mikmod
motif mozilla mp3 mpeg mysql nas ncurses network nls nocardbus nptl ogg opengl
pam pdflib perl png python qt quicktime readline rtc samba sdl slang spell ssl
tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb
userlocales videos vorbis xinerama xml xml2 xpm xprint xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Mathieu Malaterre 2005-10-11 08:18:33 UTC
From:
http://forums.gentoo.org/viewtopic-p-2459421.html

"""
The problem is portage. For some reasons the build.xml sets only -target and not
-souce. So javac is free to assume anything. With Java 1.5 is assumes 1.5. But
-target 1.1 doesn't work with -source 1.5.

The solution is simple:
Set -source to a compatible value if you set -target FFS.
"""
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-11 08:33:17 UTC
Guess why Java 1.5 ist still hard masked...
Comment 4 Mathieu Malaterre 2005-10-11 08:37:19 UTC
I also tried the following solution:
http://forums.gentoo.org/viewtopic-t-305141-highlight-apache+xerces+jaxp+saxparserfactoryimpl.html

I solved similar problems to your first error as follows:

      Copy relevant archive from /usr/portage/distfiles to your home directory,
and unpack.
      Edit the build.xml file so that target = 1.5
      Repack the archive, and move back to /usr/portage/distfiles
      ebuild /usr/portage/<package-category>/<package-name> digest
      emerge <package-name>



But I get those errors now:

    [javac]
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/src/org/apache/xml/dtm/ref/DTMNodeProxy.java:54:
org.apache.xml.dtm.ref.DTMNodeProxy is not abstract and does not override
abstract method getUserData(java.lang.String) in org.w3c.dom.Node
    [javac] public class DTMNodeProxy
    [javac]        ^
    [javac]
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/src/org/apache/xml/dtm/ref/DTMNodeProxy.java:1327:
org.apache.xml.dtm.ref.DTMNodeProxy.DTMNodeProxyImplementation is not abstract
and does not override abstract method
getFeature(java.lang.String,java.lang.String) in org.w3c.dom.DOMImplementation
    [javac]   static class DTMNodeProxyImplementation implements DOMImplementation
    [javac]          ^
    [javac]
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java:48:
org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode is not
abstract and does not override abstract method isId() in org.w3c.dom.Attr
    [javac] public class DOM2DTMdefaultNamespaceDeclarationNode implements Attr
    [javac]        ^
    [javac]
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/src/org/apache/xml/utils/UnImplNode.java:44:
org.apache.xml.utils.UnImplNode is not abstract and does not override abstract
method getUserData(java.lang.String) in org.w3c.dom.Node
    [javac] public class UnImplNode implements Node, Element, NodeList, Document
    [javac]        ^
    [javac] Note: * uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors
    [javac] 6 warnings

BUILD FAILED
/var/tmp/portage/xalan-2.6.0-r2/work/xalan-j_2_6_0/build.xml:256: Compile
failed; see the compiler error output for details.

Total time: 4 seconds

!!! ERROR: dev-java/xalan-2.6.0-r2 failed.
!!! Function src_compile, Line 47, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 5 Mathieu Malaterre 2005-10-11 09:03:49 UTC
Temporary solution was to switch to default blackdown 1.4:

   emerge unmerge dev-java/blackdown-jre
   emerge unmerge dev-java/blackdown-jdk
   emerge xalan
   /usr/sbin/env-update && source /etc/profile
   emerge unmerge xerces
   emerge unmerge junit
   emerge unmerge dev-java/ant-core
   emerge unmerge javacup
   emerge unmerge dev-java/jakarta-regex
   emerge unmerge dev-java/bsf
   emerge --update app-arch/zip
   emerge --update dev-java/jikes
   emerge unmerge jython
   emerge unmerge rhino
   emerge unmerge dev-java/xjavac
   emerge unmerge dev-java/servletapi
   emerge xalan
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-11 09:39:18 UTC
masked