9 messages in net.java.dev.jna.usersRe: Pointer.initIDs UnsatisfiedLinkError
FromSent OnAttachments
Wayne MeissnerMay 9, 2007 10:10 pm 
Timothy WallMay 10, 2007 5:26 am 
Ricky Ng-AdamMay 10, 2007 6:40 am 
Timothy WallMay 10, 2007 6:55 am 
Wayne MeissnerMay 10, 2007 6:58 am 
Timothy WallMay 10, 2007 7:09 am 
Wayne MeissnerMay 10, 2007 7:46 am 
Timothy WallMay 10, 2007 8:37 am 
Wayne MeissnerMay 10, 2007 5:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Pointer.initIDs UnsatisfiedLinkErrorActions...
From:Timothy Wall (twal@dev.java.net)
Date:May 10, 2007 7:09:34 am
List:net.java.dev.jna.users

On May 10, 2007, at 9:59 AM, Wayne Meissner wrote:

How does dlopen react to the LD script? Any idea why it's there? I saw some chatter on an ubuntu list about the dlopen issue, and the developer stance was to leave it up to dlopen users to accommodate ubuntu.

dlopen() fails when trying to open it. I ended up giving up and adding a special case for Linux in NativeLibrary.java which maps "c" => "libc.so.6" - and if a library name was in the map, just use it instead of going through the whole mapLibraryName, findPath() chain. Its not exactly very elegant, nor foolproof, so I haven't checked it in anywhere yet.

Kind of expected that. I wonder if they've tricked out the dynamic loader to handle it.

As to why its there? No idea. Maybe its something to do with both 32bit and 64bit libraries on the same system, and some apps having / usr/lib/libc.so hardcoded in?

Except that some ubuntu systems don't seem to have libc.so at all. The whole 32/64 bit thing will require some tweaking (you don't want to have to define the same library twice; the 64-bitness should be transparent). I was under the (possibly mistaken) impression that the JDK/JRE is not widely available as full 64-bit.