Bug 723191

Summary: Could not find jffi Java extension for this JVM
Product: [Fedora] Fedora Reporter: Marek Goldmann <mgoldman>
Component: jrubyAssignee: Mo Morsi <mmorsi>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dcallagh, mmorsi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-20 21:57:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 727543    
Bug Blocks: 691659    

Description Marek Goldmann 2011-07-19 10:49:14 UTC
Description of problem:

$ jruby --version
/usr/bin/build-classpath: error: Could not find jffi Java extension for this JVM
/usr/bin/build-classpath: error: Could not find jruby-yecht Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
jruby 1.6.2 (ruby-1.8.7-p330) (2011-07-18 1.6.2) (OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java]

This leads to the following issue:

$ jruby -J-Xmx1024m -I/usr/share/jruby/lib/native/ -S irb
/usr/bin/build-classpath: error: Could not find jffi Java extension for this
JVM
/usr/bin/build-classpath: error: Could not find jruby-yecht Java extension for
this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
irb(main):001:0> require 'guestfs'
LoadError: load error: _guestfs -- java.lang.NoClassDefFoundError:
com/kenai/jffi/Library
from org/jruby/RubyKernel.java:1038:in `require'
from /usr/share/jruby/lib/ruby/site_ruby/1.8/guestfs.rb:18:in `(root)'
from org/jruby/RubyKernel.java:1038:in `require'
from /usr/share/jruby/lib/ruby/site_ruby/1.8/guestfs.rb:1:in `evaluate'
from org/jruby/RubyKernel.java:1088:in `eval'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:158:in `eval_input'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:271:in `signal_status'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1419:in `loop'
from org/jruby/RubyKernel.java:1191:in `catch'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:154:in `eval_input'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1191:in `catch'
from /usr/share/jruby/lib/ruby/1.8/irb.rb:70:in `start'
from /usr/share/jruby/bin/jirb:13:in `(root)'
irb(main):002:0>

Version-Release number of selected component (if applicable):

jruby-1.6.2-2.fc16.noarch

Comment 1 Mo Morsi 2011-08-02 12:25:15 UTC
Updated JRuby in rawhide to resolve this.

The JRuby jaffl dependency has been updated and renamed to jnr-ffi. This package is required for the updated version of JRuby to work and to resolve this issue. If you have any cycles, a package review would be more than appreciated.