Hi,
I'm trying to use my fork of ffi-rzmq on maglev using ffi and am having some problems.
Link to gem:
https://github.com/sundbp/ffi-rzmqGetting errors in lib/ffi-rzmq/libc.rb:
1. FFI::Library::LIBC is not initialized. Can work around that easily by setting it explicitly to '/lib/x86_64-linux-gnu/libc.so.6'
2. ffi_lib() doesn't seem to return an object similar to what I expect. What I get is:
[["/lib/x86_64-linux-gnu/libc.so.6"], [#<FFI::CLibrary:0x736a901 @_st_name="/lib/x86_64-linux-gnu/libc.so.6" @_st_expandedName=nil @_st_lastError=nil @_st_loadAttempted=nil @_st_onLoadBlock=nil>]]
what I expect is an Array of FFI::DynamicLibrary
the part of the code doing ffi_lib(...).first in this case gets an array of length 1 with a string in it.
Any ideas on the ffi_lib() issue?
P.S. ffi related code confirmed to be working fine on jruby 1.6.5