Bug #6495

uninitialized constant due to missing require

Added by Vincent Batts over 3 years ago. Updated over 2 years ago.

Assignee:Aaron Patterson
ruby -v:ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux Backport:


irb(main):022:0> require 'dl/struct'
NameError: uninitialized constant DL::CStructEntity::ValueUtil
from /usr/lib64/ruby/1.9.1/dl/struct.rb:48:in <class:CStructEntity>'
from /usr/lib64/ruby/1.9.1/dl/struct.rb:46:in
from /usr/lib64/ruby/1.9.1/dl/struct.rb:4:in <top (required)>'
from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from (irb):22
from /usr/bin/irb:12:in

the attached patch fixes this failure.

ruby-dl_struct-undefined_constant.patch Magnifier - adding a require (255 Bytes) Vincent Batts, 05/26/2012 02:19 AM


#1 Updated by Yusuke Endoh over 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Aaron Patterson

I'm not sure if the author had assumed that dl/struct is require'ed directly.
Aaron, what do you think?

Yusuke Endoh mame@tsg.ne.jp

#2 Updated by Aaron Patterson over 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This was fixed in r37391, so I'm closing this. Thanks!

Also available in: Atom PDF