Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

ruby kdbtools: compilation fails #1421

Closed
markus2330 opened this issue Mar 18, 2017 · 5 comments
Closed

ruby kdbtools: compilation fails #1421

markus2330 opened this issue Mar 18, 2017 · 5 comments
Assignees

Comments

@markus2330
Copy link
Contributor

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
@BernhardDenner
Copy link
Collaborator

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

@markus2330
Copy link
Contributor Author

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

@BernhardDenner
Copy link
Collaborator

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.

@markus2330
Copy link
Contributor Author

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.)

@BernhardDenner
Copy link
Collaborator

was fixed by fc56af6 and 9bb035b

So closing this issue.

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

No branches or pull requests

2 participants