# Gtk cannot be compiled from the trunk

**URL:** <https://www.ruby-forum.com/t/gtk-cannot-be-compiled-from-the-trunk/150044>\
**Category:** Ruby-Gnome 2\
**Created:** [October 2, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/gtk-cannot-be-compiled-from-the-trunk/150044 "2008-10-02T21:03:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_GSSSStzinge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e79b87/32.png) [@Philipp\_GSSSStzinge](https://www.ruby-forum.com/u/Philipp_GSSSStzinge)\
**Post date:** [October 2, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/gtk-cannot-be-compiled-from-the-trunk/150044/1 "2008-10-02T21:03:14Z")

</div>

Hello Everyone,  
im using ubuntu 8.1 i686 and im trying to compile gtk from the trunk…  
is there a bug ? i get the following error message \>\>\>\>\>\>\>\>

someone else already had the same problem  
[http://developer.imendio.com/node/230](http://developer.imendio.com/node/230)

thx  
Philipp GÃ¶tzinger

\_ATTRASGN -DHAVE\_ST\_H -DRUBY\_GTK2\_TARGET="x11"  
-DHAVE\_GTK\_PLUG\_GET\_TYPE  
-DHAVE\_GTK\_SOCKET\_GET\_TYPE -DHAVE\_PANGO\_RENDER\_PART\_GET\_TYPE  
-DHAVE\_GTK\_GTKFILESYSTEM\_H -DHAVE\_X11\_XLIB\_H -DHAVE\_XREADBITMAPFILEDATA  
-DHAVE\_XGETERRORTEXT -DHAVE\_GTK\_UNIX\_PRINT -DRUBY\_GTK2\_COMPILATION  
-I/home/pgoetzin/.ruby/ruby-1.8.6/lib/ruby/site\_ruby/1.8/x86\_64-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/pixman-1  
-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/include/pango-1.0 -I/usr/lib/gtk-2.0/include  
-I/usr/include/glib-2.0  
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1  
-I/usr/include/freetype2  
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1  
-I/usr/include/freetype2 -I/usr/include/libpng12 -c rbgtkbox.c  
gcc -I. -I/home/pgoetzin/trunk/pango/src  
-I/home/pgoetzin/trunk/pango/src  
-I/home/pgoetzin/trunk/glib/src -I/home/pgoetzin/trunk/glib/src -I.  
-I/home/pgoetzin/.ruby/ruby-1.8.6/lib/ruby/1.8/x86\_64-linux  
-I/home/pgoetzin/trunk/gtk -DHAVE\_RB\_DEFINE\_ALLOC\_FUNC  
-DHAVE\_RB\_BLOCK\_PROC  
-DHAVE\_OBJECT\_ALLOCATE -DHAVE\_NODE\_ATTRASGN -DHAVE\_ST\_H  
-DRUBY\_GTK2\_TARGET="x11" -DHAVE\_GTK\_PLUG\_GET\_TYPE  
-DHAVE\_GTK\_SOCKET\_GET\_TYPE -DHAVE\_PANGO\_RENDER\_PART\_GET\_TYPE  
-DHAVE\_GTK\_GTKFILESYSTEM\_H -DHAVE\_X11\_XLIB\_H -DHAVE\_XREADBITMAPFILEDATA  
-DHAVE\_XGETERRORTEXT -DHAVE\_GTK\_UNIX\_PRINT -DRUBY\_GTK2\_COMPILATION  
-I/home/pgoetzin/.ruby/ruby-1.8.6/lib/ruby/site\_ruby/1.8/x86\_64-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/pixman-1  
-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/include/pango-1.0 -I/usr/lib/gtk-2.0/include  
-I/usr/include/glib-2.0  
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1  
-I/usr/include/freetype2  
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1  
-I/usr/include/freetype2 -I/usr/include/libpng12 -c  
rbgtkfilechooser.c  
rbgtkfilechooser.c: In function ‘Init\_gtk\_file\_chooser’:  
rbgtkfilechooser.c:377: error: ‘GTK\_FILE\_SYSTEM\_ERROR’ undeclared (first  
use  
in this function)  
rbgtkfilechooser.c:377: error: (Each undeclared identifier is reported  
only  
once  
rbgtkfilechooser.c:377: error: for each function it appears in.)  
rbgtkfilechooser.c:380: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_NONEXISTENT’  
undeclared (first use in this function)  
rbgtkfilechooser.c:382: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_NOT\_FOLDER’  
undeclared  
(first use in this function)  
rbgtkfilechooser.c:384: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_INVALID\_URI’  
undeclared (first use in this function)  
rbgtkfilechooser.c:386: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_BAD\_FILENAME’  
undeclared (first use in this function)  
rbgtkfilechooser.c:388: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_FAILED’ undeclared  
(first use in this function)  
rbgtkfilechooser.c:390: error: ‘GTK\_FILE\_SYSTEM\_ERROR\_ALREADY\_EXISTS’  
undeclared (first use in this function)  
make[2]: \*\*\* [rbgtkfilechooser.o] Error 1  
make[2]: Leaving directory `/home/pgoetzin/trunk/gtk/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/pgoetzin/trunk/gtk’

---

<div class="post-metadata">

**Author:** ![Philipp\_GSSSStzinge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e79b87/32.png) [@Philipp\_GSSSStzinge](https://www.ruby-forum.com/u/Philipp_GSSSStzinge)\
**Post date:** [October 4, 2008, 7:36am UTC](https://www.ruby-forum.com/t/gtk-cannot-be-compiled-from-the-trunk/150044/2 "2008-10-04T07:36:36Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] gtk cannot be compiled from the trunk” on Thu,  
2 Oct 2008 21:01:43 +0200,  
“Philipp\_Götzinger” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> im using ubuntu 8.1 i686 and im trying to compile gtk from the trunk…  
> is there a bug ? i get the following error message \>\>\>\>\>\>\>\>
> 
> someone else already had the same problem  
> [http://developer.imendio.com/node/230](http://developer.imendio.com/node/230)

Thanks for reporting.  
I’ve fixed in trunk.

## Thanks,

kou
