Rb_thread_critical - anyone knows this error?

I try to run menu.rb from gtk2/ sample directory:

rb menu.rb

Error is this:

/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/x86_64-linux/glib2.so: undefined symbol: rb_thread_critical - /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/x86_64-linux/glib2.so (LoadError) from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/glib2.rb:100:in rescue in <top (required)>' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/glib2.rb:96:in<top (required)>’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/gtk2/base.rb:12:in <top (required)>' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/gtk2.rb:11:in<top (required)>’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from menu.rb:11:in `’

(My ruby prefix is /pkg/Ruby/1.9.3 etc…)

My glib.so probably does not have glib2.so rb_thread_critical symbol.

Does one of you know how to get this symbol? Or is there a workaround?
So far, everything else seems to work ok when I compile the rubygnome
bindings.

Hi,

In [email protected]
“[ruby-gnome2-devel-en] rb_thread_critical - anyone knows this error?”
on Fri, 24 Aug 2012 20:37:06 +0200,
Marc H. [email protected] wrote:

I try to run menu.rb from gtk2/ sample directory:

rb menu.rb

Error is this:
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require’:
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/x86_64-linux/glib2.so:
undefined symbol: rb_thread_critical -

My glib.so probably does not have glib2.so rb_thread_critical symbol.

It seems that your build has a problem.
Could you show how to install Ruby/GLib2?

Does one of you know how to get this symbol? Or is there a workaround?
So far, everything else seems to work ok when I compile the rubygnome
bindings.

rb_thread_critical is defined in Ruby 1.8 but it’s not
defined in Ruby 1.9. So it’s strange that your Ruby/GLib2
on Ruby 1.9 refers the symbol.

Thanks,

kou