Open nickpelone opened 2 years ago
Thanks for the report. Yes, it definitely builds on Linux... and Windows and Mac. I develop mostly on Linux, but do a quick build and test on those others before a release. But I don't have a machine with OpenBSD.
I'm not too familiar with a lot of the internals in the C lib, but maybe we should raise the issue over there to get a better idea. It sounds like the version check (conditional compilation) is the proper solution, but perhaps some type of platform check may be required is the versions are different.
Thanks for getting back to me! Sorry, busy weekend.
It sounds like the version check (conditional compilation) is the proper solution, but perhaps some type of platform check may be required is the versions are different.
This sounds good, some kind of conditional to not call this on LibreSSL since I think it outright doesn't exist. I'd halfway be curious as to its inclusion in that part of the C library in the first place.
I'll file an issue over there later today and reference here. Thanks again!
Hey there,
Thanks for having the Rust binding available.
I noticed when I bumped a project from using 0.9.1 to 0.11, I got this crazy-insane linker error when building on OpenBSD/LibreSSL, a platform I regularly use. For additional context, I normally build with the default feature set (no vendored OpenSSL or anything like that) without issue. The error:
Digging into that line, we see that line
was introduced here: https://github.com/eclipse/paho.mqtt.c/commit/a43528ba96cb66cd5ad510f65d3bde19398f02e0 and appears in the tag for the 1.3.10 release, which it looks like the crate here began using in its first 0.11 release: https://github.com/eclipse/paho.mqtt.rust/blob/master/CHANGELOG.md#v0110---2021-04-16
Later on, it got gated with a version check: https://github.com/eclipse/paho.mqtt.c/commit/7baa11e3309aa506272733d2d21971a45b90d8e1
but it doesn't seem to affect the issue.
What's weird, is that function has no bindings at all in
openssl-sys
: https://github.com/sfackler/rust-openssl/issues/1380so this should have popped out at some point, it feels like? What's weirder still, is that this project in question still seems to build on Linux. So I have no idea how that's happening.
I understand this is a little odd, but thanks for any help or pointers you might be able to provide! In the meantime, I've pinned my dependency on
paho-mqtt
at0.10
so I can continue building on OpenBSD.