Closed Bug 161582 Opened 22 years ago Closed 22 years ago

Linux build won't load--bad link to libhpi.so

Categories

(JSS Graveyard :: Library, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jamie-bugzilla, Assigned: jamie-bugzilla)

Details

On linux, libjss3.so is getting linked to libhpi.so. libhpi is obsolete as of
jdk 1.4. Although it still exists, the directory where it resides is not
automatically loaded into the LD_LIBRARY_PATH by the JVM, so the loader can't
find it when it is trying to resolve the dependencies of libjss3.so.

It appears that we shouldn't be linking to libhpi at all, since we don't call
directly into it.

I experimented by removing this library from the link step, and libjss3 loaded
correctly under jdk 1.4.0. Then I tried the same build with jdk 1.3.1_02, and it
still worked.
Fixed on trunk and JSS_3_2_BRANCH.

Trunk: /mozilla/security/coreconf/jdk.mk 1.12 -> 1.13

JSS_3_2_BRANCH: 1.12 -> 1.12.12.1
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
I should note that this change caused JSS to hang badly when run with JDK 1.3.
strace reveals several SEGVs and then the whole thing just hangs. However, it
works fine with jdk 1.3.1_02. The JSS team has previously experienced bugs with
JDK 1.3.0, so I am going to assume it is a problem with the JVM. Anyone using
1.3 will have to upgrade at least to 1.3.1.
Target Milestone: --- → 3.2
You need to log in before you can comment on or make changes to this bug.