FFI now demanding that ffi_lib be called
----------------------------------------

                 Key: JRUBY-4855
                 URL: http://jira.codehaus.org/browse/JRUBY-4855
             Project: JRuby
          Issue Type: Bug
          Components: Standard Library
    Affects Versions: JRuby 1.5.1
         Environment: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 
f3a3480) (OpenJDK Client VM 1.6.0_18) [i386-java]
Ubuntu 10
            Reporter: Daniel Berger
            Assignee: Thomas E Enebo


The following script works fine with 1.4.x, but bombs with 1.5.x:

{noformat}
# simple.rb
require 'ffi'

module Alpha
  class Beta
    extend FFI::Library

    attach_function :setprotoent, [:int], :void
    attach_function :endprotoent, [], :void
  end
end

$ /usr/local/jruby-1.4.1/bin/jruby simple.rb # works
 
$ /usr/local/jruby-1.5.1/bin/jruby simple.rb 
/usr/local/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/library.rb:46:in 
`ffi_libraries': no library specified (LoadError)
        from 
/usr/local/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/library.rb:96:in 
`attach_function'
        from simple.rb:7
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to