knu / postgresql-plruby

PL/Ruby procedural language for the PostgreSQL database system by Guy Decoux
http://rubyforge.org/projects/plruby/
111 stars 38 forks source link

Fix for ruby 2.4 #11

Open praiskup opened 7 years ago

praiskup commented 7 years ago

FYI: Upstream dropped rb_cFixnum constant, and moved to rb_cInteger, so to fix builds we had to apply downstream patch:

http://pkgs.fedoraproject.org/cgit/rpms/postgresql-plruby.git/commit/?id=4c94c436be1a1c94183fc43706c633bfe4fb0bf5

praiskup commented 7 years ago

To ease google searching, this is the gcc error:

conversions/basic/conversions.h:5:51: error: 'rb_cFixnum' undeclared (first use in this function)
     rb_hash_aset(plruby_classes, INT2NUM(OIDOID), rb_cFixnum);
                                                   ^~~~~~~~~~
conversions/basic/conversions.h:5:51: note: each undeclared identifier is reported only once for each function it appears in