rbczmq icon indicating copy to clipboard operation
rbczmq copied to clipboard

Can't install on Debian 9.2

Open kamk opened this issue 8 years ago • 5 comments

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

kamk avatar Oct 13 '17 08:10 kamk

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

luopio avatar Oct 18 '17 09:10 luopio

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

luopio avatar Oct 19 '17 07:10 luopio

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

malin-as avatar Apr 18 '18 08:04 malin-as

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

lokeshh avatar Jan 17 '19 06:01 lokeshh

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.

ghost avatar Aug 06 '20 09:08 ghost