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 -> 126.96.36.199
Status: NEW → RESOLVED
Last Resolved: 16 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.
You need to log in before you can comment on or make changes to this bug.