GatoLinux
2009-Feb-17 15:57 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError) (GatoLinux)
I am using ruby *1.8.4* (2005-12-24). I added this code: #define RARRAY_LEN(a) \ ((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ? \ (long)((RBASIC(a)->flags >> RARRAY_EMBED_LEN_SHIFT) & \ (RARRAY_EMBED_LEN_MASK >> RARRAY_EMBED_LEN_SHIFT)) : \ RARRAY(a)->as.heap.len) #define RARRAY_PTR(a) \ ((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ? \ RARRAY(a)->as.ary : \ RARRAY(a)->as.heap.ptr) #define RREGEXP_SRC_LEN(r) RSTRING_LEN(RREGEXP(r)->src) to my current "*ruby.h*" I try to compile and it failed again giving me a runtime error of other file. I took this code from the file ruby.h in Ruby''s release: ruby-1.9.1-p0 I substitute my ruby.h (version 1.8.4) using ruby.h (version ruby-1.9.1-p0) but it failed to compile, too. As I am newbie in this matter, I am thinking in to update my Ruby version. Maybe it can fix my issue. What do you think/suggest? Regards, -- GatoLinux In file included from librb.c:355: /usr/lib/ruby/1.8/i486-linux/ruby.h:476: error: syntax error before "struct" make: *** [librb.o] Error 1 install.rb:655:in `command'': system("make") failed (RuntimeError) from install.rb:664:in `make'' from install.rb:1258:in `setup_dir_ext'' from install.rb:1532:in `traverse'' from install.rb:1549:in `dive_into'' from install.rb:1530:in `traverse'' from install.rb:1534:in `traverse'' from install.rb:1533:in `traverse'' from install.rb:1549:in `dive_into'' from install.rb:1530:in `traverse'' from install.rb:1524:in `exec_task_traverse'' from install.rb:1519:in `exec_task_traverse'' from install.rb:1246:in `exec_setup'' from install.rb:996:in `exec_setup'' from install.rb:826:in `invoke'' from install.rb:773:in `invoke'' from install.rb:1578> ------------------------------ > > Message: 3 > Date: Fri, 13 Feb 2009 12:53:19 -0600 > From: GatoLinux <gatolinux at gmail.com> > Subject: [fxruby-users] install.rb:655:in `command'': system("make") > failed (RuntimeError) > To: fxruby-users at rubyforge.org > Message-ID: > <a77c2c700902131053w77c7ac11o639db9f8841dbc55 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello! > > > I used this command: > > > ruby install.rb config -- \ --with-fox-include=/opt/fox-1.6.35/include/ > --with-fox-lib=/opt/fox-1.6.35/lib/ > > to configure FXRuby; then, I ran: > > ruby install.rb setup followed by ruby install.rb install > > but I got this installation error: > > > In file included from include/FXRuby.h:825, > from include/FXRbCommon.h:93, > from ui_wrap.cpp:584: > include/inlinestubs.h: In function `void FXApp_init(FX::FXApp*, VALUE, > bool)'': > include/inlinestubs.h:20: error: `RARRAY_LEN'' was not declared in this > scope > ui_wrap.cpp: In function `void > FXFileSelector_setPatternList(FX::FXFileSelector*, VALUE)'': > ui_wrap.cpp:1016: error: `RARRAY_LEN'' was not declared in this scope > ui_wrap.cpp: In function `VALUE _wrap_FXComboBox_fillItems(int, VALUE*, > VALUE)'': > ui_wrap.cpp:4979: error: `RARRAY_LEN'' was not declared in this scope > ui_wrap.cpp: In function `VALUE _wrap_FXListBox_fillItems(int, VALUE*, > VALUE)'': > ui_wrap.cpp:5444: error: `RARRAY_LEN'' was not declared in this scope > ui_wrap.cpp: In function `VALUE _wrap_FXTreeListBox_fillItems(int, VALUE*, > VALUE)'': > ui_wrap.cpp:5903: error: `RARRAY_LEN'' was not declared in this scope > make: *** [ui_wrap.o] Error 1 > install.rb:655:in `command'': system("make") failed (RuntimeError) > from install.rb:664:in `make'' > from install.rb:1258:in `setup_dir_ext'' > from install.rb:1532:in `traverse'' > from install.rb:1549:in `dive_into'' > from install.rb:1530:in `traverse'' > from install.rb:1534:in `traverse'' > from install.rb:1533:in `traverse'' > from install.rb:1549:in `dive_into'' > from install.rb:1530:in `traverse'' > from install.rb:1524:in `exec_task_traverse'' > from install.rb:1519:in `exec_task_traverse'' > from install.rb:1246:in `exec_setup'' > from install.rb:996:in `exec_setup'' > from install.rb:826:in `invoke'' > from install.rb:773:in `invoke'' > from install.rb:1578 > > So, I was unable to install FXRuby (version 1.6.13) from its sources. > > Can you give me any clue to fix this issue? > > I am running Slackware 11.0 with fox-1.6.35 > > > Regards, > > > > GatoLinux > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://rubyforge.org/pipermail/fxruby-users/attachments/20090213/a0f640db/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Fri, 13 Feb 2009 17:48:22 -0600 > From: Lyle Johnson <lyle at lylejohnson.name> > Subject: Re: [fxruby-users] install.rb:655:in `command'': > system("make") failed (RuntimeError) > To: "fxruby-users at rubyforge.org" <fxruby-users at rubyforge.org> > Message-ID: <397F82D6-D454-4CC3-A4EA-C3AB2341DBFC at lylejohnson.name> > Content-Type: text/plain; charset=us-ascii; format=flowed; > delsp=yes > > What version of Ruby are you building against? I thought the > RARRAY_LEN macro had been available for awhile now. > > On Feb 13, 2009, at 12:53 PM, GatoLinux <gatolinux at gmail.com> wrote: > > > Hello! > > > > > > I used this command: > > > > > > ruby install.rb config -- \ --with-fox-include=/opt/fox-1.6.35/ > > include/ --with-fox-lib=/opt/fox-1.6.35/lib/ > > > > to configure FXRuby; then, I ran: > > > > ruby install.rb setup followed by ruby install.rb install > > > > but I got this installation error: > > > > > > In file included from include/FXRuby.h:825, > > from include/FXRbCommon.h:93, > > from ui_wrap.cpp:584: > > include/inlinestubs.h: In function `void FXApp_init(FX::FXApp*, > > VALUE, bool)'': > > include/inlinestubs.h:20: error: `RARRAY_LEN'' was not declared in > > this scope > > ui_wrap.cpp: In function `void > > FXFileSelector_setPatternList(FX::FXFileSelector*, VALUE)'': > > ui_wrap.cpp:1016: error: `RARRAY_LEN'' was not declared in this scope > > ui_wrap.cpp: In function `VALUE _wrap_FXComboBox_fillItems(int, > > VALUE*, VALUE)'': > > ui_wrap.cpp:4979: error: `RARRAY_LEN'' was not declared in this scope > > ui_wrap.cpp: In function `VALUE _wrap_FXListBox_fillItems(int, > > VALUE*, VALUE)'': > > ui_wrap.cpp:5444: error: `RARRAY_LEN'' was not declared in this scope > > ui_wrap.cpp: In function `VALUE _wrap_FXTreeListBox_fillItems(int, > > VALUE*, VALUE)'': > > ui_wrap.cpp:5903: error: `RARRAY_LEN'' was not declared in this scope > > make: *** [ui_wrap.o] Error 1 > > install.rb:655:in `command'': system("make") failed (RuntimeError) > > from install.rb:664:in `make'' > > from install.rb:1258:in `setup_dir_ext'' > > from install.rb:1532:in `traverse'' > > from install.rb:1549:in `dive_into'' > > from install.rb:1530:in `traverse'' > > from install.rb:1534:in `traverse'' > > from install.rb:1533:in `traverse'' > > from install.rb:1549:in `dive_into'' > > from install.rb:1530:in `traverse'' > > from install.rb:1524:in `exec_task_traverse'' > > from install.rb:1519:in `exec_task_traverse'' > > from install.rb:1246:in `exec_setup'' > > from install.rb:996:in `exec_setup'' > > from install.rb:826:in `invoke'' > > from install.rb:773:in `invoke'' > > from install.rb:1578 > > > > So, I was unable to install FXRuby (version 1.6.13) from its sources. > > > > Can you give me any clue to fix this issue? > > > > I am running Slackware 11.0 with fox-1.6.35 > > > > > > Regards, > > > > > > > > GatoLinux > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > ------------------------------ > > Message: 5 > Date: Fri, 13 Feb 2009 21:43:20 -0800 > From: David MacMahon <davidm at astro.berkeley.edu> > Subject: Re: [fxruby-users] install.rb:655:in `command'': > system("make") failed (RuntimeError) > To: fxruby-users at rubyforge.org > Message-ID: <C95732A1-4CDF-4AC3-A04A-6329B873007B at astro.berkeley.edu> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hi, Lyle, > > FWIW, I also ran into this problem when building fxruby against Ruby > 1.8.5 (on SuSE 10.1, I think). I think I just hacked definitions of > these macros into 1.8.5''s ruby.h file... > > RARRAY_LEN > RARRAY_PTR > RSTRING_LEN > RSTRING_PTR > > I took the definitions from a 1.8.6 ruby.h file. > > IMHO, it wouldn''t be a bad thing to put them in an fxruby include > file with #ifndef guards around them. > > Dave > > On Feb 13, 2009, at 15:48 , Lyle Johnson wrote: > > > What version of Ruby are you building against? I thought the > > RARRAY_LEN macro had been available for awhile now. > > > > On Feb 13, 2009, at 12:53 PM, GatoLinux <gatolinux at gmail.com> wrote: > > > >> Hello! > >> > >> > >> I used this command: > >> > >> > >> ruby install.rb config -- \ --with-fox-include=/opt/fox-1.6.35/ > >> include/ --with-fox-lib=/opt/fox-1.6.35/lib/ > >> > >> to configure FXRuby; then, I ran: > >> > >> ruby install.rb setup followed by ruby install.rb install > >> > >> but I got this installation error: > >> > >> > >> In file included from include/FXRuby.h:825, > >> from include/FXRbCommon.h:93, > >> from ui_wrap.cpp:584: > >> include/inlinestubs.h: In function `void FXApp_init(FX::FXApp*, > >> VALUE, bool)'': > >> include/inlinestubs.h:20: error: `RARRAY_LEN'' was not declared in > >> this scope > >> ui_wrap.cpp: In function `void FXFileSelector_setPatternList > >> (FX::FXFileSelector*, VALUE)'': > >> ui_wrap.cpp:1016: error: `RARRAY_LEN'' was not declared in this scope > >> ui_wrap.cpp: In function `VALUE _wrap_FXComboBox_fillItems(int, > >> VALUE*, VALUE)'': > >> ui_wrap.cpp:4979: error: `RARRAY_LEN'' was not declared in this scope > >> ui_wrap.cpp: In function `VALUE _wrap_FXListBox_fillItems(int, > >> VALUE*, VALUE)'': > >> ui_wrap.cpp:5444: error: `RARRAY_LEN'' was not declared in this scope > >> ui_wrap.cpp: In function `VALUE _wrap_FXTreeListBox_fillItems(int, > >> VALUE*, VALUE)'': > >> ui_wrap.cpp:5903: error: `RARRAY_LEN'' was not declared in this scope > >> make: *** [ui_wrap.o] Error 1 > >> install.rb:655:in `command'': system("make") failed (RuntimeError) > >> from install.rb:664:in `make'' > >> from install.rb:1258:in `setup_dir_ext'' > >> from install.rb:1532:in `traverse'' > >> from install.rb:1549:in `dive_into'' > >> from install.rb:1530:in `traverse'' > >> from install.rb:1534:in `traverse'' > >> from install.rb:1533:in `traverse'' > >> from install.rb:1549:in `dive_into'' > >> from install.rb:1530:in `traverse'' > >> from install.rb:1524:in `exec_task_traverse'' > >> from install.rb:1519:in `exec_task_traverse'' > >> from install.rb:1246:in `exec_setup'' > >> from install.rb:996:in `exec_setup'' > >> from install.rb:826:in `invoke'' > >> from install.rb:773:in `invoke'' > >> from install.rb:1578 > >> > >> So, I was unable to install FXRuby (version 1.6.13) from its sources. > >> > >> Can you give me any clue to fix this issue? > >> > >> I am running Slackware 11.0 with fox-1.6.35 > >> > >> > >> Regards, > >> > >> > >> > >> GatoLinux > >> _______________________________________________ > >> fxruby-users mailing list > >> fxruby-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/fxruby-users > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > ------------------------------ > > Message: 6 > Date: Sat, 14 Feb 2009 10:33:50 -0600 > From: Lyle Johnson <lyle at lylejohnson.name> > Subject: Re: [fxruby-users] install.rb:655:in `command'': > system("make") failed (RuntimeError) > To: "fxruby-users at rubyforge.org" <fxruby-users at rubyforge.org> > Message-ID: <7E577695-D3B6-41C8-BCD5-6DC50228220B at lylejohnson.name> > Content-Type: text/plain; charset=us-ascii; format=flowed; > delsp=yes > > Dave, > > Thanks. I''ll look at adding those #defines in the next release. Ruby > 1.8.6 has been available for so long now that I didn''t consider I > might be breaking back-compatibility! > > Sent from my iPhone > > On Feb 13, 2009, at 11:43 PM, David MacMahon > <davidm at astro.berkeley.edu> wrote: > > > Hi, Lyle, > > > > FWIW, I also ran into this problem when building fxruby against Ruby > > 1.8.5 (on SuSE 10.1, I think). I think I just hacked definitions of > > these macros into 1.8.5''s ruby.h file... > > > > RARRAY_LEN > > RARRAY_PTR > > RSTRING_LEN > > RSTRING_PTR > > > > I took the definitions from a 1.8.6 ruby.h file. > > > > IMHO, it wouldn''t be a bad thing to put them in an fxruby include > > file with #ifndef guards around them. > > > > Dave > > > > On Feb 13, 2009, at 15:48 , Lyle Johnson wrote: > > > >> What version of Ruby are you building against? I thought the > >> RARRAY_LEN macro had been available for awhile now. > >> > >> On Feb 13, 2009, at 12:53 PM, GatoLinux <gatolinux at gmail.com> wrote: > >> > >>> Hello! > >>> > >>> > >>> I used this command: > >>> > >>> > >>> ruby install.rb config -- \ --with-fox-include=/opt/fox-1.6.35/ > >>> include/ --with-fox-lib=/opt/fox-1.6.35/lib/ > >>> > >>> to configure FXRuby; then, I ran: > >>> > >>> ruby install.rb setup followed by ruby install.rb install > >>> > >>> but I got this installation error: > >>> > >>> > >>> In file included from include/FXRuby.h:825, > >>> from include/FXRbCommon.h:93, > >>> from ui_wrap.cpp:584: > >>> include/inlinestubs.h: In function `void FXApp_init(FX::FXApp*, > >>> VALUE, bool)'': > >>> include/inlinestubs.h:20: error: `RARRAY_LEN'' was not declared in > >>> this scope > >>> ui_wrap.cpp: In function `void > >>> FXFileSelector_setPatternList(FX::FXFileSelector*, VALUE)'': > >>> ui_wrap.cpp:1016: error: `RARRAY_LEN'' was not declared in this scope > >>> ui_wrap.cpp: In function `VALUE _wrap_FXComboBox_fillItems(int, > >>> VALUE*, VALUE)'': > >>> ui_wrap.cpp:4979: error: `RARRAY_LEN'' was not declared in this scope > >>> ui_wrap.cpp: In function `VALUE _wrap_FXListBox_fillItems(int, > >>> VALUE*, VALUE)'': > >>> ui_wrap.cpp:5444: error: `RARRAY_LEN'' was not declared in this scope > >>> ui_wrap.cpp: In function `VALUE _wrap_FXTreeListBox_fillItems(int, > >>> VALUE*, VALUE)'': > >>> ui_wrap.cpp:5903: error: `RARRAY_LEN'' was not declared in this scope > >>> make: *** [ui_wrap.o] Error 1 > >>> install.rb:655:in `command'': system("make") failed (RuntimeError) > >>> from install.rb:664:in `make'' > >>> from install.rb:1258:in `setup_dir_ext'' > >>> from install.rb:1532:in `traverse'' > >>> from install.rb:1549:in `dive_into'' > >>> from install.rb:1530:in `traverse'' > >>> from install.rb:1534:in `traverse'' > >>> from install.rb:1533:in `traverse'' > >>> from install.rb:1549:in `dive_into'' > >>> from install.rb:1530:in `traverse'' > >>> from install.rb:1524:in `exec_task_traverse'' > >>> from install.rb:1519:in `exec_task_traverse'' > >>> from install.rb:1246:in `exec_setup'' > >>> from install.rb:996:in `exec_setup'' > >>> from install.rb:826:in `invoke'' > >>> from install.rb:773:in `invoke'' > >>> from install.rb:1578 > >>> > >>> So, I was unable to install FXRuby (version 1.6.13) from its > >>> sources. > >>> > >>> Can you give me any clue to fix this issue? > >>> > >>> I am running Slackware 11.0 with fox-1.6.35 > >>> > >>> > >>> Regards, > >>> > >>> > >>> > >>> GatoLinux > >>> _______________________________________________ > >>> fxruby-users mailing list > >>> fxruby-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/fxruby-users > >> _______________________________________________ > >> fxruby-users mailing list > >> fxruby-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/fxruby-users > > > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20090217/8801351b/attachment-0001.html>
Lyle Johnson
2009-Feb-17 17:05 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError) (GatoLinux)
On Tue, Feb 17, 2009 at 9:57 AM, GatoLinux <gatolinux at gmail.com> wrote:> I am using ruby 1.8.4 (2005-12-24).Yikes. That''s pretty old.> As I am newbie in this matter, I am thinking in to update my Ruby version. > Maybe it can fix my issue. > > What do you think/suggest?Yes, I''d recommend updating to Ruby 1.8.6 (if possible), which is the current production version of Ruby. I do need to make a fix here for people who are using older versions of Ruby, but I''m not really supporting FXRuby on versions of Ruby prior to Ruby 1.8.6 at this point. (I have to draw the line somewhere!) Hope this helps, Lyle
David MacMahon
2009-Feb-17 19:25 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError) (GatoLinux)
On Feb 17, 2009, at 7:57 , GatoLinux wrote:> I am using ruby 1.8.4 (2005-12-24). > > I took this code from the file ruby.h in Ruby''s release: ruby-1.9.1-p0It seems likely that the underlying structures/macros are not compatible between 1.8.4 and 1.9.1. Here''s what I added to my ruby.h file to get fxruby building with Ruby 1.8.5... #ifndef RARRAY_LEN #define RARRAY_LEN(a) (RARRAY(a)->len) #endif #ifndef RARRAY_PTR #define RARRAY_PTR(a) (RARRAY(a)->ptr) #endif #ifndef RSTRING_LEN #define RSTRING_LEN(s) (RSTRING(s)->len) #endif #ifndef RSTRING_PTR #define RSTRING_PTR(s) (RSTRING(s)->ptr) #endif Hope this helps, Dave