[Bug 737603] Re: JNI unable to find libpam.so

2011-08-10 Thread Bug Watch Updater
** Changed in: libjna-java (Debian) Status: Unknown = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so To manage notifications about

[Bug 737603] Re: JNI unable to find libpam.so

2011-04-07 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/openjdk-6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 737603] Re: JNI unable to find libpam.so

2011-04-02 Thread Simon McVittie
** Bug watch added: Debian Bug tracker #620122 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620122 ** Also affects: libjna-java (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620122 Importance: Unknown Status: Unknown -- You received this bug notification

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-30 Thread James Page
JNA fixed submitted back to upstream project - http://java.net/jira/browse/JNA-184 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Launchpad Bug Tracker
This bug was fixed in the package libjna-java - 3.2.4-2ubuntu1 --- libjna-java (3.2.4-2ubuntu1) natty; urgency=low * Fix native library search to be multi-arch compatible (LP: #737603): - debian/patches/07-multiarch-support.patch : figure out platform and form search path

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Matthias Klose
mulitarch paths on powerpc and ppc64 are wrong: $ dpkg-architecture -appc64 -qDEB_HOST_MULTIARCH powerpc64-linux-gnu $ dpkg-architecture -apowerpc -qDEB_HOST_MULTIARCH powerpc-linux-gnu ** Changed in: libjna-java (Ubuntu) Status: Fix Released = Confirmed -- You received this bug

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/libjna-java -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Launchpad Bug Tracker
** Branch linked: lp:~james-page/ubuntu/natty/libjna-java/multiarch- fix-2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Launchpad Bug Tracker
** Branch linked: lp:~james-page/ubuntu/natty/libjna-java/multiarch- fix-2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-28 Thread Launchpad Bug Tracker
This bug was fixed in the package libjna-java - 3.2.4-2ubuntu2 --- libjna-java (3.2.4-2ubuntu2) natty; urgency=low * Fix incorrect generation of PowerPC multi-arch paths (LP: #737603). -- James Page james.p...@canonical.com Mon, 28 Mar 2011 09:27:48 +0100 ** Changed in:

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-25 Thread Launchpad Bug Tracker
This bug was fixed in the package openjdk-6 - 6b22-1.10.1~pre1-0ubuntu1 --- openjdk-6 (6b22-1.10.1~pre1-0ubuntu1) natty; urgency=low * Update from the IcedTea6-1.10 release branch (20110325). * Add multiarch directories to the default library path. LP: #737603. -- Matthias Klose

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-23 Thread James Page
Steve OK - my error on libraries moving out into -dev - they where actually in /lib32 (see output from maverick system below) jamespage@hendrix:~/src/natty/jna/libjna-java-multiarch-fix/src/com/sun/jna$ ldconfig -p | grep libpam.so libpam.so.0 (libc6,x86-64) = /lib/libpam.so.0

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-23 Thread James Page
Small Java utility to test JDK native library loading: javac NativeTest.java java NativeTest libname e.g. java NativeTest pam Outputs java.library.path and sun.boot.library.path and the mapping that the jvm has done interms of libname to actual native library name. ** Attachment added:

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-23 Thread James Page
Steve I also spent some time looking at the System.loadLibrary method provided by the JVM to load libraries (see attached NativeTest.java). Basically this call will only accept an unqualified library name - 'pam' for example - which it then maps into a versionless 'libpam.so' library name -

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-22 Thread James Page
** Changed in: libjna-java (Ubuntu) Status: New = Triaged ** Changed in: libjna-java (Ubuntu) Importance: Undecided = High ** Changed in: libjna-java (Ubuntu) Assignee: (unassigned) = James Page (james-page) -- You received this bug notification because you are a member of

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-22 Thread James Page
libjna-java has to deal with a number of oddities including unversioned library names etc.. so I will write a patch to correctly form the search path for multiarch enabled systems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-22 Thread Launchpad Bug Tracker
** Branch linked: lp:~james-page/ubuntu/natty/libjna-java/multiarch-fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-22 Thread James Page
Matthias I'm not sure of the impact of this issue on openjdk-6; its definitely possible that applications that rely on JNI integration might not work after the multi-arch change as some of the unversioned (libpam.so for example) native libraries have moved out into -dev packages. The issue I

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-22 Thread Steve Langasek
Looking at the code in libjna-java, it appears that it already supports fallback to the system path. If the caller is fixed to (properly) look for libpam.so.0 instead of libpam.so, does that solve the issue? its definitely possible that applications that rely on JNI integration might not work

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-21 Thread James Page
Steve So I tried out the patch (took some time to build ppa:james-page/junk) and did some more digging when it did not appear to work. I managed to capture a stacktrace when the issue occured: java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-21 Thread James Page
** Also affects: libjna-java (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-21 Thread James Page
This is odd in itself as although libjna-java does munge a library path together, if the library is not found in the search path it should just let dlopen do it thing. This does not appear to be working. I'm going to put a fresh pair of eyes on this tomorrow morning -- You received this

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-21 Thread Steve Langasek
Attaching the diff between the previous jtreg-summary log in the package, and the one resulting from a local test build on my system with the patch applied. I'm not sure how to interpret this - the number of passed tests has increased, but there are now two errors which weren't there before.

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-20 Thread Steve Langasek
Can you give me a test case that lets me reproduce the failure? I've found where DEFAULT_LIBPATH is defined in openjdk/hotspot/src/os/linux/vm/os_linux.cpp, but as I said I would really like to fix this to use the system library path instead of its own copy. but there are an awful lot of calls

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-20 Thread Steve Langasek
Attached is a tentative patch for this issue (completely untested). Removing /lib:/usr/lib from the DEFAULT_LIBPATH is not strictly necessary, although leaving them here means they'll be searched twice (once explicitly, once as part of ld.so's default search path) and we don't really want them to

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-20 Thread Steve Langasek
Oops, debdiff doesn't work so well, this needs to be applied after the default-libpath patch. Updated patch attached. ** Patch added: openjdk-6-737603.diff https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/737603/+attachment/1922570/+files/openjdk-6-737603.diff -- You received this

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-20 Thread Steve Langasek
And there was a missing space in the patch, so it didn't build either. Here's an updated patch; I guess I'll have one more update once it manages to build and I figure out what doesn't work about it at runtime. ;) ** Patch added: openjdk-6-737603.diff

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-20 Thread Brian Murray
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-18 Thread James Page
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-18 Thread James Page
I'm guessing that this is related to bug 733501. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-18 Thread Steve Langasek
Hi James, I'm guessing that this is related to bug 733501. Yes, this is related to 733501. libpam has moved paths to the multiarch-compliant directory, and openjdk needs to be updated to know about these directories. In general it would be nice if openjdk weren't hard-coding its own path...

[Bug 737603] Re: JNI unable to find libpam.so

2011-03-18 Thread Steve Langasek
** Changed in: openjdk-6 (Ubuntu) Milestone: None = ubuntu-11.04-beta-1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737603 Title: JNI unable to find libpam.so -- ubuntu-bugs mailing list