Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Daniel Berger
RE: Rubinius, rb_blocking_function_t redefinition [ reply ]  
2010-11-05 16:13
Oops, seems I missed a separate conversation where this was already dealt with. I guess I'll just wait for 2.0.5. :)

Regards,

Dan

By: Daniel Berger
RE: Rubinius, rb_blocking_function_t redefinition [ reply ]  
2010-11-05 16:06
Inspecting further I see this:

#ifndef RUBY_VM
typedef VALUE rb_blocking_function_t(void *);
#endif

Instead of checking RUBY_VM, shouldn't this be accomplished via a have_function check in the extconf.rb file?

Regards,

Dan

By: Daniel Berger
Rubinius, rb_blocking_function_t redefinition [ reply ]  
2010-11-05 15:51
Hi,

I've been playing with Rubinius, seeing if I could get ruby-oci8 to build with it.

Using the very latest from git (5-Nov-2010) I tried to install it, but got this error:

make
gcc -I. -I. -I/home/dberger/Repositories/rubinius/vm/capi/include -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -ggdb3 -O2 -fPIC -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public -Wall -c oci8lib.c
In file included from oci8lib.c:6:
oci8.h:139: error: redefinition of typedef ‘rb_blocking_function_t’
/home/dberger/Repositories/rubinius/vm/capi/include/ruby.h:1619: note: previous declaration of ‘rb_blocking_function_t’ was here
make: *** [oci8lib.o] Error 1

Any ideas? I'm not sure if the issue is on your end or if this is something wrong with Rubinius.

Regards,

Dan