From: Daniel Berger Date: 2003-07-03T02:16:33+09:00 Subject: Re: Ruby9i now available Jim Cain wrote: > Daniel Berger wrote: > >> Quick followup - it built fine with 1.6.8 but wasn't as happy with 1.8 >> (2003-06-14). Here's the result of the make command: >> >> >make >> >> >make >> gcc -fPIC -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public -I. >> -I/opt/lib/ruby/1.8/sparc-solaris2.9 >> -I/opt/lib/ruby/1.8/sparc-solaris2.9 -I. -DHAVE_OCI_H -c baseinterval.c >> baseinterval.c: In function `biv_initialize': >> baseinterval.c:31: warning: passing arg 2 of `rb_str2cstr' from >> incompatible pointer type >> [more of the same warnings...] >> Despite the warnings, a small test script worked ok. Just thought I'd >> point it out in case it leads to bigger problems down the road. > > > This is because in 1.8 rb_str2cstr(VALUE, int*) has changed to > rb_str2cstr(VALUE, long*), and I've used ints for all my lengths. > Ah, ok. Ruby has some #define's (in version.h) you could use to see which version you're building against (if you're feeling up to it). Regards, Dan