Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105291 - OpenOffice.org 1.1.4-r1 fails with "enum is a keyword, may not be used as identifier"
Summary: OpenOffice.org 1.1.4-r1 fails with "enum is a keyword, may not be used as ide...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 11:58 UTC by Gordon Pettey
Modified: 2005-09-09 02:05 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 Gordon Pettey 2005-09-08 11:58:12 UTC
=============
Building project sandbox
=============
/var/tmp/portage/openoffice-1.1.4-r1/work/sandbox/com/sun/star/lib/sandbox
mkout -- version: 1.3
Making dpj...

------------------------------
Making: ../../../../../unxlngi4.pro/misc/lib_sandbox.dpc
dmake subdmake=true  -f makefile.mk strip="true" product="full" depend=t ALLDPC
------------------------------
No Dependencies
javac -classpath ".:../../../../../unxlngi4.pro/class:/opt/sun-jdk-
1.5.0.04/jre/lib/rt.jar:." -d ../../../../../unxlngi4.pro/class  
AudioProxy.java                    
Cachable.java                                        ClassContext.java       
ClassContextImpl.java                           
ClassContextProxy.java             
CodeSource.java                                  
Disposable.java                ExecutionContext.java                        
Holder.java                        ImageProducerProxy.java                  
JarEntry.java                      
JarInputStream.java                          
Permission.java                        
PermissionCollection.java                    ProtectionDomain.java          
Resource.java                                            
ResourceImpl.java      ResourceProxy.java                               
ResourceViewer.java                
SandboxMessageHandler.java                   
SandboxThreadGroup.java            
SandboxSecurity.java                         
SandboxSecurityException.java           
WeakRef.java                                            
WeakTable.java                                          
WeakEntry.java                         XImage.java
ClassContextImpl.java:307: as of release 1.5, 'enum' is a keyword, and may not 
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                    java.util.Enumeration enum = m_class_path_jars.elements();
                                          ^
ClassContextImpl.java:308: as of release 1.5, 'enum' is a keyword, and may not 
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                    while (enum.hasMoreElements())
                           ^
ClassContextImpl.java:310: as of release 1.5, 'enum' is a keyword, and may not 
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                        ClassContext context = (ClassContext)enum.nextElement
();
                                                             ^
3 errors
dmake:  Error code 1, while 
making '../../../../../unxlngi4.pro/misc/lib_sandbox_dummy.java'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.4-
r1/work/sandbox/com/sun/star/lib/sandbox

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


From looking at the errors, I believe this may be caused by my usage of Sun's 
JRE/JDK 1.5. Don't know if this is the fault of JDK/JRE or OpenOffice, though.

Reproducible: Always
Steps to Reproduce:
1. Remove blackdown java, switch to Sun's JRE and JDK versions 1.5.
2. Emerge openoffice-1.1.4-r1.
3. Receive error.

Actual Results:  
Build fails.

Expected Results:  
Build succeeds.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 
2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) XP 2700+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
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
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/shar
e/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/sh
are/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.easynews.com/linux/gentoo/ 
http://mirrors.tds.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acpi aim alsa audiofile avi bcmath 
bitmap-fonts browserplugin bzip2 bzlib cdda cddb cdio cdparanoia cdr 
cpudetection crypt cups curl curlwrappers dga dio directfb divx4linux dvd 
dvdread encode exif fbcon ffmpeg fftw flac freetype ftp ggi gif glut gpm gtk 
gtk2 gtkhtml imagemagick imlib java javascript jpeg kde kdeenablefinal 
kdexdeltas lesstif libcaca lzo mad mikmod mmap mmx mmxext mng motif mozilla 
mp3 mpeg ncurses nocd nptl nvidia ogg oggvorbis openal opengl pam png posix qt 
rdesktop readline recode rtc samba sdl server slang sndfile speex sse ssl 
stencil-buffer svg svga sysvipc szip tcltk threads tiff truetype truetype-
fonts type1-fonts unicode usb userlocales vorbis wifi win32codecs x86 xine 
xosd xpm xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2005-09-09 02:05:29 UTC
There is a reason that jdk 1.5 is still masked. You're right in your analysis.
If you have a patch that runs javac with the "-source 1.3" option you can reopen
it. But as the upcoming 2.0 release just supports 1.5 we're not going to try to
make things work now. If you're certain you don't want to have jdk1.4 support in
your openoffice binary you could alternatively try to change all "enum"
identifiers into something like "myEnum"