Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294027 - [java-overlay] dev-java/icedtea-7.1.12 fails to build with icedtea6: cannot find symbol java.lang.UNIXProcess
Summary: [java-overlay] dev-java/icedtea-7.1.12 fails to build with icedtea6: cannot f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 09:51 UTC by Dennis Schridde
Modified: 2011-09-27 17:32 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,81.08 KB, text/plain)
2009-11-22 09:52 UTC, Dennis Schridde
Details
Patch to fix the nio2 issue and enable forcing vm via env (icedtea-1.12-no-icedtea6-nio2-and-force-vm-by-env.patch,2.38 KB, patch)
2009-12-27 15:36 UTC, Dennis Schridde
Details | Diff
build.log (build.log,80.56 KB, text/plain)
2009-12-27 18:31 UTC, Dennis Schridde
Details
Patch to fix the nio2 issue for icedtea-7.1.12 (icedtea-7.1.12-no-icedtea6-nio2.patch,938 bytes, patch)
2010-02-05 10:21 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2009-11-22 09:51:39 UTC
dev-java/icedtea-1.12 fails to build, with following message (among others):

openjdk/jdk/src/solaris/classes/java/lang/ProcessImpl.java:128: cannot find symbol                                                                                                                                  
symbol  : constructor UNIXProcess(byte[],byte[],int,byte[],int,byte[],int[],boolean)                                                                                                                                
location: class java.lang.UNIXProcess                                                                                                                                                                               
        return new UNIXProcess                                                                                                                                                                                      
               ^                                                                                                                                                                                                    
openjdk/jdk/src/share/classes/sun/nio/ch/Net.java:248: findOption(org.classpath.icedtea.java.net.SocketOption<?>,org.classpath.icedtea.java.net.ProtocolFamily) in sun.nio.ch.SocketOptionRegistry cannot be applied to (java.net.SocketOption<capture#257 of ?>,java.net.ProtocolFamily)                                                                                                                                               
        OptionKey key = SocketOptionRegistry.findOption(name, family);                                                                                                                                              
                                            ^                                                                                                                                                                       
openjdk/jdk/src/share/classes/sun/nio/ch/Net.java:275: findOption(org.classpath.icedtea.java.net.SocketOption<?>,org.classpath.icedtea.java.net.ProtocolFamily) in sun.nio.ch.SocketOptionRegistry cannot be applied to (java.net.SocketOption<capture#398 of ?>,java.net.ProtocolFamily)                                                                                                                                               
        OptionKey key = SocketOptionRegistry.findOption(name, family);                                                                                                                                              

Full log attached.

Reproducible: Always




Portage 2.2_rc51 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 x86_64) 
=================================================================                                      
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 22 Nov 2009 07:45:01 +0000                                                          
app-shells/bash:     4.0_p35                                                                                
dev-java/java-config: 2.1.9-r1                                                                              
dev-lang/python:     2.6.4, 3.1.1-r1                                                                        
dev-python/pycrypto: 2.1.0_beta1                                                                            
dev-util/cmake:      2.8.0                                                                                  
sys-apps/baselayout: 2.0.1                                                                                  
sys-apps/openrc:     0.5.2-r2                                                                               
sys-apps/sandbox:    2.2                                                                                    
sys-devel/autoconf:  2.13, 2.63-r1                                                                          
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                                       
sys-devel/binutils:  2.20                                                                                   
sys-devel/gcc-config: 1.4.1                                                                                 
sys-devel/libtool:   2.2.6b                                                                                 
virtual/os-headers:  2.6.30-r1                                                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                              
ACCEPT_LICENSE="* -@EULA"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                                
CFLAGS="-pipe -O2 -march=athlon64-sse3 -fstack-protector -ftree-vectorize"                                  
CHOST="x86_64-pc-linux-gnu"                                                                                 
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3 -fstack-protector -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/kde-testing /var/cache/portage/layman/oss-overlay /var/cache/portage/layman/sunrise /var/cache/portage/layman/java-overlay /var/cache/portage/layman/pcsx2 /var/cache/portage/layman/mpd /var/cache/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
[...]
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Available Java Virtual Machines:
  [1]   gcj-jdk
  [2]   icedtea
  [3]   icedtea6  system-vm

dev-java/icedtea6-1.6.2
Comment 1 Dennis Schridde 2009-11-22 09:52:05 UTC
Created attachment 210858 [details]
build.log
Comment 2 Dennis Schridde 2009-11-22 09:53:47 UTC
[ebuild     U ] dev-java/icedtea-1.12 [1.11] USE="nsplugin xrender -cacao -debug -doc -examples -javascript -pulseaudio -systemtap -zero"
[ebuild   R   ] dev-java/icedtea6-1.6.2  USE="nio2 nsplugin xrender -cacao -debug -doc -examples -javascript -pulseaudio -systemtap -zero"
Comment 3 Andrew John Hughes 2009-12-21 12:55:11 UTC
To build IcedTea7 with IcedTea6, you need to have the nio2 USE flag on IcedTea6 disabled.  Your error occurs because the two implementations in 6 and 7 are clashing.
Comment 4 Dennis Schridde 2009-12-21 16:05:30 UTC
(In reply to comment #3)
> To build IcedTea7 with IcedTea6, you need to have the nio2 USE flag on IcedTea6
> disabled.  Your error occurs because the two implementations in 6 and 7 are
> clashing.
Thanks for the info!
Maybe you can add a check to the ebuild to see whether dev-java/icedtea is being build using an incompatible JDK.

I will try building dev-java/icedtea-1.12 using dev-java/icedtea-1.11 as soon as bug #294918 is fixed.
Comment 5 Dennis Schridde 2009-12-21 16:12:22 UTC
(In reply to comment #4)
> I will try building dev-java/icedtea-1.12 using dev-java/icedtea-1.11 as soon
> as bug #294918 is fixed.
There currently seems to be no way to override JAVA_PKG_FORCE_VM (set in the ebuild, not accepting env definitions), so this would not work anyway.
Comment 6 Dennis Schridde 2009-12-27 13:36:12 UTC
(In reply to comment #5)
> There currently seems to be no way to override JAVA_PKG_FORCE_VM (set in the
> ebuild, not accepting env definitions), so this would not work anyway.
With bug #294918 having a workaround now, suggest adding a way to override JAVA_PKG_FORCE_VM from the commandline, e.g. in pkg_setup():
if ! [[ "$JAVA_PKG_FORCE_VM" ]] || ! has_version "${JAVA_PKG_FORCE_VM}"; then
... current code ...
fi
Comment 7 Dennis Schridde 2009-12-27 15:36:20 UTC
Created attachment 214309 [details, diff]
Patch to fix the nio2 issue and enable forcing vm via env

The attached patch forces the dev-java/icedtea6[-nio2] dependency. It also allows overriding JAVA_PKG_FORCE_VM via env, giving a warning for documentary purposes.
Comment 8 Dennis Schridde 2009-12-27 18:31:42 UTC
Created attachment 214338 [details]
build.log

The issue is NOT solved by emerging dev-java/icedtea6[-nio2]!

[ebuild   R   ] dev-java/icedtea6-1.6.2  USE="nsplugin xrender -cacao -debug -doc -examples -javascript -nio2 -pulseaudio -systemtap -zero" 0 kB [1]

openjdk/jdk/src/solaris/classes/java/lang/ProcessImpl.java:128: cannot find symbol                                                                                                                                  
symbol  : constructor UNIXProcess(byte[],byte[],int,byte[],int,byte[],int[],boolean)                                                                                                                                
location: class java.lang.UNIXProcess                                                                                                                                                                               
        return new UNIXProcess                                                                                                                                                                                      
               ^                                                                                                                                                                                                    

Full log attached.
Comment 9 Dennis Schridde 2009-12-28 14:19:14 UTC
Stil valid for dev-java/icedtea6-1.6.2-r1.
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-02-05 10:07:41 UTC
Also valid for icedtea-6.1.7.
I changed the VM selection order to prefer icedtea:7 or gcj-jdk. But might drop icedtea:6 variant completely if it's unusable...

BTW, user-set JAVA_PKG_FORCE_VM is now honored. 
Comment 11 Dennis Schridde 2010-02-05 10:21:45 UTC
Created attachment 218515 [details, diff]
Patch to fix the nio2 issue for icedtea-7.1.12
Comment 12 Ralph Sennhauser (RETIRED) gentoo-dev 2010-04-18 13:17:27 UTC
Also happens with icedtea-6.1.8.0 with all useflags disabled and icedtea-7.1.12-r1.
Comment 13 Ralph Sennhauser (RETIRED) gentoo-dev 2010-07-30 19:18:47 UTC
icedtea-7.1.13 in the java-overlay fixes this issue for me.
Comment 14 Serkan Kaba (RETIRED) gentoo-dev 2011-09-27 17:32:28 UTC
Closing as FIXED