Fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’

Hey all,

I tried to do bundle install in my Rails 3 project and got this error:

/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
checking for stdio.h… yes
creating Makefile

make
gcc -I.
-I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-darwin10.2.0
-I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward
-I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -I.
-DHAVE_STDIO_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3
-ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32
-Wno-long-long -fno-common -pipe -o fast_xs.o -c fast_xs.c
fast_xs.c: In function ‘fast_xs’:
fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:170: error: ‘struct RArray’ has no member named ‘len’
fast_xs.c:175: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:176: error: ‘struct RArray’ has no member named ‘len’
make: *** [fast_xs.o] Error 1

Anyone know what’s wrong?

It seems likely that the C extensions in your gem aren’t compatible with
your Ruby version. I used to see errors like this back before the MySQL
gem
was updated for Ruby 1.9.

Can you try running under 1.8.7 to see whether you have the same issues?
If
not, you may want to check the source / release notes for the gem to see
whether or not it’s been upgraded or whether you have the newest
version.

I ended up just commenting it out.