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

libsodium dependency #45

Open
aleyan opened this issue Aug 19, 2015 · 0 comments
Open

libsodium dependency #45

aleyan opened this issue Aug 19, 2015 · 0 comments

Comments

@aleyan
Copy link

aleyan commented Aug 19, 2015

According to the README this is a fat gem that has all the libs baked in with no installation of system libs necessary.

However, when I tried to build it, it complains about sodium.h being missing. It looks like it is one of the dependencies for zeromq. I am not very knowledgeable about these things because I live in a ruby world, but my guess is that you already had it in your path and it wasn't clear that it was being pulled in.

On OSX Yosemite does not come with libsodium. I got it via macport and then set the path to it via C_INCLUDE_PATH and CPLUS_INCLUDE_PATH because pkg-config wasn't used.

Do we want to include libsodium as another submodule or do something else? I can help out if needed.

"make && make install"
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CXX      libzmq_la-address.lo
  CXX      libzmq_la-clock.lo
  CXX      libzmq_la-ctx.lo
  CXX      libzmq_la-curve_client.lo
curve_client.cpp:24:10: fatal error: 'sodium.h' file not found
#include <sodium.h>
         ^
1 error generated.
make[2]: *** [libzmq_la-curve_client.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
ZeroMQ compile error!
*** ../../../../ext/rbczmq/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
bwalex added a commit to bwalex/rbczmq that referenced this issue Oct 25, 2015
Statically link against libzmq, czmq and libsodium, to avoid issues with
dynamic linking of libzmq (see e.g. methodmissing#43).

Whilst on it (mainly because the existing versions of czmq/libzmq were
being a PITA to get to link statically properly), also bump the versions
of libzmq and czmq.

With czmq now being at API v3, also adjust the extension to be
compatible with it. It still uses a fair number of deprecated APIs, but
it absolutely works with API v3.

Fixes methodmissing#43
Fixes methodmissing#45 (hopefully)
Fixes methodmissing#47
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

1 participant