Issue #6495 has been reported by vbatts (Vincent Batts).

----------------------------------------
Bug #6495: uninitialized constant due to missing require
https://bugs.ruby-lang.org/issues/6495

Author: vbatts (Vincent Batts)
Status: Open
Priority: Normal
Assignee: 
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/