Bug #6495

uninitialized constant due to missing require

Added by Vincent Batts almost 2 years ago. Updated 9 months ago.

[ruby-core:45240]
Status:Closed
Priority:Normal
Assignee:Aaron Patterson
Category:ext
Target version:-
ruby -v:ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux Backport:

Description

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
module:DL'
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
require'
from /usr/lib64/ruby/siteruby/1.9.1/rubygems/customrequire.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

History

#1 Updated by Yusuke Endoh almost 2 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 9 months 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