Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659174 - dev-java/icedtea-web - configure says sun.applet.AppletImageRef not found due to headless-awt flag
Summary: dev-java/icedtea-web - configure says sun.applet.AppletImageRef not found due...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-06-25 19:52 UTC by Jeff Hubbs
Modified: 2022-06-20 07:41 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,8.09 KB, text/plain)
2018-06-25 19:52 UTC, Jeff Hubbs
Details
config.log (config.log,28.02 KB, text/plain)
2018-06-27 16:04 UTC, Jeff Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Hubbs 2018-06-25 19:52:26 UTC
Created attachment 537254 [details]
build.log

This package apparently just recently went stable but, dot, dot, dot...

*********************************************************************************
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-8  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
*********************************************************************************
# emerge --info =icedtea-web-1.6.2
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/no-multilib, gcc-6.4.0, glibc-2.26-r7, 4.9.95-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:     3954048 total,   2054340 free
KiB Swap:    8388604 total,   8320704 free
Timestamp of repository gentoo: Mon, 25 Jun 2018 07:15:01 +0000
Head commit of repository gentoo: 86a13bfb1b665aabf1e3a595e770f01e122f94fc
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://msba02a/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://msba02a"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 James Le Cuirot gentoo-dev 2018-06-27 10:10:44 UTC
Please attach config.log.
Comment 2 Jeff Hubbs 2018-06-27 16:04:59 UTC
Created attachment 537388 [details]
config.log

Config.log attachment added.
Comment 3 Jeff Hubbs 2018-06-28 16:36:09 UTC
I've learned via IRC/Freenode/#java that sun.applet.AppletImageRef is generally supposed to be in rt.jar, which on Gentoo/icedtea lives in /usr/lib64/icedtea8/jre/lib/. Oracle's JRE does have sun.applet.AppletImageRef in /opt/oracle-jre-bin-1.8.0.172/lib/ and I'm told on Freenode/#java that icedtea 3.8.0 (which I'm running the source-based package of (i.e., dev-java/icedtea-3.8.0) has sun.applet.AppletImageRef in its rt.jar - specifically, Gentoo's icedtea-bin-3.8.0, so it seems there's some divergence between the icedtea and icedtea-bin ebuilds that is leading to breakage. I think my workaround is to dump icedtea for icedtea-bin.
Comment 4 James Le Cuirot gentoo-dev 2018-06-28 22:01:26 UTC
I confirmed my initial suspicions and found that it is the headless-awt flag. Please disable this.

Fixing this isn't entirely straightforward though. The virtual packages do not currently have any flags because additional work would be required to make use of them. icedtea-web selects the JVM in a different way to other Java packages but the virtual flags would still not help much as you can manually select any JVM you want.
Comment 5 Miroslav Šulc gentoo-dev 2020-09-05 09:01:30 UTC
the same error with openjdk:11[-headless-awt] as system java-vm.
Comment 6 David Kredba 2022-01-20 07:17:50 UTC
The same error with current dev-java/icedtea-web-1.8.8.
Comment 7 darkbasic 2022-02-15 13:22:28 UTC
It's the same with dev-java/icedtea-web-1.8.4-r1
Comment 8 darkbasic 2022-02-15 13:34:51 UTC
I've found that selecting either openjdk-8 or openjdk-bin-8 as system java-vm allows me to compile dev-java/icedtea-web-1.8.8. If openjdk-11 is set as the system one it fails with sun.applet.AppletImageRef not found.
Comment 9 bagas 2022-04-29 05:41:35 UTC
Hello.
My system Linux 5.15.32-gentoo-r1 x86_64
Build error.

checking if sun.applet.AppletImageRef is available from sun.applet (module "java.desktop")... no
configure: error: sun.applet.AppletImageRef not found.

!!! Please attach the following file when seeking support:
!!! /mnt/tmp/portage/dev-java/icedtea-web-1.8.8/work/IcedTea-Web-icedtea-web-1.8.8/config.log
 * ERROR: dev-java/icedtea-web-1.8.8::gentoo failed (configure phase):
 *   econf failed


serv0 ~ # eselect java-vm show
Current system-vm
  openjdk-bin-8
Current user-vm
  (unset)
serv0 ~ # eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-bin-8
  [2]   openjdk-bin-11


qlist -Iv | egrep 'jdk|java'
app-eselect/eselect-java-0.4.3
dev-java/icedtea-bin-3.16.0
dev-java/icedtea-web-1.8.8
dev-java/java-config-2.3.1
dev-java/jnlp-api-6.0.18
dev-java/openjdk-bin-11.0.14_p9-r1
sys-apps/baselayout-java-0.1.0-r1
virtual/jdk-11-r2
virtual/jdk-1.8.0-r6

ls -al /etc/java-config-2/
итого 12
drwxr-xr-x  2 root root 4096 апр 29 08:35 .
drwxr-xr-x 77 root root 4096 апр 29 08:13 ..
lrwxrwxrwx  1 root root   27 апр 29 08:35 current-system-vm -> /usr/lib/jvm/openjdk-bin-11
-rw-r--r--  1 root root   61 июн 23  2020 virtuals
Comment 10 Larry the Git Cow gentoo-dev 2022-05-11 19:57:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47bad21c79c7886701279312dc6923538dd12fd2

commit 47bad21c79c7886701279312dc6923538dd12fd2
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2022-03-16 18:22:19 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-11 19:51:03 +0000

    dev-java/icedtea-web: EAPI 8, restrict build VM to 1.8
    
    - java-pkg-2.eclass is inherited to set up JDK 8 as the build VM
      properly, so a JAVA_HOME that points to JDK 8 is always passed to the
      ./configure script regardless of the eselect-java system VM setting.
    
    - The 'itw-modularjdk.args' file is now installed to an FHS-compliant
      path to allow the programs from this package to be run with JRE 9+.
      These programs are compatible with JRE 9+ under the condition that
      this file is installed.  The file is required for integration with the
      Java Platform Module System introduced in Java 9.
    
    - README.gentoo is updated to convey the USE="-headless-awt" requirement
      for any JRE used to run those programs.  This seems to be a
      runtime-only requirement, as using a JDK with this USE flag disabled
      would not cause any build errors during testing.
    
    Bug: https://bugs.gentoo.org/659174
    Bug: https://bugs.gentoo.org/698582
    Bug: https://bugs.gentoo.org/783027
    Bug: https://bugs.gentoo.org/831895
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/24610
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-java/icedtea-web/files/README.gentoo-r3      |  16 +++
 dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild | 118 +++++++++++++++++++++++
 2 files changed, 134 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2022-06-20 07:41:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d64b078ac431a26142e7bd0f81852492003cee

commit f6d64b078ac431a26142e7bd0f81852492003cee
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-06-20 05:21:53 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-06-20 06:49:26 +0000

    dev-java/icedtea-web: drop 1.8.4-r1, 1.8.8
    
    Closes: https://bugs.gentoo.org/586810
    Closes: https://bugs.gentoo.org/659174
    Closes: https://bugs.gentoo.org/698582
    Closes: https://bugs.gentoo.org/783027
    Closes: https://bugs.gentoo.org/831895
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/25989
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-java/icedtea-web/Manifest                    |  1 -
 dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild | 94 ------------------------
 dev-java/icedtea-web/icedtea-web-1.8.8.ebuild    | 94 ------------------------
 3 files changed, 189 deletions(-)