Ruby1.9 and fcgi

I’m testing some web applications (not rails) that use ruby-fcgi with
current trunk version of ruby1.9 (btw, I’m glad to see now, that gem
is included as a part of ruby :-D).
Well, the thing is, that when trying to install fcgi using gem, this
is what I get:

gcc -I. -I/opt/ruby1.9/include/ruby-1.9/i686-darwin9.0.0 -I/opt/
ruby1.9/include/ruby-1.9 -I. -DHAVE_FCGIAPP_H -fno-common -g -O2 -
pipe -fno-common -c fcgi.c
fcgi.c: In function ‘fcgi_stream_write’:
fcgi.c:225: error: ‘struct RString’ has no member named ‘ptr’
fcgi.c:225: error: ‘struct RString’ has no member named ‘len’
fcgi.c: In function ‘fcgi_stream_puts’:
fcgi.c:308: error: ‘struct RString’ has no member named ‘ptr’
fcgi.c:308: error: ‘struct RString’ has no member named ‘len’
fcgi.c: In function ‘fcgi_stream_gets’:
fcgi.c:382: error: ‘struct RString’ has no member named ‘len’
make: *** [fcgi.o] Error 1

Apparently fcgi is trying to access some struct members that have
changed in Ruby 1.9. Before digging into the fcgi gem, does anyone
know if the mantainer of this gem is working in ruby1.9 support?

regards,

On Nov 20, 2007, at 1:46 PM, Rolando A. wrote:

Apparently fcgi is trying to access some struct members that have
changed in Ruby 1.9. Before digging into the fcgi gem, does anyone
know if the mantainer of this gem is working in ruby1.9 support?

nevermind… it was an easy fix :stuck_out_tongue:
I’ll send the patches to the ruby-fcgi mantainers.

regards,