[DRE-maint] Bug#725115: ruby-inline: Does not work under Ruby 2.0

Christian Hofstaedtler zeha at debian.org
Mon Jan 6 04:15:52 UTC 2014


Just tried again with the git repository (-> 3.12.2-1), and it
appears that inline.rb needs patching for the new location of
ruby/config.h on 2.0:

ruby-inline (git)-[master] % RUBYLIB=lib irb2.0
irb(main):001:0> require 'inline'; Inline.inline :C do;end
In file included from /usr/include/ruby-2.0.0/ruby.h:33:0,
                 from /home/ch/.ruby_inline/ruby-2.0.0/Inline_Inline_d41d8cd98f00b204e9800998ecf8427e.c:1:
/usr/include/ruby-2.0.0/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
 #include "ruby/config.h"
                         ^
compilation terminated.
CompilationError: error executing "gcc -shared   -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -I /usr/include/ruby-2.0.0 -I /usr/include/ruby-2.0.0/x86_64-linux-gnu -I /usr/include -L/usr/lib -o \"/home/ch/.ruby_inline/ruby-2.0.0/Inline_Inline_d41d8cd98f00b204e9800998ecf8427e.so\" \"/home/ch/.ruby_inline/ruby-2.0.0/Inline_Inline_d41d8cd98f00b204e9800998ecf8427e.c\"  ": pid 17381 exit 1


% dpkg -L ruby2.0-dev | grep config.h
/usr/include/x86_64-linux-gnu/ruby-2.0.0/ruby/config.h


-- 
 ,''`.  Christian Hofstaedtler <zeha at debian.org>
: :' :  Debian Developer
`. `'   7D1A CFFA D9E0 806C 9C4C  D392 5C13 D6DB 9305 2E03
  `-



More information about the Pkg-ruby-extras-maintainers mailing list