Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531082 - dev-java/icedtea-7.2.5.3[jbootstrap] fails to compile: Util is not public in sun.management
Summary: dev-java/icedtea-7.2.5.3[jbootstrap] fails to compile: Util is not public in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL: http://icedtea.classpath.org/bugzilla...
Whiteboard:
Keywords:
: 533846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-29 05:16 UTC by Nathan Caldwell
Modified: 2015-09-02 23:02 UTC (History)
4 users (show)

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


Attachments
dev-java:icedtea-7.2.5.3:20141129-032718.log.bz2 (dev-java:icedtea-7.2.5.3:20141129-032718.log.bz2,181.89 KB, application/x-bzip)
2014-11-29 05:18 UTC, Nathan Caldwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Caldwell 2014-11-29 05:16:46 UTC
$ emerge -pv icedtea
Calculating dependencies  ........ done!
[ebuild     U  ] dev-java/icedtea-7.2.5.3:7 [7.2.4.8:7] USE="X alsa jbootstrap nsplugin nss source webstart -cacao -cjk -cups -debug -doc -examples -infinality% -jamvm -javascript -kerberos -pax_kernel -pulseaudio (-selinux) -smartcard% -sunec% {-test} -zero" 0 KiB

Compiling icedtea 7.2.5.3 fails because:

../../../src/share/classes/java/lang/management/PlatformComponent.java:42: error: Util is not public in sun.management; cannot be accessed from outside package
import sun.management.Util;
                     ^
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:176: error: cannot find symbol
                        result = Util.newObjectName(LOGGING_MXBEAN_NAME);
                                     ^
  symbol:   method newObjectName(String)
  location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:234: error: cannot find symbol
                            result = Util.newObjectName(BUFFER_POOL_MXBEAN_NAME +
                                         ^
  symbol:   method newObjectName(String)
  location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:331: error: cannot find symbol
            final ObjectName objName = Util.newObjectName(mbeanName);
                                           ^
  symbol:   method newObjectName(String)
  location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:391: error: cannot find symbol
            final ObjectName objName = Util.newObjectName(mbeanName);

Reproducible: Always

Steps to Reproduce:
1. emerge icedtea
Actual Results:  
icedtea fails to compile

Expected Results:  
icedtea successfully compiles

Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.20, 3.14.4-ck.0 x86_64)
=================================================================
System uname: Linux-3.14.4-ck.0-x86_64-AMD_Athlon-tm-_II_X2_255_Processor-with-gentoo-2.2
KiB Mem:     4049216 total,    168224 free
KiB Swap:    4194296 total,   3524240 free
Timestamp of tree: Fri, 28 Nov 2014 16:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/ccache:          3.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo x-portage kernels forked-daapd Folding-Home partclone x-hdhomerun x-nginx
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 FAH-EULA-2009"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/lib64/python2.7/site-packages/buildbot/status/web /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/kernels /usr/local/overlays/forked-daapd /usr/local/overlays/fah /usr/local/overlays/partclone /usr/local/overlays/hdhomerun /usr/local/overlays/nginx"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 avahi avi berkdb bzip2 caps cdda cddb cdr cli consolekit cracklib crypt curl cxx dbus device-mapper dri dts dv dvb dvd dvdr dvdread encode exif expat fam fame fbcondecor ffmpeg fftw flac fortran gd gdbm gdu gif gnutls gstreamer gtk gtk2 hal iconv ieee1394 imagemagick ipv6 java jpeg lame lcms lm_sensors logrotate lzma mad mdadm mmap mmx mmxext mng modules mp3 mpeg mpeg4 multilib mysql mythtv ncurses nls nptl nptlonly ogg openmp opus pam pcre php pic png policykit qt qt3support qt4 quicktime readline redland samba sasl semantic-desktop server session spell sql sqlite sse sse2 sse3 ssl subtitles svg tcpd threads tidy transcode truetype udev udisks unicode v4l v4l2 vorbis webkit x264 xine xml xml2 xulrunner xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="cpu cpufreq df disk hddtemp interface load mbmon memory netlink network ntpd rrdcached rrdtool sensors swap thermal tail" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau radeon fbdev vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Nathan Caldwell 2014-11-29 05:18:35 UTC
Created attachment 390532 [details]
dev-java:icedtea-7.2.5.3:20141129-032718.log.bz2

Bzipped because build log is 3.4MB
Comment 2 Daiajo Tibdixious 2014-12-06 21:20:15 UTC
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.
Comment 3 codifies 2014-12-07 23:47:37 UTC
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.
Comment 4 Martin Walch 2014-12-08 19:20:46 UTC
USE="jbootstrap" fails and USE="-jbootstrap" works for me.
Comment 5 Daiajo Tibdixious 2014-12-10 03:35:36 UTC
Comfirmed, adding -jboostrap allowes icedtea to be installed.
Comment 6 popei 2014-12-28 19:09:09 UTC
*** Bug 533846 has been marked as a duplicate of this bug. ***
Comment 7 James Le Cuirot gentoo-dev 2015-05-06 22:31:05 UTC
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.
Comment 8 Martin Walch 2015-05-19 11:55:10 UTC
(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.
Comment 9 James Le Cuirot gentoo-dev 2015-05-19 12:08:39 UTC
(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.
Comment 10 James Le Cuirot gentoo-dev 2015-05-23 23:06:54 UTC
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.
Comment 11 James Le Cuirot gentoo-dev 2015-09-02 23:02:02 UTC
Fixed version now in the tree.