Libelektra: ruby kdbtools: compilation fails

Created on 18 Mar 2017  路  5Comments  路  Source: ElektraInitiative/libelektra

Possibly since #1346 the ruby bindings do not compile anymore:

[ 71%] Swig source
/home/markus/Projekte/Elektra/current/src/bindings/swig/ruby/kdbtools.i:42: Error: Unable to find 'std_shared_ptr.i'
src/bindings/swig/ruby/CMakeFiles/swig-ruby-tools.dir/build.make:53: recipe for target 'src/bindings/swig/ruby/kdbtoolsRUBY_wrap.cxx' failed
make[2]: *** [src/bindings/swig/ruby/kdbtoolsRUBY_wrap.cxx] Error 1
CMakeFiles/Makefile2:14664: recipe for target 'src/bindings/swig/ruby/CMakeFiles/swig-ruby-tools.dir/all' failed
make[1]: *** [src/bindings/swig/ruby/CMakeFiles/swig-ruby-tools.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

Workaround: exclude swig_ruby from BINDINGS.

Btw. Does it make sense to split ruby and rubytools bindings?

System

  • Debian Jessie
  • ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
  • SWIG Version 3.0.2
bug build

All 5 comments

Seems to be a too old swig Version. I'll check the minimal version again

Thanks, would be great if you can support the Jessie version.

Oh, shared pointer support for Ruby was added with 3.0.8. I think this is the minimum version we can support. So for Debian we sill need to build Swig from source before building the Ruby bindings.
I'll add a check in the CMakeLists.txt for that later.

Thanks! Okay, so let us add the check (please also put a comment why it is needed).

Can you separate the libtools and the other part? (Only libtools needs 3.0.8?)

Maybe we can backport swig and libgit2 for jessie. (libgit2 is also too old in Jessie for gitresolver to work.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markus2330 picture markus2330  路  3Comments

markus2330 picture markus2330  路  3Comments

mpranj picture mpranj  路  3Comments

markus2330 picture markus2330  路  3Comments

markus2330 picture markus2330  路  4Comments