Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194303 - dev-ruby/ruby-glib2-0.16.0 fails to compile
Summary: dev-ruby/ruby-glib2-0.16.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks: gtk-2.12-tracker
  Show dependency tree
 
Reported: 2007-09-30 19:23 UTC by Martin Allchin
Modified: 2008-02-17 04:56 UTC (History)
7 users (show)

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


Attachments
Build log (dev-ruby:ruby-glib2-0.16.0:20070930-191727.log,9.83 KB, text/plain)
2007-09-30 19:24 UTC, Martin Allchin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Allchin 2007-09-30 19:23:32 UTC
Compiling ruby-glib2-0.16.0 fails to compile. This has been reported and fixed upstream. I have created this bug to log the issue and find a resolve until the fixed version is available in portage.

Reproducible: Always

Steps to Reproduce:
1.emerge ruby-glib2
2.
3.

Actual Results:  
See attached log for compile output.

Expected Results:  
Successful emerge.

This has been reported and fixed upstream:
http://ruby-gnome2.cvs.sourceforge.net/ruby-gnome2/ruby-gnome2/glib/src/rbglib_maincontext.c?view=log
Comment 1 Martin Allchin 2007-09-30 19:24:17 UTC
Created attachment 132256 [details]
Build log

Attached build log.
Comment 2 Martin Allchin 2007-09-30 20:08:23 UTC
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.
Comment 3 Hans de Graaff gentoo-dev Security 2007-10-01 18:15:49 UTC
Adding Luis to the CC as he did the last release and is in the gnome herd.
Comment 4 Priit Laes (IRC: plaes) 2007-10-03 15:22:50 UTC
Second compile failure fixed here:
http://ruby-gnome2.cvs.sourceforge.net/ruby-gnome2/ruby-gnome2/glib/src/rbglib_unicode.c?r1=1.8&r2=1.9&view=patch
Comment 5 Claes Mogren 2007-10-04 06:31:09 UTC
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
Comment 6 Hans de Graaff gentoo-dev Security 2007-10-04 06:37:23 UTC
(In reply to comment #5)
> Fails to compile for me too, but at another place:

This has been fixed upstream:

http://sourceforge.net/tracker/index.php?func=detail&aid=1800346&group_id=53614&atid=470969

I assume that there will be a new release with these fixes from upstream soonish, so I think it's best to wait for that.
Comment 7 Weeve 2007-10-17 16:19:04 UTC
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....
Comment 8 Hans de Graaff gentoo-dev Security 2007-10-17 18:32:49 UTC
Could people who have this problem please indicate which version of glib they have installed?
Comment 9 Weeve 2007-10-17 18:35:47 UTC
I'm using glib-2.14.2 here (freshly emerged this morning).
Comment 10 Claes Mogren 2007-10-17 20:50:34 UTC
Just checked and ruby-glib2 is still failing the same way. I have glib-2.14.2.
Comment 11 Hans de Graaff gentoo-dev Security 2007-10-18 19:27:15 UTC
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.
Comment 12 Weeve 2007-10-18 20:23:50 UTC
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
Comment 13 Hans de Graaff gentoo-dev Security 2007-10-19 10:44:09 UTC
(In reply to comment #12)
> The revision bump fails with the following for me:

This is reported in bug 193898
Comment 14 Martin Allchin 2007-10-21 13:39:32 UTC
ruby-glib2-0.16.0-r1 works for me using glib-2.14.2
Comment 15 nick stinemates 2008-02-17 04:56:14 UTC
(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.