Bug #3015: NetBSD vs test/dl
http://redmine.ruby-lang.org/issues/show/3015

Author: Michael Graff
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2010-03-26 trunk 27055) [i386-netbsdelf5.0.]

There are probably related problems with the mentioned tests, or the code they are testing, on NetBSD 5.0.2.

I have not yet investigated the cause of these.

  1) Error:
test_to_ptr_io(DL::TestCPtr):
RangeError: bignum too big to convert into `long'
    /u1/home/explorer/proj/ruby/test/dl/test_cptr.rb:84:in `call'
    /u1/home/explorer/proj/ruby/test/dl/test_cptr.rb:84:in `block in test_to_ptr_io'
    /u1/home/explorer/proj/ruby/test/dl/test_cptr.rb:81:in `open'
    /u1/home/explorer/proj/ruby/test/dl/test_cptr.rb:81:in `test_to_ptr_io'

  2) Error:
test_callback(DL::TestDL):
RangeError: bignum too big to convert into `long'
    /u1/home/explorer/proj/ruby/test/dl/test_dl2.rb:143:in `call'
    /u1/home/explorer/proj/ruby/test/dl/test_dl2.rb:143:in `test_callback'

  3) Error:
test_strcpy(DL::TestDL):
RangeError: bignum too big to convert into `long'
    /u1/home/explorer/proj/ruby/test/dl/test_dl2.rb:134:in `call'
    /u1/home/explorer/proj/ruby/test/dl/test_dl2.rb:134:in `test_strcpy'

  4) Error:
test_static_sym(DL::TestHandle):
DL::DLError: unknown symbol "dlopen"
    /u1/home/explorer/proj/ruby/test/dl/test_handle.rb:26:in `sym'
    /u1/home/explorer/proj/ruby/test/dl/test_handle.rb:26:in `test_static_sym'


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