From: Hedayat V. <hed...@ai...> - 2010-01-24 17:36:26
|
Hi Simon, /*Simon Raffeiner <sra...@st...>*/ wrote on یکشنبه ۲۴ ژانویه ۱۰، ۰۰:۳۱:۵۹: > Hello list, > > I have an older CentOS 5.3 machine with Ruby 1.8.5 standing in a data center. simspark-0.2 cannot be compiled on this machine because RSTRING_PTR(x) in lib/zeitgeist/scriptserver/rubywrapper.cpp and RARRAY_LEN(x) in lib/zeitgeist/scriptserver/scriptserver.cpp have to be changed back to RSTRING(x)->ptr and RARRAY(x)->len, like in simspark-0.1. > It is a long time that Ruby 1.8.6 is noted as a requirement, so dropping support for older versions is not unexpected. And usually there is no reason for maintaining such backward compatibility. But since that change is not too much, I'm not against the patch; specially if others face such problem :P . Anyway, thanks so much for your interest and activity. Cheers, Hedayat > If anybody else is having problems using older Ruby versions too we should probably introduce #ifdefs of the following form > > #ifndef RSTRING_PTR > # define RSTRING_PTR(s) (RSTRING(s)->ptr) > #endif > > #ifndef RARRAY_LEN > # define RARRAY_LEN(s) (RARRAY(s)->ptr) > #endif > > so the new code works for everybody. > > |