Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411443 - media-libs/libcaca-0.99_beta18 - java-pkg_newjar java/libjava.jar fails
Summary: media-libs/libcaca-0.99_beta18 - java-pkg_newjar java/libjava.jar fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 07:49 UTC by Daniel Troeder
Modified: 2014-07-20 15:01 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge--info,6.47 KB, text/plain)
2012-04-10 07:50 UTC, Daniel Troeder
Details
build log (media-libs:libcaca-0.99_beta18:20120410-074751.log,119.20 KB, text/plain)
2012-04-10 07:51 UTC, Daniel Troeder
Details
emerge --info =libcaca-0.99_beta18 (emerge_--info_=libcaca-0.99_beta18.txt,7.99 KB, text/plain)
2013-08-13 07:50 UTC, Daniel Troeder
Details
/var/log/portage/media-libs:libcaca-0.99_beta18:20130813-073845.log (media-libs:libcaca-0.99_beta18:20130813-073845.log,133.45 KB, text/plain)
2013-08-13 07:51 UTC, Daniel Troeder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Troeder 2012-04-10 07:49:30 UTC
Compilation of media-libs/libcaca-0.99_beta18 fails in stall phase with

java/libjava.jar does not exist or is not a file!

Reproducible: Always

Steps to Reproduce:
1. emerge =media-libs/libcaca-0.99_beta18
Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds

Build log and emerge--info will be attached.
Comment 1 Daniel Troeder 2012-04-10 07:50:06 UTC
Created attachment 308369 [details]
emerge --info
Comment 2 Daniel Troeder 2012-04-10 07:51:48 UTC
Created attachment 308371 [details]
build log
Comment 3 Robert Cabrera 2012-04-29 03:16:12 UTC
Same issue on my ~amd64 laptop

Emerge of media-libs/libcaca-0.99_beta18 fails at following:

make[2]: Entering directory `/var/tmp/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
 /bin/mkdir -p '/var/tmp/portage/media-libs/libcaca-0.99_beta18/image//usr/bin'
 /usr/bin/install -c caca-config '/var/tmp/portage/media-libs/libcaca-0.99_beta18/image//usr/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/var/tmp/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
make[1]: Leaving directory `/var/tmp/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
 * ERROR: media-libs/libcaca-0.99_beta18 failed (install phase):
 *   java/libjava.jar does not exist or is not a file!
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_install
 *   environment, line 7567:  Called java-pkg_newjar 'java/libjava.jar'
 *   environment, line 4524:  Called die
 * The specific snippet of code:
 *       [[ ! -f ${original_jar} ]] && die "${original_jar} does not exist or is not a file!";
 * 
 * If you need support, post the output of 'emerge --info =media-libs/libcaca-0.99_beta18',
 * the complete build log and the output of 'emerge -pqv =media-libs/libcaca-0.99_beta18'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info
Comment 4 Robert Cabrera 2012-04-29 03:17:14 UTC
My emerge --info:
Portage 2.2.0_alpha101 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r1, 3.3.2-pf x86_64)
=================================================================
System uname: Linux-3.3.2-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 29 Apr 2012 01:45:01 +0000
app-shells/bash:          4.2_p24-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3::my_local_overlay
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo sunrise sabayon my_local_overlay
Installed sets: @gst-plugins
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="!* /etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="!* /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr analitza ass attica avahi berkdb bidi bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr chm cli consolekit contrast corefonts cracklib crypt cups curl cxx dbus declarative designer-plugin desktopglobe dirac djvu dri dts dv dvd dvdr ebook emboss emovix encode exif faac faad fam fbcondecor fbsplash ffmpeg firefox fits flac fontconfig fortran g3dvl gdbm gdu gif gimp glibc-omitfp gnutls gphoto2 groupwise gstreamer hdri http httpd iconv ieee1394 imagemagick imlib indi ipv6 java javascript jbig jpeg jpeg2k kde kipi lame latex lcms ldap lensfun libass libcaca libnotify libsamplerate live lm_sensors lzma lzo mad matroska mdnsresponder-compat meanwhile mjpeg mms mmx mng modplug modules mp3 mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly nsplugin ntp nvidia offensive offlinehelp ogg openal opencl openexr opengl openmp oscar otr pam pango pcre pdf phonon plasma png policykit postproc ppds pppd ps python3 qalculate qt3support qt4 quicktime qwt rdesktop readline rtsp samba scanner schroedinger scim sdl semantic-desktop session skype smp sms sndfile solver soup sox spell sqlite sse sse2 ssl ssse3 startup-notification svg symlink sysfs taglib tcpd templates theora thumbnail tidy tiff truetype twolame udev unicode upnp usb vcd vcdx vlm vnc vorbis vpx wavpack webpresence wicd wifi winpopup wmf wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Charles Svitlik 2012-07-21 05:39:03 UTC
Also getting this. Same errors as above.
Comment 6 Cody Harris 2012-12-30 03:36:17 UTC
Me too

