GatoLinux
2009-Feb-13 18:53 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError)
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.html>
Lyle Johnson
2009-Feb-13 23:48 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError)
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
David MacMahon
2009-Feb-14 05:43 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError)
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
Lyle Johnson
2009-Feb-14 16:33 UTC
[fxruby-users] install.rb:655:in `command'': system("make") failed (RuntimeError)
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