Bug 194303 - dev-ruby/ruby-glib2-0.16.0 fails to compile
|
Bug#:
194303
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: ruby@gentoo.org
|
Reported By: mallchin@blueyonder.co.uk
|
|
Component: Ebuilds
|
|
|
URL:
http://forums.gentoo.org/viewtopic-t-588008-highlight-rubyglib2.html
|
|
Summary: dev-ruby/ruby-glib2-0.16.0 fails to compile
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-09-30 19:23 0000
|
I patched rbglib_maincontext.c from 1.10 to 1.13 but it didn't compile. Some
other files would need patching too. I guess we wait on a new release upstream.
Adding Luis to the CC as he did the last release and is in the gnome herd.
Fails to compile for me too, but at another place:
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
-DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV
-DHAVE_RB_CHECK_ARRAY_TYPE -DRUBY_GLIB2_COMPILATION
-I/usr/lib64/ruby/site_ruby/1.8/x86_64-linux -fPIC -march=athlon64 -O2 -pipe
-fno-ident -fno-strict-aliasing -fPIC -Wall -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -c rbglib_maincontext.c
rbglib_maincontext.c: In function ‘timeout_add_seconds’:
rbglib_maincontext.c:346: error: too many arguments to function
‘g_timeout_add_seconds’
make[1]: *** [rbglib_maincontext.o] Error 1
make[1]: Leaving directory
`/tmp/portage/dev-ruby/ruby-glib2-0.16.0/work/ruby-gnome2-all-0.16.0/glib/src'
make: *** [all] Error 2
Can we please have a working version of this package in portage? It's a
dependency that other programs need and prevents them from being emerged for
the first time. Also I thought broken packages in the live tree was a big no
no....
Could people who have this problem please indicate which version of glib they
have installed?
I'm using glib-2.14.2 here (freshly emerged this morning).
Just checked and ruby-glib2 is still failing the same way. I have glib-2.14.2.
I've just committed ruby-glib2-0.16.0-r1 to CVS which should fix this issue and
be backwards compatible with glib-2.12.x.
The revision bump fails with the following for me:
gcc -I. -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
-DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV
-DHAVE_RB_CHECK_ARRAY_TYPE -DRUBY_GLIB2_COMPILATION
-I/usr/lib/ruby/site_ruby/1.8/i686-linux -fPIC -march=pentium4 -O2 -pipe
-fno-strict-aliasing -fPIC -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 rbgobj_boxed.c
rbgobj_boxed.c: In function 'rbgobj_boxed_get':
rbgobj_boxed.c:149: error: argument 'gtype' doesn't match prototype
rbgobject.h:196: error: prototype declaration
make[1]: *** [rbgobj_boxed.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dev-ruby/ruby-glib2-0.16.0-r1/work/ruby-gnome2-all-0.16.0/glib/src'
make: *** [all] Error 2
(In reply to comment #12)
> The revision bump fails with the following for me:
This is reported in bug 193898
ruby-glib2-0.16.0-r1 works for me using glib-2.14.2
(In reply to comment #5)
> Fails to compile for me too, but at another place:
>
> 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
> -DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV
> -DHAVE_RB_CHECK_ARRAY_TYPE -DRUBY_GLIB2_COMPILATION
> -I/usr/lib64/ruby/site_ruby/1.8/x86_64-linux -fPIC -march=athlon64 -O2 -pipe
> -fno-ident -fno-strict-aliasing -fPIC -Wall -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -c rbglib_maincontext.c
> rbglib_maincontext.c: In function ‘timeout_add_seconds’:
> rbglib_maincontext.c:346: error: too many arguments to function
> ‘g_timeout_add_seconds’
> make[1]: *** [rbglib_maincontext.o] Error 1
> make[1]: Leaving directory
> `/tmp/portage/dev-ruby/ruby-glib2-0.16.0/work/ruby-gnome2-all-0.16.0/glib/src'
> make: *** [all] Error 2
>
I am also having the same issue. Glad to hear it is being fixed up stream.