Summary: | dev-java/icedtea-7.2.5.3[jbootstrap] fails to compile: Util is not public in sun.management | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nathan Caldwell <saintdev> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gnu_andrew, k_f, popei, walch.martin |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2367 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | dev-java:icedtea-7.2.5.3:20141129-032718.log.bz2 |
Description
Nathan Caldwell
2014-11-29 05:16:46 UTC
Created attachment 390532 [details]
dev-java:icedtea-7.2.5.3:20141129-032718.log.bz2
Bzipped because build log is 3.4MB
I am getting this same error. sun.management.Util appears to be openjdk/jdk/src/share/classes/sun/management/Util.java : package sun.management; import java.lang.management.ManagementPermission; import java.util.List; import javax.management.ObjectName; import javax.management.MalformedObjectNameException; public class Util { private Util() {} // there are no instances of this class : Util is declared public but the actual creation function is private. This seems valid to me so maybe gcc is getting confused. I was having this issue to however I got it compiling by making my USE flags more conservative dev-java/icedtea X alsa cups -jbootstrap -nsplugin -nss source -webstart -cacao -cjk -debug -doc -examples -infinality -jamvm javascript -kerberos -pax_kernel -pulseaudio (-selinux) -smartcard -sunec {-test} -zero unfortunately I cannot remember what the USE flags where when it failed possibly default with javascript enabled ?? I've posted these working flags in case it helps someone track it down. USE="jbootstrap" fails and USE="-jbootstrap" works for me. Comfirmed, adding -jboostrap allowes icedtea to be installed. *** Bug 533846 has been marked as a duplicate of this bug. *** This has probably been fixed in 7.2.5.4 or 7.2.5.5. The latter has just hit the tree and I have built it countless times with jbootstrap enabled. Please confirm. (In reply to James Le Cuirot from comment #7) > This has probably been fixed in 7.2.5.4 or 7.2.5.5. The latter has just hit > the tree and I have built it countless times with jbootstrap enabled. Please > confirm. Sorry, still fails for me with dev-java/icedtea-7.2.5.5:7::gentoo USE="X alsa cups jbootstrap* nsplugin source sunec webstart -cacao -cjk -debug -doc -examples -infinality -jamvm -javascript -kerberos -nss -pax_kernel -pulseaudio (-selinux) -smartcard {-test} -zero" I tried several times. Always fails. (In reply to Martin Walch from comment #8) > Sorry, still fails for me with > > dev-java/icedtea-7.2.5.5:7::gentoo USE="X alsa cups jbootstrap* nsplugin > source sunec webstart -cacao -cjk -debug -doc -examples -infinality -jamvm > -javascript -kerberos -nss -pax_kernel -pulseaudio (-selinux) -smartcard > {-test} -zero" No problem, I actually ran into it myself a couple of days ago but didn't make the mental connection to this bug report. I have determined that the problem occurs if you build with icedtea-6. I hope you can confirm this. If you are using it, try installing icedtea-bin-7 and then build with that instead. I have reported this upstream. See the URL. I've removed icedtea-6 from DEPEND until this is resolved. If you don't want to build with gcj then you can build with icedtea-bin-7 instead. Fixed version now in the tree. |