JNI applications fail because shared libraries cannot be found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uwsgi (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
The update from OpenJDK 6b20-1.
$ jScope
Load library java.lang.
java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at jScope.
at java.lang.
at java.lang.
at jScope.
Downgrading all packages created by the OpenJDK source package to 6b20-1.
libhpi.so is located in /usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openjdk-
ProcVersionSign
Uname: Linux 3.0.0-23-server x86_64
Architecture: amd64
Date: Fri Jul 20 11:11:48 2012
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: openjdk-6
description: | updated |
Changed in openjdk-6 (Ubuntu): | |
importance: | Undecided → High |
affects: | openjdk-6 (Ubuntu) → uwsgi (Ubuntu) |
Hi Nikolaus,
Sorry you're having troubles. Can you explain how you installed mdsplus? I am unable to reproduce this using Ubuntu 10.04 LTS and following the instructions for Ubuntu11 and stable in http:// www.mdsplus. org/index. php/Latest_ Ubuntu_ Packages. Also, attempts to do simpler things with JNI didn't show anything like this.
Can you strace the open() calls to see what path it's looking for for libhpi.so, like so:
strace -o /tmp/jScope.strace -f -e trace=open jScope
That will put the output of the strace in /tmp/jScope.strace.
Another possibility path for debugging would by to modify the jScope shell script to add '-verbose:jni' to the $java invocation, and capturing the output. That said, if I did not have libsybdb.so.5 installed, I got a similar error for libsybdb.so.5, and the verbose jni information did not give anything additionally relevant to it.
I also note that the path of libhpi.so did not change between the two versions of openjdk- 6-jre-headless.
That said, I note that http:// h1svr.anu. edu.au/ wiki/Hardware/ Computers/ prl45 reports a similar error finding libhpi.so on Ubuntu 12.04 LTS. Due to multiarch changes in the distribution, I wonder if the patch that was added to openjdk-6 to fix https:/ /bugs.launchpad .net/ubuntu/ +source/ openjdk- 6/+bug/ 737603 is causing problems here.
Thanks.