<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>193898</bug_id>
          
          <creation_ts>2007-09-26 18:43 0000</creation_ts>
          <short_desc>~dev-ruby/ruby-{glib2,gtk2}-0.16.0 doesn&apos;t compile - argument &apos;gtype&apos; doesn&apos;t match prototype</short_desc>
          <delta_ts>2007-10-26 19:16:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>193369</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>stack.box@gmail.com</reporter>
          <assigned_to>ruby@gentoo.org</assigned_to>
          <cc>gnome@gentoo.org</cc>
    
    <cc>howard_b_golden@yahoo.com</cc>
    
    <cc>lamusique.gentoo@orange.fr</cc>
    
    <cc>pacho@condmat1.ciencias.uniovi.es</cc>
    
    <cc>rab1@sfu.ca</cc>
    
    <cc>rikz@yandex.ru</cc>
    
    <cc>teidakankan@gmail.com</cc>
    
    <cc>weeve3@gmail.com</cc>
    
    <cc>willard.dawson@sungard.com</cc>

      

      
          <long_desc isprivate="0">
            <who>stack.box@gmail.com</who>
            <bug_when>2007-09-26 18:43:47 0000</bug_when>
            <thetext>gcc -I. -I/var/tmp/paludis/dev-ruby/ruby-gtk2-0.16.0/work/ruby-gnome2-all-0.16.0/pango/src -I/var/tmp/paludis/dev-ruby/ruby-gtk2-0.16.0/work/ruby-gnome2-all-0.16.0/glib/src -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DRUBY_GTK2_TARGET=\&quot;x11\&quot; -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 -DHAVE_RB_CAIRO_H -DRUBY_GTK2_COMPILATION  -I/usr/lib/ruby/site_ruby/1.8/i686-linux  -fPIC -march=prescott -O2 -pipe -fno-strict-aliasing  -fPIC -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -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/directfb -I/usr/include/libpng12   -D_REENTRANT -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/directfb -I/usr/include/libpng12   -D_REENTRANT -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12    -c rbgtktreeiter.c
rbgtktreeiter.c: In function &apos;rbgtk_register_treeiter_set_value_func&apos;:
rbgtktreeiter.c:23: error: argument &apos;gtype&apos; doesn&apos;t match prototype
rbgtk.h:118: error: prototype declaration

!!! ERROR in dev-ruby/ruby-gtk2-0.16.0:
!!! In ruby-gnome2_src_compile at line 3096
!!! emake failed


Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-09-27 18:29:24 0000</bug_when>
            <thetext>Which version of gtk+ do you have installed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stack.box@gmail.com</who>
            <bug_when>2007-09-28 15:59:04 0000</bug_when>
            <thetext>I&apos;m using x11-libs/gtk+-2.12.0-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-09-28 18:27:35 0000</bug_when>
            <thetext>Adding the gnome team as they may have some insight here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-10-19 08:14:33 0000</bug_when>
            <thetext>Created an attachment (id=133868)
ruby-gnome2-all-0.16.0-typedef.patch

Maybe this fedora patch could help a bit</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-19 10:44:31 0000</bug_when>
            <thetext>*** Bug 196350 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>willard.dawson@sungard.com</who>
            <bug_when>2007-10-21 16:25:53 0000</bug_when>
            <thetext>Me too on the emerge failure. I tried the typedef patch, but that failed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-21 19:14:45 0000</bug_when>
            <thetext>I&apos;m not able to reproduce this problem with glib-2.14.2 and gtk+-2.12.1.

Before looking into patching I&apos;d like to understand what is causing this problem. Could people who have this problem list the versions of gcc, glib, and gtk+ installed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stack.box@gmail.com</who>
            <bug_when>2007-10-21 19:46:31 0000</bug_when>
            <thetext>I&apos;m using:
- glib-2.6.1
- gtk+-2.12.1
- gcc-4.2.2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rikz@yandex.ru</who>
            <bug_when>2007-10-21 19:49:18 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; I&apos;m not able to reproduce this problem with glib-2.14.2 and gtk+-2.12.1.
&gt; 
&gt; Before looking into patching I&apos;d like to understand what is causing this
&gt; problem. Could people who have this problem list the versions of gcc, glib, and
&gt; gtk+ installed?
&gt; 

I&apos;m having troubles emerging dev-ruby/ruby-glib2-0.16.0-r1
Here&apos;s information about my system:

# emerge --info
Portage 2.1.3.15 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo i686)
=================================================================
System uname: 2.6.23-gentoo i686 Intel(R) Pentium(R) M processor 1500MHz
Timestamp of tree: Sun, 21 Oct 2007 08:04:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r2
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;ftp://kos.local/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.yandex.ru/gentoo-distfiles/&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LDFLAGS=&quot;-Wl,--hash-style=gnu&quot;
LINGUAS=&quot;ru en&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/portage/local/layman/x11 /usr/portage/local/openchrome /usr/portage/local/overlay /usr/portage/local/underlay&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac acpi alsa bash-completion beagle berkdb bitmap-fonts bluetooth bzip2 cairo cdr chardet cli cracklib crypt cscope cups dbus dga djvu dri dvd dvdr eds emboss encode exif exiv2 fam ffmpeg firefox flac ftp fuse galago gdbm gif gimp glut gnome gphoto2 gpm gsf gstreamer gtk gtkhtml hal hashstyle icc iconv imagemagick inotify ipod isdnlog javascript jpeg kdeenablefinal lcms libnotify logrotate mad midi mikmod mmap mmx mmxext mono mp3 mpeg mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg openmp pam pcmcia pcre pdf png pppd python qt3 qt3support qt4 quicktime readline real reflection sasl scanner sdl session slang speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg t1lib taglib tetex tiff truetype truetype-fonts type1-fonts unicode usb videos vim vim-syntax vnc vorbis wifi win32codecs x264 x86 xcomposite xine xml xorg xosd xscreensaver xulrunner xv xvid xvmc zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; CAMERAS=&quot;canon&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;mouse keyboard synaptics evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;ru en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa via&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leio@gentoo.org</who>
            <bug_when>2007-10-21 19:51:34 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; I&apos;m using:
