4 messages in net.java.dev.jna.usersRe: [jna-users] loading a native libr...
FromSent OnAttachments
Asaf YaffeMar 17, 2009 10:01 am 
Timothy WallMar 18, 2009 6:16 am 
Asaf YaffeMar 18, 2009 7:56 am 
Timothy WallMar 18, 2009 8:25 am 
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: [jna-users] loading a native library globally (RTLD_GLOBAL)Actions...
From:Asaf Yaffe (java@gmail.com)
Date:Mar 18, 2009 7:56:36 am
List:net.java.dev.jna.users

thanks! any change there'll be an API to control these flags? what i need it RTLD_GLOBAL...

cheers, asaf :-)

On Wed, Mar 18, 2009 at 3:16 PM, Timothy Wall <twal@dev.java.net>wrote:

JNA uses dlopen(name, RTLD_LAZY)

On Mar 17, 2009, at 1:01 PM, Asaf Yaffe wrote:

hi,

i've been trying to apply JNA to one of our legacy .so's .

this main.so is loading, in turn, other.so and the later is using symbols of the former. the way to do that, in the calling c code, was to load main.so globally (RTLD_GLOBAL), so the main's symbols are available to other's code.

so, i've tries to load one.so through JNA. it complains that dlopen() with other.so can't find one of main's symbol. well, it makes sense, since main.so wans't loaded into the JVM *globally*. is there a way to control that? couldn't find a place to pass that flag...

btw - does JNA uses RTLD_LAZY too?

thanks, asaf :-)