Subject:
Re: [ruby-ffi] Re: Multiple libraries included via dlopen()?
From:
Wayne Meissner
Date:
12/16/10 5:38 PM
To:
ruby-ffi@googlegroups.com

On 17 December 2010 09:07, mjmac <mjmac42@gmail.com> wrote:

>
> So, it looks like the attach_function finds the symbol in libslurm.so
> OK, but this doesn't help with loading auth_munge.so.  Is this a
> namespace problem of some sort?  I'm shaky on the details of what's
> going on at this level, so I could be on the wrong track.

Try specifying the library flags before calling ffi_lib
e.g.

  ffi_lib_flags :global, :lazy
  ffi_lib 'slurm'

By default, FFI loads libraries as :lazy, :local so symbols are not
exported into the global namespace.