Installing stable versions like 3.0.3 from source generates fatal error by make
BASERUBY = echo executable host ruby is required. use --with-baseruby option.; false CC = /opt/SUNWspro/bin/CC LD = /usr/ccs/bin/ld LDSHARED = /opt/SUNWspro/bin/CC -G CFLAGS = -g XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 CPPFLAGS = -D_XOPEN_SOURCE=500 DLDFLAGS = SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm LANG = LC_ALL = LC_CTYPE = MFLAGS =
CC: Sun C++ 5.12 SunOS_i386 2011/11/16
"./include/ruby/backward/cxxanyargs.hpp", line 207: Warning (Anachronism): Formal argument 1 of type extern "C" unsigned long()(unsigned long) in call to rb_iterate(extern "C" unsigned long()(unsigned long), unsigned long, extern "C" unsigned long()(unsigned long,unsigned long,int,const unsigned long,unsigned long), unsigned long) is being passed unsigned long()(unsigned long).
"./include/ruby/backward/cxxanyargs.hpp", line 648: Error: Template parameter ruby::backward::cxxanyargs::define_method::F requires an expression of type void()(const char*,unsigned long(*)(...),int).
"./include/ruby/internal/fl_type.h", line 205: Warning: Identifier expected instead of "}".
"internal.h", line 16: Error: #error not for C++.
*** Error code 2
The following command caused the error:
/opt/SUNWspro/bin/CC -g -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 -D_XOPEN_SOURCE=500 -o vm.o -c vm.c
make: Fatal error: Command failed for target `vm.o'