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

Can't install on Debian 9.2 #64

Open
kamk opened this issue Oct 13, 2017 · 5 comments
Open

Can't install on Debian 9.2 #64

kamk opened this issue Oct 13, 2017 · 5 comments

Comments

@kamk
Copy link

kamk commented Oct 13, 2017

When installing there's deprecation error:

zdir.c: In function ‘zdir_new’:
zdir.c:156:9: error: ‘readdir_r’ is deprecated [-Werror=deprecated-declarations]
         int rc = readdir_r (handle, entry, &result);
         ^~~
In file included from ../include/czmq_prelude.h:257:0,
                 from ../include/czmq.h:31,
                 from zdir.c:35:

Using --with-system-libs build option doesn't help, the result is error when requiring the gem:
rbczmq-089bb0029c35/lib/rbczmq_ext.so: undefined symbol: zmutex_new

@luopio
Copy link

luopio commented Oct 18, 2017

Same issue here on Ubuntu 17.04: crashes on readdir_r. @kamk made any progress on this?

@luopio
Copy link

luopio commented Oct 19, 2017

Taking this a bit further I've forked another fork of this to update the underlying submodules czmq and zeromq but this won't help since rbczmq itself seems to be using a deprecated v2 API. So at least the code under ext/rbczmq should be updated to use the current API

@malin-as
Copy link

As a temporary fix, one can install the gem by telling GCC to ignore deprecated declarations:

$ CPPFLAGS='-Wno-error=deprecated-declarations' gem install rbczmq -v '1.7.9'
Building native extensions. This could take a while...
Successfully installed rbczmq-1.7.9
1 gem installed

@lokeshh
Copy link

lokeshh commented Jan 17, 2019

Same problem in Ubuntu 18.04 but the workaround by @malin-as works.

@ghost
Copy link

ghost commented Aug 6, 2020

As noted above, this problem is actually one in the cmzq library itself. This was fixed in 2016, but this binding contains an old copy of the library. The proper fix would be to update that, but it seems this package has been abandoned, pity.

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

4 participants