Issue #3861 has been updated by Naohisa Goto.

File fiddle-sparcv9.patch added

Patch attached again.
The previous patch contains mistakes and garbage.
----------------------------------------
Bug #3861: Endian bugs in fiddle/dl on sparc64
http://redmine.ruby-lang.org/issues/3861

Author: Jeremy Evans
Status: Open
Priority: Normal
Assignee: Aaron Patterson
Category: lib
Target version: 
ruby -v: ruby 1.9.4dev (2011-08-05 trunk 32863) [sparc64-solaris2.10]


=begin
 Running the test suite for 1.9.2 on sparc64 on OpenBSD, the following errors on received:
 
   2) Failure:
 test_callback(DL::TestDL)
 [/usr/ports/pobj/ruby-1.9.2-p0/ruby-1.9.2-p0/test/dl/test_dl2.rb:144]:
 <"aabbfoorz"> expected but was
 <"zabrfbooa">.
 
   3) Failure:
 test_isdigit(DL::TestFunc)
 [/usr/ports/pobj/ruby-1.9.2-p0/ruby-1.9.2-p0/test/dl/test_func.rb:67]:
 Expected 0 to be > 0.
 
   4) Failure:
 test_qsort1(DL::TestFunc)
 [/usr/ports/pobj/ruby-1.9.2-p0/ruby-1.9.2-p0/test/dl/test_func.rb:95]:
 <"1349"> expected but was
 <"9341">.
 
   5) Failure:
 test_qsort2(DL::TestFunc)
 [/usr/ports/pobj/ruby-1.9.2-p0/ruby-1.9.2-p0/test/dl/test_func.rb:105]:
 <"1349"> expected but was
 <"9341">.
 
   6) Failure:
 test_isdigit(DL::TestImport)
 [/usr/ports/pobj/ruby-1.9.2-p0/ruby-1.9.2-p0/test/dl/test_import.rb:126]:
 Expected 0 to be > 0.
 
 It's possible this is an upstream issue with libffi.  If so, please let me know and I'll report it to the libffi developers.
=end



-- 
http://redmine.ruby-lang.org