Issue #6495 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to tenderlovemaking (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>
----------------------------------------
Bug #6495: uninitialized constant due to missing require
https://bugs.ruby-lang.org/issues/6495#change-26845

Author: vbatts (Vincent Batts)
Status: Assigned
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: ext
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux


<issue>
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/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from (irb):22
	from /usr/bin/irb:12:in `<main>'
</issue>

the attached patch fixes this failure.


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