&gt; - glib-2.6.1
&gt; - gtk+-2.12.1
&gt; - gcc-4.2.2

Are you sure of the glib version? gtk+-2.12.1 depends on at least glib-2.13.5...

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rikz@yandex.ru</who>
            <bug_when>2007-10-21 19:59:26 0000</bug_when>
            <thetext>Silly me. I forgot the important thing:

glib-2.14.2
gtk+-2.12.1

And sorry for a big previous message, it looked smaller in my terminal :)
I&apos;m available for a real-time talk via xmpp:rikz@jabber.ru if you need any additional info.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stack.box@gmail.com</who>
            <bug_when>2007-10-21 20:23:01 0000</bug_when>
            <thetext>Sorry i&apos;ve copied the glibc version..
glib version is 2.14.2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>teidakankan@gmail.com</who>
            <bug_when>2007-10-21 20:43:24 0000</bug_when>
            <thetext>sys-devel/gcc-4.2.2
sys-libs/glibc-2.6.1
x11-libs/gtk+-2.12.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>willard.dawson@sungard.com</who>
            <bug_when>2007-10-22 00:35:33 0000</bug_when>
            <thetext>I have each of these installed at the moment:

dev-libs/glib-1.2.10-r5
dev-libs/glib-2.14.2
sys-devel/gcc-4.2.2
sys-libs/glibc-2.6.1
x11-libs/gtk+-1.2.10-r12
x11-libs/gtk+-2.12.0-r2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>remi@gentoo.org</who>
            <bug_when>2007-10-22 09:52:48 0000</bug_when>
            <thetext>I was able to reproduce the bug on my laptop which is a full ~x86 system.

That fedora patch indeed fixes it, but it needs to be split into 2 chunks, one for ruby-glib2 and the second one for ruby-gtk2.

As for what causes this, I can only guess that ruby&apos;s VALUE used to be equivalent to GType (which should be an int or something) and recent versions of gcc have stricter rules regarding implicit casts... but I&apos;m just speculating :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve3@gmail.com</who>
            <bug_when>2007-10-22 17:26:45 0000</bug_when>
            <thetext>Using the following on ~x86 that is updated every week day:

sys-devel/gcc-4.2.2
dev-libs/glib-2.14.2
x11-libs/gtk+-2.12.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>majorde@gmail.com</who>
            <bug_when>2007-10-23 04:38:36 0000</bug_when>
            <thetext>I had the same problem with the following versions:

dev-libs/glib-2.14.2
sys-devel/gcc-4.2.2
x11-libs/gtk+-2.12.1

I can confirm that the Fedora packages fix it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>majorde@gmail.com</who>
            <bug_when>2007-10-23 04:40:53 0000</bug_when>
            <thetext>&gt; 
&gt; I can confirm that the Fedora packages fix it.
&gt; 

By packages I meant patches, sorry.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-23 08:04:47 0000</bug_when>
            <thetext>*** Bug 196774 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>willard.dawson@sungard.com</who>
            <bug_when>2007-10-25 15:16:53 0000</bug_when>
            <thetext>Any news on when the patch will be pushed out for general use?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>remi@gentoo.org</who>
            <bug_when>2007-10-25 15:56:48 0000</bug_when>
            <thetext>I don&apos;t mind pushing the patch out. @Ruby Herd, do you guys mind if I do it?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nichoj@gentoo.org</who>
            <bug_when>2007-10-25 21:13:26 0000</bug_when>
            <thetext>(In reply to comment #21)
&gt; I don&apos;t mind pushing the patch out. @Ruby Herd, do you guys mind if I do it?

I have no issue with it, go ahead. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-26 06:19:57 0000</bug_when>
            <thetext>@remi: please feel free to do so. I&apos;ve not been able to reproduce this bug even with gcc-4.2.2 (on amd64) and can&apos;t easily prepare an x86 environment for this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>remi@gentoo.org</who>
            <bug_when>2007-10-26 19:16:44 0000</bug_when>
            <thetext>Erf, busy day at work. Both committed with an extra revbump just in case.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133868</attachid>
            <date>2007-10-19 08:14 0000</date>
            <desc>ruby-gnome2-all-0.16.0-typedef.patch</desc>
            <filename>ruby-gnome2-all-0.16.0-typedef.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHJ1YnktZ25vbWUyLWFsbC0wLjE2LjAvZ2xpYi9zcmMvcmJnb2JqX2JveGVkLmMudHlwZWRl
ZgkyMDA2LTEyLTI5IDIyOjE3OjI4Lj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