Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159737 - dev-ruby/ruby-gtk2-0.14.1 and 0.15.0 fail to compile
Summary: dev-ruby/ruby-gtk2-0.14.1 and 0.15.0 fail to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 10:47 UTC by gentoo_m
Modified: 2007-01-03 05:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo_m 2007-01-02 10:47:11 UTC
I am installing the bits of Ruby that app-misc/alexandria has as dependencies, most of my system is stable, but the following are in my package.keywords (relevant to this problem):

(for dev-ruby/ruby-gtk2-0.14.1 failure)
app-misc/alexandria ~amd64
dev-ruby/ruby-zoom ~amd64
=dev-ruby/ruby-libglade2-0.14.1 ~amd64
=dev-ruby/ruby-gconf2-0.14.1 ~amd64

(for dev-ruby/ruby-gtk2-0.15.0 failure)
app-misc/alexandria ~amd64
dev-ruby/ruby-zoom ~amd64
=dev-ruby/ruby-libglade2-0.14.1 ~amd64
=dev-ruby/ruby-gconf2-0.14.1 ~amd64
=dev-ruby/ruby-gtk2-0.15.0 ~amd64
=dev-ruby/ruby-glib2-0.15.0 ~amd64
=dev-ruby/ruby-pango-0.15.0 ~amd64
=dev-ruby/ruby-atk-0.15.0 ~amd64

I'm not sure if the following is relevant: I had previously not limited ruby-libglade2 & ruby-gconf2 to the specific versions listed above, and this had pulled in a lot of 0.16 dependencies. dev-ruby/rcairo-1.2.0 had failed to compile, so I restricted the versions to avoid trying to install rcairo - so the compilation problem with ruby-gtk2-0.14.1 or 0.15.0 is happening when I try and downgrade from ruby-gtk2-0.16.0.

Error message (same for both versions - except for version number of failed package):

