JNI unable to find libpam.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libjna-java (Debian) |
Fix Released
|
Unknown
|
|||
libjna-java (Ubuntu) |
Fix Released
|
High
|
James Page | ||
openjdk-6 (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
I'm currently packaging Jenkins for Ubuntu; this application has native authentication integration through the use of PAM. This was working fine i.e. the java native interface dispatcher was able to find libpam.so in /lib and all was happy.
I've just updated my test system and native authentication no longer works; the JNI dispatcher can't find the library. I have done a bit of digging and it looks like libpam.so.* is installed to /lib/i386-linux-gnu instead of /lib (as on Maverick and possibly earlier Natty releases?). This directory is not on the java.library.path by default which I suspect may be the issue (see below for default java library path):
/usr/lib/
So I'm not sure whether this is a bug in pam or openjdk but I guess it could be either.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libpam0g 1.1.2-2ubuntu4
ProcVersionSign
Uname: Linux 2.6.38-
Architecture: i386
Date: Fri Mar 18 14:54:45 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Alpha i386 (20110301.4)
ProcEnviron:
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: pam
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- James Page: Needs Resubmitting
- Steve Langasek: Needs Fixing
-
Diff: 5236 lines (+110/-4974)15 files modified.pc/.version (+0/-1)
.pc/01-nbproject.patch/build.xml (+0/-645)
.pc/02-builddir.patch/build.xml (+0/-643)
.pc/03-dynlink-and-cflags.patch/build.xml (+0/-643)
.pc/04-load-native-code-from-fs.patch/src/com/sun/jna/Native.java (+0/-1441)
.pc/05-support-gnu-kfreebsd.patch/build.xml (+0/-647)
.pc/05-support-gnu-kfreebsd.patch/native/Makefile (+0/-275)
.pc/06-remove-gjdoc-inexistent-options.patch/build.xml (+0/-650)
.pc/applied-patches (+0/-6)
build.xml (+15/-19)
debian/changelog (+8/-0)
debian/patches/07-multiarch-support.patch (+86/-0)
debian/patches/series (+1/-0)
native/Makefile (+0/-1)
src/com/sun/jna/Native.java (+0/-3)
- Ubuntu branches: Pending requested
-
Diff: 39 lines (+8/-2)3 files modifieddebian/changelog (+6/-0)
debian/patches/07-multiarch-support.patch (+1/-1)
src/com/sun/jna/NativeLibrary.java (+1/-1)
Changed in openjdk-6 (Ubuntu): | |
milestone: | none → ubuntu-11.04-beta-1 |
tags: | added: patch |
Changed in libjna-java (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → James Page (james-page) |
Changed in libjna-java (Debian): | |
status: | Unknown → Fix Released |
I'm guessing that this is related to bug 733501.