Forum: Ruby-Gnome 2 rb_thread_critical - anyone knows this error?

4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2012-08-24 20:37
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:in
`require'
        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:in
`require'
        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:in
`require'
        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:in
`require'
        from menu.rb:11:in `<main>'

(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.
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2012-08-27 14:00
(Received via mailing list)
Hi,

In <498e73e7dff3f1c49969a438113c41ec@ruby-forum.com>
  "[ruby-gnome2-devel-en] rb_thread_critical - anyone knows this error?"
on Fri, 24 Aug 2012 20:37:06 +0200,
  Marc Heiler <ruby-forum-incoming@andreas-s.net> 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
This topic is locked and can not be replied to.