Subject: [ruby-ffi] Re: ffi 1.0.10 testing |
From: rohit |
Date: 10/20/11 12:02 PM |
To: ruby-ffi |
Hi, Upgrading to 1.0.10 breaks JRuby/Rails app. Ubuntu 10.04 Rails 3.0.9 JRuby 1.6.4 in 1.8.7 mode Any idea what might be causing this? Thanks, Rohit NameError: uninitialized constant FFI const_missing at org/jruby/RubyModule.java:2569 (root) at /home/rohit/.rvm/rubies/jruby-1.6.4/lib/ruby/ site_ruby/shared/syslog.rb:18 require at org/jruby/RubyKernel.java:1038 require? at /home/rohit/.rvm/rubies/jruby-1.6.4/lib/ruby/ site_ruby/shared/syslog.rb:122 (root) at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ logging-1.6.1/lib/logging.rb:13 require at org/jruby/RubyKernel.java:1038 require at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ logging-1.6.1/lib/logging.rb:68 each at org/jruby/RubyArray.java:1603 require at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ bundler-1.0.21/lib/bundler/runtime.rb:66 each at org/jruby/RubyArray.java:1603 require at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ bundler-1.0.21/lib/bundler/runtime.rb:55 require at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ bundler-1.0.21/lib/bundler.rb:122 (root) at /home/rohit/projects/vulcan/reporting/config/ application.rb:14 require at org/jruby/RubyKernel.java:1038 (root) at /home/rohit/projects/vulcan/reporting/config/ application.rb:28 tap at org/jruby/RubyKernel.java:1803 (root) at /home/rohit/.rvm/gems/jruby-1.6.4/gems/ railties-3.0.9/lib/rails/commands.rb:27 require at org/jruby/RubyKernel.java:1038 (root) at script/rails:10 On Aug 23, 6:29 am, Wayne Meissner <wmeiss...@gmail.com> wrote:
Can people please test ffi-master on your favourite ruby version? Things fixed since 1.0.9: - should now work on 1.9.3 (ruby_thread_has_gvl_p no longer exported) - installs on non-MRI rubies - compiles using VC++ toolchain on win32 (Charlie Savage) - a lot of API documentation (Kim Burgestrand) - other win32/win64 mingw fixes (Luis Lavena) - better handling of linker scripts on linux (aniederl) - ext/ffi_c/StructLayout.c fixes (Chikanaga Tomoyuki) - Size lookup for MemoryPointer.new and Buffer.new type (e.g. :int, :long, etc) parameters now much faster. - FFI::Buffer.new for small sizes (<= 8 bytes) types now approx 30% faster. I especially would like people to test on 1.9.3-preview1 (or later 1.9.3 builds/source), since I want the release to work out-of-the-box on 1.9.3.