Summary: | net-libs/xulrunner-1.9-r2 can' find Java includes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frank Hellmuth <fhellmuth> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cruzki123, hiyuh.root, java |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | config.log |
Description
Frank Hellmuth
2008-06-21 10:54:48 UTC
Created attachment 157885 [details]
config.log
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 Your jdk is!? # 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! Switching to Sun JDK 1.6.0.06 [sun-jdk-1.6] made xulrunner compile fine. (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. 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. Adding java to cc The problem is that java-pkg-opt-2_pkg_setup is not called in pkg_setup. I fixed that with ack from armin76. |