Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
glib2 doesn't compile under jruby 1.9.7 #467
C extensions are enabled
gem install glib2 (1.1.9)
rbglib_messages.c: In function ‘rbglib_log_handler’:
Looks like the real problem is JRuby doesn't support rb_sourceline() and rb_sourcefile(), which glib2 uses for some of its logging. We can fake them fairly easily.
Unless you are installing a package that explicitly depends on the cext based glib2/gnome2 stack, I would recommend investigating https://github.com/mvz/ruby-gir-ffi - that uses FFI to do the bindings from glib/gtk2+, etc and will work on future versions of JRuby (and MRI of course).