Closed msm-code closed 5 years ago
Yes, the version in Debian jessie (4.0.5) should be new enough. Regarding your linker failure: there is code in the build.rs
script that should check wether the libzmq used supports zmq_has
, and if it does not, the rest of the codebase tries to work around that (grep for ZMQ_HAS_ZMQ_HAS
to see what I mean). I'll try to setup a jessie environment and reproduce your issue locally.
Could you try building with cargo build --no-default-features
? This is required for building against zmq
versions before 4.1. I will update the documentation accordingly.
Unfortunately, it seems to be impossible to auto-detect that, as that would require being able to call zmq_has
from build.rs
if libzmq
is new enough, without a link-time dependency on zmq_has
. On second thought, it might even be possible, but would require using something like dlopen
to obtain a function pointer to zmq_has
. This approach is not portable across operating systems, and probably would be quite a bit more hassle than it's worth.
I have the same problem, also on Jessie. I tried with cargo build --no-default-features
but I get the same error message (build.rs:8: undefined reference to 'zmq_has'
)
The offending build script line is inside a function marked with #[cfg(feature = "zmq_has")]
so I assume that cfg
is misreporting somehow. I experimentally forced the issue in a local copy by straight-up removing the zmq_has
version of main
there, and the project built successfully.
Same issue Ubuntu 14:04
is there a solution to this problem .....
seeing the same issue on nixos
seems resolved in latest commit?
same issue on centos7. rust-zmq==0.8
what is stopping rust-zmq
rolling a new release with the fix in it?
actually I tried 4.2.5 and it works fine. But for now i have similar problem on windows.
yeah i think we were seeing windows issues too
I've just now published 0.8.3, which contains the commit that should fix this issue. Can someone on an ancient distro verify?
we stopped using zmq soz
Given this was only an issue with libzmq versions older that what's required for the latest release of zmq (i.e., 0.9.0), and that it should be fixed in 0.8.3, I'm going to close this issue. Feel free to reopen should you encounter this issue in 0.8.3.
Datapoint: alas am stuck on zmq 3.4. I can confirm it is still an issue on 0.8.3 with ubuntu 16 on wsl2
What I did:
Installed clean Debian Jessie, needed packages and recommended zmq bindings
And:
And:
I thought that libzmq3-dev should be good for rust-zmq?