chuckremes / ffi-rzmq

FFI bindings for ZeroMQ so the library can be used under JRuby and other FFI-compliant ruby runtimes
242 stars 62 forks source link

libzmq 4.0.3 incompatible with ffi-rzmq #107

Closed peterloron closed 10 years ago

peterloron commented 10 years ago

I have a Ubuntu 13.10 x64 machine on which I have built ZMQ 4.0.3, and installed JRuby 1.7.9 and MRI 2.0.0 using RVM. I have installed the ffi-rzmq and zmqmachine gems.

Regardless of which ruby I use, I get the following error when trying to use ffi-rzmq:

ploron@ploron-VirtualBox> ruby -v
jruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64]
 ploron@ploron-VirtualBox> irb
irb(main):001:0> require 'ffi-rzmq'
LoadError: The libzmq version 4.0.3 is incompatible with ffi-rzmq.
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.3/lib/ffi-rzmq/libzmq.rb:280:in `ZMQ'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.3/lib/ffi-rzmq/libzmq.rb:1:in `(root)'
        from org/jruby/RubyKernel.java:1083:in `require'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
        from org/jruby/RubyArray.java:1613:in `each'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.3/lib/ffi-rzmq.rb:71:in `(root)'
        from org/jruby/RubyKernel.java:1083:in `require'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.3/lib/ffi-rzmq.rb:70:in `(root)'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
        from org/jruby/RubyKernel.java:1119:in `eval'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135:in `require'
        from (irb):1:in `evaluate'
        from org/jruby/RubyKernel.java:1519:in `loop'
        from org/jruby/RubyKernel.java:1282:in `catch'
        from org/jruby/RubyKernel.java:1282:in `catch'
        from /home/ploron/.rvm/rubies/jruby-1.7.9/bin/irb:13:in `(root)'irb(main):002:0>
minrk commented 10 years ago

This is fixed in master, there just hasn't been a release yet with the fix.

caiofilipini commented 10 years ago

@minrk Any estimates on when there will be a new release?

mjio commented 10 years ago

+1 for a new release.

rkatti commented 10 years ago

+2

chuckremes commented 10 years ago

Okay, I’ll cut a release this week.

On Jan 7, 2014, at 4:26 PM, Raghu Katti notifications@github.com wrote:

+2

— Reply to this email directly or view it on GitHub.

caiofilipini commented 10 years ago

Thank you! :+1:

chuckremes commented 10 years ago

Version 2.0.0 was just pushed to rubygems. Please open issues for any problems you encounter.

Thanks for your patience.

On Jan 7, 2014, at 5:15 PM, Caio Filipini notifications@github.com wrote:

Thank you!

— Reply to this email directly or view it on GitHub.

mjio commented 10 years ago

Thanks @chuckremes