santana/ruby-informix — Issue #1: Ruby 1.9 compatibility
Author: jhollinger
Created: 2012-01-05 16:38:36+00:00
State: open

What would it take to make this compatible with Ruby 1.9? This is the final dependency keeping our Rails app at Ruby 1.8.7, and soon Rails will be dropping support 1.8.

I'm afraid I don't know anything about Ruby C extensions. The error I get from 'gem install' on 1.9.2 is

Building native extensions. This could take a while...
ERROR: Error installing ruby-informix:
ERROR: Failed to build gem native extension.

/home/jhollinger/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/home/jhollinger/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/home/jhollinger/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/jhollinger/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -I/opt/IBM/informix/incl/esql -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -o informixc.o -c informixc.c
informixc.ec:35:40: error: static declaration of ‘rb_cRational’ follows non-static declaration
/home/jhollinger/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/ruby.h:1216:19: note: previous declaration of ‘rb_cRational’ was here
informixc.ec: In function ‘rb_slob_initialize’:
informixc.ec:545:4: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat]
informixc.ec: At top level:
informixc.ec:999:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:999:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:999:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:999:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:999:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:1211:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:1211:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:1211:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:1211:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:1212:1: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec: In function ‘make_result’:
informixc.ec:1913:47: error: ‘struct RArray’ has no member named ‘ptr’
informixc.ec: In function ‘rb_database_columns’:
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2220:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2221:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2222:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2223:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2225:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2228:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2228:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2228:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2228:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2228:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec:2229:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
informixc.ec: In function ‘each_by’:
informixc.ec:2723:22: error: ‘struct RArray’ has no member named ‘len’
make: *** [informixc.o] Error 1