Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228715 - net-libs/xulrunner-1.9-r2 can' find Java includes
Summary: net-libs/xulrunner-1.9-r2 can' find Java includes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 10:54 UTC by Frank Hellmuth
Modified: 2008-06-29 15:37 UTC (History)
3 users (show)

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


Attachments
config.log (config.log,36.91 KB, text/plain)
2008-06-21 10:56 UTC, Frank Hellmuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Hellmuth 2008-06-21 10:54:48 UTC
Please note that this is not #228605, JAVA_HOME *is* set.

checking for dbus-glib-1 >= 0.60... yes
checking MOZ_DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking MOZ_DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
configure: error: The header jni.h was not found.  Set $JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/config.log
 *
 * ERROR: net-libs/xulrunner-1.9-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4999:  Called econf
 *               ebuild.sh, line  526:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/environment'.
 *
!!! Whchecking for dbus-glib-1 >= 0.60... yes
checking MOZ_DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking MOZ_DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
configure: error: The header jni.h was not found.  Set $JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/config.log
 *
 * ERROR: net-libs/xulrunner-1.9-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4999:  Called econf
 *               ebuild.sh, line  526:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
en you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Reproducible: Always




Portage 2.2_rc1 (default-linux/amd64/2007.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5-default x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-default-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Sat, 21 Jun 2008 08:03:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
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/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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS=""
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/nx /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi alsa amd64 apache2 arts audiofile avahi bash-completion berkdb bluetooth bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt css cups cvs dbus djvu dri dv dvb dvd dvdr dvdread emacs emboss encode examples exif fam fbcon ffmpeg fftw firefox flac fortran ftp gd gdbm gecko gif gimp ginac glut gmp gnuplot gnutls gphoto2 gpm gsl gstreamer gtk hal iconv icq idn ieee1394 imagemagick imap ipod ipv6 isdnlog jack java javascript jpeg kde kerberos ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate lirc lm_sensors lzo mad midi mikmod mime mmx mng mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp pam pcre pda pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime raw rdesktop readline recode reflection rss samba scanner sdl session slang sndfile snmp sockets sox spell spl sse sse2 ssl subversion svg syslog tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vcd vnc vorbis wifi wmf wxwindows xcomposite xemacs xine xinerama xml xorg xosd xpm xscreensaver xv yahoo zlib" 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 mulaw multi null plug rate route share shm softvol" 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 ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Frank Hellmuth 2008-06-21 10:56:23 UTC
Created attachment 157885 [details]
config.log
Comment 2 Frank Hellmuth 2008-06-21 11:00:22 UTC
Ooops, sorry for the mess! My middle mouse button seems to bounce when copying the error message, so here it is again:


checking for dbus-glib-1 >= 0.60... yes
checking MOZ_DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking MOZ_DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
configure: error: The header jni.h was not found.  Set $JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/config.log
 *
 * ERROR: net-libs/xulrunner-1.9-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4999:  Called econf
 *               ebuild.sh, line  526:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-21 11:25:28 UTC
Your jdk is!?
Comment 4 Frank Hellmuth 2008-06-21 11:35:28 UTC
# java-config --list-available-vms
The following VMs are available for generation-2:
*)      Sun 32bit JRE 1.6.0.06 [emul-linux-x86-java-1.6]
2)      Sun JDK 1.6.0.06 [sun-jdk-1.6]
3)      Sun JRE 1.6.0.06 [sun-jre-bin-1.6]

I hope this helps you, since I'm mo java expert. Please tell me if you need more information!
Comment 5 Frank Hellmuth 2008-06-21 19:09:37 UTC
Switching to Sun JDK 1.6.0.06 [sun-jdk-1.6] made xulrunner compile fine.
Comment 6 hiyuh 2008-06-22 14:18:55 UTC
(In reply to comment #5)
> Switching to Sun JDK 1.6.0.06 [sun-jdk-1.6] made xulrunner compile fine.

Same here on ~ppc.
and ~ppc has no sun jdk.
Comment 7 David Ripton 2008-06-27 16:35:28 UTC
I had this problem, and worked around it.

I had sun-jdk 1.5.0.15-r1 and 1.6.0.06 installed (only, no other JVMs), with the latter set as my user and system JVM in java-config.  The error message from xulrunner said that my JAVA_HOME was set to 1.4.2.16, which was broken since I didn't have that version installed.  (My JAVA_HOME was actually set to 1.6.0.06, but I think java-config actually has separate JAVA_HOME for "Generation 1" and "Generation 2", and it's possible the xulrunner build was insisting on the old version.)  My workaround was to install sun-jdk-1.4.2.17.  Then "emerge xulrunner" worked.
Comment 8 Alistair Bush (RETIRED) gentoo-dev 2008-06-28 11:59:05 UTC
Adding java to cc
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2008-06-29 15:37:33 UTC
The problem is that java-pkg-opt-2_pkg_setup is not called in pkg_setup. I fixed that with ack from armin76.