FFI is broken on X86_64 linux
-----------------------------
Key: JRUBY-3972
URL: http://jira.codehaus.org/browse/JRUBY-3972
Project: JRuby
Issue Type: Bug
Components: Extensions
Environment: jruby 1.4.0dev (ruby 1.8.7p174) (2009-09-16 b09f382)
(Java HotSpot(TM) 64-Bit Server VM 1.6.0_12) [amd64-java]
Uname: Linux vm1 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64
GNU/Linux
Reporter: Brice Figureau
Discovered while trying to load syslog:
% jruby -d -e "require 'syslog'"
Could not load FFI Provider: FFI not available: Could not locate stub library
(/jni/x86_64-Linux/libjffi-0.6.so) in jar file
Exception `LoadError':Syslog not supported on this platform at
/home/brice/devl/jruby/lib/ruby/site_ruby/shared/syslog.rb:21 -
#<LoadError:0x7a20807c>
/home/brice/devl/jruby/lib/ruby/site_ruby/shared/syslog.rb:21: Syslog not
supported on this platform (LoadError)
from /home/brice/devl/jruby/lib/ruby/site_ruby/shared/syslog.rb:1:in
`require'
from -e:1
Looking to jruby.jar, there is indeed no libjffi-0.6.so for x86_64-Linux.
Looking to build_lib, there is an empty: jffi-x86_64-Linux.jar (like some other
archs too).
Looking in git history, those files were touched in commit:
commit c3cbeabd9660e88ae549a7b5159f3ab59f44e1b5
Author: Wayne Meissner <[email protected]>
Date: Tue Aug 18 16:31:50 2009 +1000
Update to jffi-0.6
Maybe it was done on purpose (don't know for sure), and those files are not
needed, but in this case then something is severely broken.
--
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