gtamba / spice_rub

Ruby wrapper for the NASA-JPL CSPICE library via SciRuby
Other
9 stars 3 forks source link

Issue with Ruby 2.3.0 : redefinition of ‘rb_array_const_ptr’ #14

Open gtamba opened 8 years ago

gtamba commented 8 years ago

Problem with linking the NMatrix headers in Ruby 2.3 (for both NMatrix 0.2.1 and 0.2.3)

gaurav@gaurav-VirtualBox:~/spice_rub$ bundle exec rake compile
mkdir -p tmp/x86_64-linux/spice_rub/2.3.0
cd tmp/x86_64-linux/spice_rub/2.3.0
/home/gaurav/.rvm/rubies/ruby-2.3.0/bin/ruby -I. ../../../../ext/spice_rub/extconf.rb
checking for nmatrix.h... yes
checking for SpiceUsr.h... yes
checking for furnsh_c() in -lcspice... yes
checking for spkez_c() in -lcspice... yes
creating Makefile
cd -
cd tmp/x86_64-linux/spice_rub/2.3.0
/usr/bin/make
compiling ../../../../ext/spice_rub/spice_ephemerides.c
In file included from ../../../../ext/spice_rub/spice_ephemerides.h:5:0,
                 from ../../../../ext/spice_rub/spice_ephemerides.c:1:
/home/gaurav/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/nmatrix-0.2.1/nmatrix.h:72:1: error: redefinition of ‘rb_array_const_ptr’
 rb_array_const_ptr(VALUE a)
 ^
In file included from /home/gaurav/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby.h:33:0,
                 from ../../../../ext/spice_rub/spice_ephemerides.h:1,
                 from ../../../../ext/spice_rub/spice_ephemerides.c:1:
/home/gaurav/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/ruby.h:2018:1: note: previous definition of ‘rb_array_const_ptr’ was here
 rb_array_const_ptr(VALUE a)
 ^
make: *** [spice_ephemerides.o] Error 1
rake aborted!
translunar commented 8 years ago

Can you open an issue on NMatrix? This looks like an API bug.