make
compiling rbgdkgc.c
In file included from
/…/…/.rvm/gems/ruby-2.0.0-p0/gems/glib2-1.2.1/ext/glib2/rbgobject.h:28:0,
from rbgtk.h:28,
from global.h:28,
from rbgdkgc.c:24:
/…/…/.rvm/gems/ruby-2.0.0-p0/gems/glib2-1.2.1/ext/glib2/rbglib.h:67:0:
warning: “rb_str_new_cstr” redefined [enabled by default]
/…/…/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/intern.h:747:0:
note: this is the location of the previous definition
compiling rbgtkimcontextsimple.c
…
…
(and on and on like this…)
note: this is the location of the previous definition
compiling rbgtkimcontextsimple.c
…
…
(and on and on like this…)
These are just “warnings”, not “errors”.
However with ruby 2.0 you’ll see errors due to NIL_P
not put in parentheses like:
In file included from /usr/include/ruby.h:33:0,
from /usr/lib64/ruby/vendor_ruby/rbgobject.h:27,
from rbgtk.h:28,
from global.h:28,
from rbgdkevent.c:25:
rbgdkevent.c: In function ‘gdkevent_s_setting_get’:
rbgdkevent.c:390:8: error: expected ‘(’ before ‘!’ token
if NIL_P(type)
^
rbgdkevent.c:391:9: error: expected ‘;’ before ‘gtype’
gtype = G_TYPE_STRING;
^
Enrico Rivarola wrote, at 03/11/2013 07:37 PM +9:00:
I have a similar problem when try to install rabbit gem on ubuntu 12.04
from rbgtkcalendar.c:25:
returning non-void [-Wreturn-type]
make: *** [rbgtkcalendar.o] Error 1
Thanks for the tips.
Some minutes ago I attempt to install 1.2.2 version and the installation
work fine. Gtk2 and other related packages was installed without errors.
Bye
Enrico
Mamoru TASAKA wrote in post #1101095:
Hello, Enrico:
Enrico Rivarola wrote, at 03/11/2013 07:37 PM +9:00:
I have a similar problem when try to install rabbit gem on ubuntu 12.04
from rbgtkcalendar.c:25:
returning non-void [-Wreturn-type]
make: *** [rbgtkcalendar.o] Error 1
The final lines of gem installation are:
…
compiling rbgtkcalendar.c
In file included from
/home/rbtest/.rvm/gems/ruby-2.0.0-p0/gems/glib2-1.2.1/ext/glib2/rbgobject.h:28:0,
from rbgtk.h:28,
from global.h:28,
from rbgtkcalendar.c:25:
/home/rbtest/.rvm/gems/ruby-2.0.0-p0/gems/glib2-1.2.1/ext/glib2/rbglib.h:67:0:
warning: “rb_str_new_cstr” redefined [enabled by default]
/home/rbtest/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/intern.h:747:0:
note: this is the location of the previous definition
rbgtkcalendar.c: In function ‘rg_display_options’:
rbgtkcalendar.c:108:8: error: expected ‘(’ before ‘!’ token
rbgtkcalendar.c:108:8: warning: statement with no effect
[-Wunused-value]
rbgtkcalendar.c:108:20: error: expected ‘;’ before ‘{’ token
rbgtkcalendar.c:122:1: warning: no return statement in function
returning non-void [-Wreturn-type]
make: *** [rbgtkcalendar.o] Error 1