Portage 2.1.11.38 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.16.0, 3.7.1-gentoo x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.2
Timestamp of tree: Sat, 29 Dec 2012 19:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula IBM-J1.6 dlj-1.1 AdobeFlash-10.1 googleearth BCS PUEL cadsoft google-talkplugin Oracle-BCLA-JavaSE AdobeFlash-10.3 Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi ais alsa amd64 amr apache2 apng aspell atmo avahi avi bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdda cddai cddb cli consolekit corefonts cracklib crypt cups curl cxx dbus device-mapper dirac dlz dri dts dvd encode esd exif extras faac faad fbcondecor festival ffmpeg fluidsynth fontconfig foomaticdb fortran fuse gd gdbm gdu ggi gif gimp git glut gme gnutls gpg gphoto2 gpm gstreamer gtalk gtk gui hfs http httpd iconv icu id3tag imap introspection ios iphone ipod jabber java jingle jpeg jpeg2k kate kde kdrive laptop latex libass libcaca libnotify libproxy libtiger libv4l libv4l2 lirc live lm_sensors lua matroska mbrola mdnsresponder-compat meanwhile melt midi mime mmap mmx mng mod modplug modules mp2 mp3 mpeg mplayer msn mtp mudflap multilib musepack ncurses nls nptl nsplugin ntfs nvidia openal opencl opengl openmp pam pcre pdf pdo php png policykit ppds pppd projectm pulseaudio pvr qt-faststart qt3support qt4 quicktime rdesktop readline remoteosd rtsp samba sasl schroedinger sdl sdl-image session shine shout skins smpeg snmp speex spell sql sqlite sqlite3 sse sse2 ssh ssl stream subversion svg taglib tcpd theora threads tools truetype unicode upnp usb v4l v4l2 vaapi vcdx video vim-syntax vlm vnc webkit wifi x264 xcomposite xdmcp xml xmp xosd xpm xv zeroconf zlib zvbi" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 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" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Tim Harder gentoo-dev 2013-08-13 06:10:56 UTC
I can't reproduce this. If the configure output shows that it can't find the jni.h file, perhaps try resetting the system java vm with java-config or eselect.
Comment 8 Daniel Troeder 2013-08-13 07:50:06 UTC
I ran
# java-config -S icedtea-bin-7

and could sucessfully compile 0.99_beta17:
# USE=java emerge media-libs/libcaca

Then I unmasked 0.99_beta18 and tried the same, this time I got:

# USE=java emerge -pqv '=media-libs/libcaca-0.99_beta18::gentoo'

[ebuild     U ] media-libs/libcaca-0.99_beta18 [0.99_beta17] USE="X cxx imlib java ncurses opengl truetype -doc -mono -python% -ruby -slang -static-libs"

[..]
/etc/java-config-2/current-system-vm/bin/javac -source 1.5 -target 1.5 -d . ./org/zoy/caca/Event.java ./org/zoy/caca/Display.java ./org/zoy/caca/NativeObject.java ./org/zoy/caca/Canvas.java ./org/zoy/caca/CacaException.java ./org/zoy/caca/Attribute.java ./org/zoy/caca/Font.java ./org/zoy/caca/TimeoutException.java ./org/zoy/caca/Caca.java ./org/zoy/caca/Color.java ./org/zoy/caca/CacaObject.java ./org/zoy/caca/Dither.java
1 warning
/usr/bin/javah -d . -classpath . org.zoy.caca.Font
/usr/bin/jar -cf libjava.jar org
/usr/bin/javah -d . -classpath . org.zoy.caca.Caca
/usr/bin/javah -d . -classpath . org.zoy.caca.Canvas
/usr/bin/javah -d . -classpath . org.zoy.caca.Display
warning: [options] bootstrap class path not set in conjunction with -source 1.5
Error: cannot access org.zoy.caca.NativeObject
  bad class file: ./org/zoy/caca/NativeObject.class
    class file contains wrong class: org.zoy.caca.Canvas
    Please remove or make sure it appears in the correct subdirectory of the classpath.
