Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110063

Summary: OpenOffice 2.0.0 build process stumbles upon Java warnings
Product: Gentoo Linux Reporter: Dead Schorsch <spamlover>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dead Schorsch 2005-10-21 13:45:36 UTC
Emerging openoffice-2.0.0 gives alot of deprecation warnings when ant is called
for building java parts. The ebuild obviously misinterpretes this warnings as
errors and fails:

/usr/bin/ant -Dprj=../../../.. -Dprjname=ooo_beanshell -Ddebug=off -Doptimize=on
  -Dtarget=jarall -Dsolar.update=on -Dout=../../../../unxlngi6.pro -Dinpath=unxl
ngi6.pro -Dproext=".pro"  -Dsolar.bin=/var/tmp/portage/openoffice-2.0.0/work/ooo
-build-2.0.0/build/ooo680-m3/solver/680/unxlngi6.pro/bin -Dsolar.jar=/var/tmp/po
rtage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/solver/680/unxlngi6.
pro/bin -Dsolar.doc=/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build
/ooo680-m3/solver/680/unxlngi6.pro/doc  -Dcommon.jar=/var/tmp/portage/openoffice
-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/solver/680/common.pro/bin -Dcommon.d
oc=/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/solver
/680/common.pro/doc  -f build.xml  -emacs
Buildfile: build.xml

checkjjt:

jjtree:

checkjj:

javacc:

builddir:

compile:
Compiling 143 source files to /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2
.0.0/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/classes
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BshMethod.java:306: warning: [depreca
tion] getAssignableForm(java.lang.Object,java.lang.Class) in bsh.Types has been
deprecated
                                        argValues[i] = Types.getAssignableForm(
                                                            ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BshMethod.java:387: warning: [depreca
tion] getAssignableForm(java.lang.Object,java.lang.Class) in bsh.Types has been
deprecated
                                ret = Types.getAssignableForm( ret, (Class)retur
nType );
                                           ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BSHEnhancedForStatement.java:66: warn
ing: [deprecation] setTypedVariable(java.lang.String,java.lang.Class,java.lang.O
bject,boolean) in bsh.NameSpace has been deprecated
                                eachNameSpace.setTypedVariable(
                                             ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BSHPrimarySuffix.java:193: warning: [
deprecation] getAssignableForm(java.lang.Object,java.lang.Class) in bsh.Types ha
s been deprecated
                                indexVal = Types.getAssignableForm( indexVal, In
teger.TYPE);
                                                ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BSHTryStatement.java:123: warning: [d
eprecation] getAssignableForm(java.lang.Object,java.lang.Class) in bsh.Types has
 been deprecated
                                                thrown = (Throwable)Types.getAss
ignableForm(
                                                                         ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/BSHTryStatement.java:151: warning: [d
eprecation] setTypedVariable(java.lang.String,java.lang.Class,java.lang.Object,b
oolean) in bsh.NameSpace has been deprecated
                                                cbNameSpace.setTypedVariable(
                                                           ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:137: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                this.superClassName = Type.getInternalName( superClass );
                                      ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:185: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                        interfaceNames[i]=Type.getInternalName( interfaces[i] );
                                          ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:362: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                Type.getType(Object.class),
                                ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:363: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                new Type [] {
                                    ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:364: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(String.class),
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:365: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(Object [].class),
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:366: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(Interpreter.class),
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:367: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(CallStack.class),
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:368: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(SimpleNode.class),
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:369: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                                        Type.getType(Boolean.TYPE)
                                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:361: referenc
e to Type is ambiguous, both class java.lang.reflect.Type in java.lang.reflect a
nd class bsh.org.objectweb.asm.Type in bsh.org.objectweb.asm match
                        Type.getMethodDescriptor(
                        ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/Reflect.java:129: warning: [deprecati
on] getAssignableForm(java.lang.Object,java.lang.Class) in bsh.Types has been de
precated
                                tmpArgs[i] = Types.getAssignableForm( args[i], t
ypes[i] );
                                                  ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/Remote.java:143: warning: [deprecatio
n] encode(java.lang.String) in java.net.URLEncoder has been deprecated
                sb.append( URLEncoder.encode( text ) );
                                     ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/AWTConsole.java:223: warning: [d
eprecation] getPeer() in java.awt.Component has been deprecated
                ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition(
                                                  ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/AWTConsole.java:328: warning: [d
eprecation] show() in java.awt.Window has been deprecated
                f.show();
                 ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/ClassBrowser.java:412: warning:
[deprecation] show() in java.awt.Window has been deprecated
                f.show();
                 ^
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/Util.java:83: warning: [deprecat
ion] show() in java.awt.Window has been deprecated
        win.show();
           ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors
12 warnings

BUILD FAILED
/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0/build/ooo680-m3/beanshell
/unxlngi6.pro/misc/build/BeanShell/build.xml:176: Compile failed; see the compil
er error output for details.

Total time: 7 seconds
dmake:  Error code 1, while making 'ANTBUILD'
'---* tg_merge.mk *---'
dmake:  Error code 255, while making './unxlngi6.pro/misc/build/so_built_ooo_bea
nshell'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-2.0.0/work/
ooo-build-2.0.0/build/ooo680-m3/beanshell
make: *** [stamp/build] Error 1

!!! ERROR: app-office/openoffice-2.0.0 failed.
!!! Function src_compile, Line 187, Exitcode 2
!!! Build failed
!!! If you need support, post the topmost build error, NOT this status message.

king ~ # java-config -v
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




king ~ # emerge info
Portage 2.0.53_rc6 (default-linux/x86/2005.1, gcc-3.4.4,
glibc-2.2.5-r2,glibc-2.3.5-r2, 2.6.13-gentoo-r2 i686)
=================================================================
System uname: 2.6.13-gentoo-r2 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aalib acpi acpi4linux activefilter adns aim alsa
apache2 async audiofile avi bash-completion berkdb bitmap-fonts bluetooth bmp
bonobo bzip2 bzlib cddb cdinstall cdparanoia cdr chroot crypt cups curl dbus dga
divx4linux doc dvb dvd dvdr eds emboss encode esd evo exif fbcon flac foomaticdb
fortran ftp gd gdbm gif gimp gimpprint gnome gnomedb gphoto2 gpm gstreamer gtk
gtk2 gtkhtml guile hal iconv imagemagick imap imlib imlib2 ipv6 irmc java jikes
jpeg junit ldap libg++ libwww live lzw-tiff mad mbox mime mmx mmx2 mmxext
mozilla moznocompose moznoirc moznomail mozp3p mozplaintext mozsvg mp3 mpeg
mpeg4 msn ncurses netbeans nls nocd nptl ntplonly nvidia ogg oggvorbis openal
opengl pam pda pdflib perl php png posix postgres ppds python quicktime readline
samba scanner sdl slang smime sockets sox speex spell sse ssl svg svga tcpd
tetex tga tiff truetype-fonts type1-fonts udev unicode usb vcd videos vidix
vorbis win32codecs wmf xfs xine xinerama xml xml2 xosd xpm xv xvid xvmc zlib
linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2005-10-21 13:49:33 UTC
OpenOffice.org does not build with java-1.5.

*** This bug has been marked as a duplicate of 76270 ***
Comment 2 Dead Schorsch 2005-11-04 00:28:21 UTC
dupe