-
Notifications
You must be signed in to change notification settings - Fork 287
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
OpenSSL not available at build time security.protocol SASL_SSL for target x86_64-unknown-linux-musl #447
Comments
I've built a minimal sample at https://github.com/JorritSalverda/rdkafka-sasl2-test which even fails when I'm trying to run it on Ubuntu with openssl installed and using no features for the crate, see https://github.com/JorritSalverda/rdkafka-sasl2-test/runs/5263197385?check_suite_focus=true I'll try each and every feature combination for the current target (not musl) first to see if anything works. |
Okay for Ubuntu I did get it work with rdkafka = { version = "0.28.0", features = ["cmake-build", "ssl-vendored"] } and by installing apt package Testing with target |
Linking for
See https://github.com/JorritSalverda/rdkafka-sasl2-test/runs/5263749458?check_suite_focus=true. This is with packages |
We specify minimum versions of these libraries here. You are encouraged to update them to later versions, if desired, in your own project! No need to add them to your Cargo.toml; just run
To be blunt: the time I have available for debugging cross compilation issues is near zero. Unless you can demonstrate a specific bug in the rust-rdkafka build system that breaks cross compilation, I consider these sorts of issues as out of scope for this issue tracker. Here's what I can offer you:
|
Hi @benesch, thanks for your response. With all the difficulty in getting it to work I'll take a stab at running the lambda function with target |
Ok, I'm going to close this, then. Offer still stands to take a quick look at the output of
Did you try this, out of curiosity? I'd say that setting |
Hi @benesch I've tested with |
Hello, I'm having same issue.
I'm almost positive this is due to incorrect OpenSSL version. rdkafka only works with openssl 1.1. Got very similar results when used latest openssl-dev version on linux, and fixed it by compiling 1.1 version manually. My guess is that |
I'm trying to build a Lambda function in Rust by compiling with target
x86_64-unknown-linux-musl
I use the following dependencies:
This fails with the following error:
When switching to the following compilation works fine though
However my test to connect to confluent then fails with
Could it be possible that you need to upgrade the
openssl-sys
,sasl2-sys
andlibz-sys
versions?The text was updated successfully, but these errors were encountered: