FFI: Invalid callback parameter type: STRING on FreeBSD/amd64
-------------------------------------------------------------
Key: JRUBY-3781
URL: http://jira.codehaus.org/browse/JRUBY-3781
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.3.1
Environment: FreeBSD 7.2/amd64, jruby 1.3.1, nokogiri 1.3.2-java,
libxml2-2.6.32
Reporter: Blaz Grilc
Loading nokogiri fails with:
-------
irb(main):002:0> require 'nokogiri'
ArgumentError: Invalid callback parameter type: STRING
from /home/lovec/bin/jruby/lib/ruby/1.8/ffi/ffi.rb:120:in
`create_invoker'
from /home/lovec/bin/jruby/lib/ruby/1.8/ffi/library.rb:50:in
`attach_function'
from /home/lovec/bin/jruby/lib/ruby/1.8/ffi/library.rb:48:in `each'
from /home/lovec/bin/jruby/lib/ruby/1.8/ffi/library.rb:48:in
`attach_function'
from
/home/lovec/bin/jruby-1.3.1/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri/ffi/libxml.rb:138
from
/home/lovec/bin/jruby-1.3.1/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri/ffi/libxml.rb:31:in
`require'
from
/home/lovec/bin/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from
/home/lovec/bin/jruby-1.3.1/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri.rb:10
from
/home/lovec/bin/jruby-1.3.1/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri.rb:36:in
`require'
from
/home/lovec/bin/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from (irb):3
------
I .inspected the parameters passed to the function that fails if that helps ;)
-----------
function => #<Library Symbol library=xml2 symbol=xmlSaveToIO
address=0x82b702da0>
args => [#<FFI::CallbackInfo [ pointer, string, int32 ], int32>,
#<FFI::CallbackInfo [ pointer ], int32>, #<FFI::Type::Builtin:POINTER size=8
alignment=8>, #<FFI::Type::Builtin:STRING size=8 alignment=8>,
#<FFI::Type::Builtin:INT32 size=4 alignment=4>]
ret => #<FFI::Type::Builtin:POINTER size=8 alignment=8>
options => {:convention=>:default, :type_map=>nil, :enums=>nil}
FFI::Invoker.new(function, args, find_type(ret), options)
--
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