Issue #10926 has been reported by Naohisa Goto.

----------------------------------------
Bug #10926: r49760以降Solarisで--enable-sharedのビルドでsample/test.rb失敗
https://bugs.ruby-lang.org/issues/10926

* Author: Naohisa Goto
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-03-02) [sparc64-solaris2.10]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Solaris 10 にて、./configure --enable-shared (他オプション多数略) にて共有ライブラリ版をビルドしようとすると、r49760以降、下記のエラーが出てsample/test.rbの実行に失敗して次のステップに進めなくなります。

~~~
sample/test.rb:assignment ......................................................................................................................................................
................................................................................................................................................................................
..............................................OK 372
(中略)
sample/test.rb:eval .............................OK 29
sample/test.rb:system .ld.so.1: sh: fatal: /XXXXX-49760/libruby.so.2: wrongELF class: ELFCLASS64
F.....ld.so.1: sh: fatal: /XXXXX-49760/libruby.so.2: wrong ELF class: ELFCLASS64
F/XXXXX-49760/sample/test.rb:2018:in `unlink': No such file or directory @ unlink_internal - script_tmp.23560.bak (Errno::ENOENT)
        from /XXXXX-49760/sample/test.rb:2018:in `<main>'

not ok system 2 -- /XXXXX-49760/sample/test.rb:1971:in `<main>'
not ok system 8 -- /XXXXX-49760/sample/test.rb:2015:in `<main>'
test failed
make: *** [yes-test-sample] Error 1
~~~




-- 
https://bugs.ruby-lang.org/