MagLev/maglev — Issue #102: ffi issues (encountered when trying to use ffi-rzmq)
Author: sundbp
Created: 2011-11-08 22:31:58+00:00
State: open

1. FFI::Library::LIBC is not initialized to be the same as FFI::Platform::LIBC (it's not set to anything)

2. The return value of FFI::Library::ffi_lib() is of wrong type, seems to be [ ['/path/to/lib'], [FFi::CLibrary] ]. I think it should be [ FFI::DynamicLibrary ]. I think adding a wrapper class FFI::DynamicLibrary around FFI::CLibrary with the correct interface (see below) is a good idea.

3. FFI::CLibrary that is exposed instead of FFI::DynamicLibrary does not have methods #find_symbol, #find_function, #find_variable (and possibly others)