rbgtk20.c: In function 'get_clipboard':
rbgtk20.c:40: error: 'RBGTK_TYPE_CLIPBOARD' undeclared (first use in this function)
rbgtk20.c:40: error: (Each undeclared identifier is reported only once
rbgtk20.c:40: error: for each function it appears in.)
rbgtk20.c: In function 'make_clipboard':
rbgtk20.c:47: error: 'RBGTK_TYPE_CLIPBOARD' undeclared (first use in this function)
rbgtk20.c: In function 'get_tree_row_reference':
rbgtk20.c:80: error: 'RBGTK_TYPE_TREE_ROW_REFERENCE' undeclared (first use in this function)
rbgtk20.c: In function 'Init_gtk20':
rbgtk20.c:86: error: 'rbgtk_clipboard_get_type' undeclared (first use in this function)
rbgtk20.c:87: error: 'rbgtk_get_clipboard' undeclared (first use in this function)
rbgtk20.c:87: error: 'RBGtkClipboardGetFunc' undeclared (first use in this function)
rbgtk20.c:87: error: expected ';' before 'get_clipboard'
rbgtk20.c:88: error: 'rbgtk_make_clipboard' undeclared (first use in this function)
rbgtk20.c:88: error: 'RBGtkClipboardMakeFunc' undeclared (first use in this function)
rbgtk20.c:88: error: expected ';' before 'make_clipboard'
rbgtk20.c:89: error: 'rbgtk_tree_row_reference_get_type' undeclared (first use in this function)
rbgtk20.c:90: error: 'rbgtk_get_tree_row_reference' undeclared (first use in this function)
rbgtk20.c:90: error: 'RBGtkTreeRowReferenceGetFunc' undeclared (first use in this function)
rbgtk20.c:90: error: expected ';' before 'get_tree_row_reference'
make[1]: *** [rbgtk20.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ruby-gtk2-0.14.1/work/ruby-gnome2-all-0.14.1/gtk/src20'
make: *** [all] Error 2

!!! ERROR: dev-ruby/ruby-gtk2-0.14.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called ruby-gnome2_src_compile
  ruby-gnome2.eclass, line 32:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


-------------------------------

emerge --info:

Portage 2.1.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System version 1.12.6
Last Sync: Tue, 02 Jan 2007 18:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB@euro"
LC_ALL="en_GB@euro"
LINGUAS="en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol arts berkdb bitmap-fonts cairo cli cracklib crypt cups dbus dlloader dri dvd eds elibc_glibc emboss encode exif fam firefox gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal howl iconv idn input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libg++ linguas_en linguas_en_GB mad mikmod mozilla mp3 mpeg musicbrainz ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-01-02 18:15:54 UTC
(metalgod is CCed because he may know better than me)

(In reply to comment #0)
> had pulled in a lot of 0.16 dependencies. dev-ruby/rcairo-1.2.0 had failed to
> compile, so I restricted the versions to avoid trying to install rcairo - so

Could you please post rcairo build log as well?

> the compilation problem with ruby-gtk2-0.14.1 or 0.15.0 is happening when I try
> and downgrade from ruby-gtk2-0.16.0.

0.16.0 should be better than older versions though

> 
> Error message (same for both versions - except for version number of failed
> package):
> 
> rbgtk20.c: In function 'get_clipboard':
> rbgtk20.c:40: error: 'RBGTK_TYPE_CLIPBOARD' undeclared (first use in this
> function)
> rbgtk20.c:40: error: (Each undeclared identifier is reported only once
> rbgtk20.c:40: error: for each function it appears in.)
> [snip]

I also need lines before this. rbgtk.h was somehow not included into rbgtk20.c
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2007-01-02 18:23:13 UTC
Ok like Nguyen said 0.16.0 is better than the old ones if you run gtk2.10. Please provide more info like the gtk and glib versions you're using.
Comment 3 gentoo_m 2007-01-03 02:44:32 UTC
I'm splitting this into two comments so it's hopefully easier to follow which build log for is for which thing.

The version of gtk that I have installed is 2.10.6 and the version of glib is 2.12.4-r1.

The following is the end of the build log for dev-ruby/ruby-gtk2-0.15.0, does this have the extra information you want, or should I attach the whole of the build log for you?

---------------

make[1]: Entering directory `/var/tmp/portage/ruby-gtk2-0.15.0/work/ruby-gnome2-all-0.15.0/gtk/src20'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -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  -I/usr/lib64/ruby/site_ruby/1.8/x86_64-linux  -fPIC -march=k8 -O2 -pipe  -fPIC -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include   -I/usr/include/cairo   -I/var/tmp/portage/ruby-gtk2-0.15.0/work/ruby-gnome2-all-0.15.0/glib/src -I/var/tmp/portage/ruby-gtk2-0.15.0/work/ruby-gnome2-all-0.15.0/pango/src -I/var/tmp/portage/ruby-gtk2-0.15.0/work/ruby-gnome2-all-0.15.0/gtk/src  -c rbgtk20.c
rbgtk20.c: In function 'get_clipboard':
rbgtk20.c:40: error: 'RBGTK_TYPE_CLIPBOARD' undeclared (first use in this function)
rbgtk20.c:40: error: (Each undeclared identifier is reported only once
rbgtk20.c:40: error: for each function it appears in.)
rbgtk20.c: In function 'make_clipboard':
rbgtk20.c:47: error: 'RBGTK_TYPE_CLIPBOARD' undeclared (first use in this function)
rbgtk20.c: In function 'get_tree_row_reference':
rbgtk20.c:80: error: 'RBGTK_TYPE_TREE_ROW_REFERENCE' undeclared (first use in this function)
rbgtk20.c: In function 'Init_gtk20':
rbgtk20.c:86: error: 'rbgtk_clipboard_get_type' undeclared (first use in this function)
rbgtk20.c:87: error: 'rbgtk_get_clipboard' undeclared (first use in this function)
rbgtk20.c:87: error: 'RBGtkClipboardGetFunc' undeclared (first use in this function)
rbgtk20.c:87: error: expected ';' before 'get_clipboard'
rbgtk20.c:88: error: 'rbgtk_make_clipboard' undeclared (first use in this function)
rbgtk20.c:88: error: 'RBGtkClipboardMakeFunc' undeclared (first use in this function)
rbgtk20.c:88: error: expected ';' before 'make_clipboard'
rbgtk20.c:89: error: 'rbgtk_tree_row_reference_get_type' undeclared (first use in this function)
rbgtk20.c:90: error: 'rbgtk_get_tree_row_reference' undeclared (first use in this function)
rbgtk20.c:90: error: 'RBGtkTreeRowReferenceGetFunc' undeclared (first use in this function)
rbgtk20.c:90: error: expected ';' before 'get_tree_row_reference'
make[1]: *** [rbgtk20.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ruby-gtk2-0.15.0/work/ruby-gnome2-all-0.15.0/gtk/src20'
make: *** [all] Error 2

!!! ERROR: dev-ruby/ruby-gtk2-0.15.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called ruby-gnome2_src_compile
  ruby-gnome2.eclass, line 32:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 4 gentoo_m 2007-01-03 03:10:54 UTC
I re-keyworded all the bits of Ruby necessary for Alexandria to accept ~amd64 to try & reproduce the rcairo build problem.

This time, all the packages built successfully, including rcairo, so I can't reproduce the problem.

I checked that I could re-emerge ruby-gtk2-0.16.0 and that worked too, so I now seem to have a working system.

So as far as I'm concerned this bug can be closed, as the actual software I want is working fine for me now. (Obviously if there's any other useful information I could give you, let me know, as this is possibly more a workaround than a solution)

Thanks for your time looking at it :)
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2007-01-03 05:18:35 UTC
No, you should use ruby-gtk2 0.16.0 since it's the most apropriated version for your system. So closing this bug.

Thanks