make[2]: *** [org_zoy_caca_Canvas.h] Error 1
make[2]: *** Waiting for unfinished jobs....
1 warning
/usr/bin/jar -cf libjava.jar org
make[2]: Leaving directory `/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
make: *** [all] Error 2
 * ERROR: media-libs/libcaca-0.99_beta18::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/libcaca-0.99_beta18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libcaca-0.99_beta18::gentoo'`.
 * The complete build log is located at '/var/log/portage/media-libs:libcaca-0.99_beta18:20130813-073845.log'.
 * For convenience, a symlink to the build log is located at '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/temp/build.log'.
 * The ebuild environment file is located at '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/temp/environment'.
 * Working directory: '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
 * S: '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18/work/libcaca-0.99.beta18'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info =libcaca-0.99_beta18

>>> Failed to emerge media-libs/libcaca-0.99_beta18, Log file:
>>>  '/var/log/portage/media-libs:libcaca-0.99_beta18:20130813-073845.log'

With USE=-java it compiles sucessfully.
Comment 9 Daniel Troeder 2013-08-13 07:50:36 UTC
Created attachment 355844 [details]
emerge --info =libcaca-0.99_beta18
Comment 10 Daniel Troeder 2013-08-13 07:51:04 UTC
Created attachment 355846 [details]
/var/log/portage/media-libs:libcaca-0.99_beta18:20130813-073845.log
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-08-13 07:53:53 UTC
ditto, _beta17 and java is fine but the build-sys changed and _beta18 ebuild was never updated accordingly.
Comment 12 Daniel Troeder 2013-08-13 08:49:40 UTC
Thank you: media-libs/libcaca-0.99_beta18-r1 builds for me with USE=java :)
Comment 13 Juergen Rose 2013-08-13 10:01:56 UTC
Maybe it is a parallel make problem, see also Bug 480864.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2013-08-13 10:09:04 UTC
For some reason the eselect java-vm module failed to set the -I flags for location the jni.h as radhermit suggested on Comment #7

# rm -rf /etc/java-config-2
# emerge -C icedtea...whatever eselect-java java-config java-config-wrapper
# emerge -1 icedtea...whatever
# java-config-2 --set-system-vm icedtea-bin-7
# env-update
# source /etc/profile

This worked for me.  Why? I have no idea, but eselecting the VM did nothing without first pruning the /etc/java-config-2 and I've never touch that directory myself.
But obviously this is not libcaca issue.
Comment 15 renato gallo 2014-07-20 15:01:25 UTC
same error, selecting the vm doesn't solve it for me


emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.17, 3.15.5-gentoo x86_64)
=================================================================
System uname: Linux-3.15.5-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-2.2
KiB Mem:     4051052 total,    496772 free
KiB Swap:    6297444 total,   2817912 free
Timestamp of tree: Wed, 16 Jul 2014 03:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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=""
USE="X a52 aac aalib acl acpi alsa amd64 atmo berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdr chromaprint cli colord cracklib crypt cups cxx dbus dirac dri dts dvb dvd dvdr eds egl emboss encode evo exif faad fam ffmpeg firefox flac fluidsynth fontconfig fortran gbm gdbm gif gme gnome gnome-keyring gnome-online-accounts gpm growl gstreamer gtk httpd iconv introspection ipv6 java jpeg kate lcms ldap libass libcaca libkms libnotify libsamplerate libsecret libtar libtiger linsys lirc live lua mad matroska minizip mmx mng modplug modules mp3 mp4 mpeg mtp multilib musepack nautilus ncurses nls nptl ogg omxil opencv opengl openmp optimisememory pam pango pcre pdf png policykit ppds projectm pulseaudio qt3support qt4 rdp readline rtsp samba schroedinger sdl sdl-image session sftp shout sid skins socialweb speex spell sse sse2 ssl startup-notification svg systemd taglib tcpd theora tiff tremor truetype twolame udev udisks unicode upnp upower usb v4l vaapi vcdx vlm vorbis wma-fixed wxwidgets x264 xa xcb xml xv xvid zlib zvbi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON