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
Created attachment 210858 [details] build.log
[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"
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.
(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.
(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.
(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
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.
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.
Stil valid for dev-java/icedtea6-1.6.2-r1.
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.
Created attachment 218515 [details, diff] Patch to fix the nio2 issue for icedtea-7.1.12
Also happens with icedtea-6.1.8.0 with all useflags disabled and icedtea-7.1.12-r1.
icedtea-7.1.13 in the java-overlay fixes this issue for me.
Closing as FIXED