Trouble compiling ruby-gnome2

Hello, I’m having a hard time compiling ruby-gnome2. The glib and gtk
bindings fail to compile.

I’m on Ubuntu 7.1.0. I compiled ruby from source, so I can’t use
Ubuntu’s gnome2-ruby package.
Here is my compile results. Any help would be appreciated.

Thank you,
Brian T.

btakita@btakita-laptop:~/downloads/ruby-gnome2-all-0.16.0$ make
/usr/local/bin/ruby ./exec_make.rb ‘glib gdkpixbuf pango atk gtk
gnomeprint gnomecanvas libglade rsvg vte gconf panel-applet gnome
gtksourceview libart gnomeprintui gnomevfs’ make all
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/glib' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/glib/src’
gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I…/./glib
-DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC
-DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_G_THREAD_INIT
-DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV -DHAVE_RB_CHECK_ARRAY_TYPE
-DRUBY_GLIB2_COMPILATION
-I/usr/local/lib/ruby/site_ruby/1.8/i686-linux -fPIC -g -O2 -Wall
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c
rbglib_unicode.c
rbglib_unicode.c: In function ‘rbglib_m_unichar_get_script’:
rbglib_unicode.c:142: error: ‘G_TYPE_UNICODE_SCRIPT_TYPE’ undeclared
(first use in this function)
rbglib_unicode.c:142: error: (Each undeclared identifier is reported
only once
rbglib_unicode.c:142: error: for each function it appears in.)
make[2]: *** [rbglib_unicode.o] Error 1
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/glib/src' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/glib’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gdkpixbuf' make[1]: Nothing to be done forall’.
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gdkpixbuf' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/pango’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/pango/src' make[2]: Nothing to be done forall’.
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/pango/src' make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/pango’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/atk' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/atk/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/atk/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/atk' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtk’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtk/src' gcc -I. -I/home/btakita/downloads/ruby-gnome2-all-0.16.0/pango/src -I/home/btakita/downloads/ruby-gnome2-all-0.16.0/glib/src -I. -I/usr/local/lib/ruby/1.8/i686-linux -I.././gtk -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DRUBY_GTK2_TARGET=\"x11\" -DHAVE_GTK_PLUG_GET_TYPE -DHAVE_GTK_SOCKET_GET_TYPE -DHAVE_PANGO_RENDER_PART_GET_TYPE -DHAVE_XREADBITMAPFILEDATA -DHAVE_X11_XLIB_H -DHAVE_XGETERRORTEXT -DHAVE_GTK_PRINT_UNIX_DIALOG_GET_TYPE -DHAVE_GTK_PRINT_JOB_GET_TYPE -DHAVE_GTK_PRINTER_GET_TYPE -DRUBY_GTK2_COMPILATION -I/usr/local/lib/ruby/site_ruby/1.8/i686-linux -fPIC -g -O2 -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -c rbgtktreeiter.c rbgtktreeiter.c: In function 'rbgtk_register_treeiter_set_value_func': rbgtktreeiter.c:23: error: argument 'gtype' doesn't match prototype rbgtk.h:118: error: prototype declaration make[2]: *** [rbgtktreeiter.o] Error 1 make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtk/src’
make[1]: *** [all] Error 2
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtk' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprint’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprint/src' make[2]: Nothing to be done forall’.
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprint/src' make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprint’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomecanvas' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomecanvas/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomecanvas/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomecanvas' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/libglade’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/libglade’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/rsvg' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/rsvg/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/rsvg/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/rsvg' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/vte’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/vte/src' make[2]: Nothing to be done forall’.
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/vte/src' make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/vte’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gconf' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gconf/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gconf/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gconf' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/panel-applet’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/panel-applet’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnome' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnome/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnome/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnome' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtksourceview’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtksourceview/src' make[2]: Nothing to be done forall’.
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtksourceview/src' make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gtksourceview’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/libart' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/libart/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/libart/src’
make[1]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/libart' make[1]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprintui’
make[2]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprintui/src' make[2]: Nothing to be done forall’.
make[2]: Leaving directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprintui/src' make[1]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomeprintui’
make[1]: Entering directory
/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomevfs' make[2]: Entering directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomevfs/src’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomevfs/src’
make[1]: Leaving directory
`/home/btakita/downloads/ruby-gnome2-all-0.16.0/gnomevfs’

What version of glib do you have?

I also recommend to use svn version of ruby-gnome2, i think there were
some minor changes that might help maybe …
svn co Ruby-GNOME 2 download | SourceForge.net
ruby-gnome2

Also not sure what the rbglib_unicode.c error is