Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gtamba opened this issue Aug 3, 2016 · 1 comment
Open

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

gtamba opened this issue Aug 3, 2016 · 1 comment

Comments

@gtamba
Copy link
Owner

gtamba commented Aug 3, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants