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

Summary: issues with JNI support on ARM
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: java-1.7.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: ahughes, dbhole, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-30 15:52:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    

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