Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 869517 - issues with JNI support on ARM
Summary: issues with JNI support on ARM
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.7.0-openjdk
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
 
Reported: 2012-10-24 07:14 UTC by Peter Robinson
Modified: 2012-10-30 15:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-30 15:52:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Robinson 2012-10-24 07:14:58 UTC
I'm seeing issues with compilation of packages which require JNI support. 

One example is libgda:

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=1217160

In configure we get the following error:
checking java compiler version... JAVA version used is Sun JRE 1.7 
checking for Java environment... in /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre
checking for /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/include/jni.h... no
checking for /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/jni.h... no
checking for /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/../include/jni.h... yes
checking for /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/../include/./jni_md.h... no
checking for /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/../include/linux/jni_md.h... yes
checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.

We're not getting a different set of deps than x86 but it looks like the openjdk are slightly different from a basic grep:

$ rpm -qlp java-1.7.0-openjdk-devel-1.7.0.9-2.3.3.fc17.1.x86_64.rpm | grep jni
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/include/jni.h
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/include/linux/jni_md.h
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/tapset/hotspot_jni-1.7.0.stp
/usr/share/systemtap/tapset/x86_64/hotspot_jni-1.7.0.stp

$ rpm -qlp java-1.7.0-openjdk-devel-1.7.0.6-2.3.1.fc17.2.armv7hl.rpm | grep jni
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/include/jni.h
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/include/linux/jni_md.h

Comment 1 Andrew John Hughes 2012-10-30 13:16:57 UTC
These differences are benign; the ARM version uses an older version of IcedTea which supports the ARM port (hence the 6/9 difference) and doesn't yet have SystemTap support (so the .stp files are missing).

The issue here appears to lie in whatever JNI test is actually being run.  Attaching the config.log might be helpful.

Comment 2 Peter Robinson 2012-10-30 15:52:37 UTC
You are correct and it's now fixed. Thanks


Note You need to log in before you can comment on or make changes to this bug.