-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
Build failed in Alpine Linux. #1624
Comments
You'll want to file this on the openssl-src crate about it not recognizing the |
bump |
|
Does this issue still occur? As far as I can tell |
On Alpine v3.18.3, I'm getting pretty much the same error message when trying to build this package as part of a build of
|
This appears to be a consequence of https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/rust/alpine-target.patch which Alpine applies. It's not clear how ecosystem packages are expected to deal with this. However, from simply reading the error message I infer that you could try modifying https://github.com/alexcrichton/openssl-src-rs/blob/26dc3c81d8ebee5f7ec40835e29bf9f37e648ab2/src/lib.rs#L241 to add that target and see if it works. I have no opinion on whether such a PR should be accepted upstream. |
Thanks for your incredibly fast response, Alex I noticed the official Vector binary is called
I've a ton of experience of building open source, but I'm a total newb on Rust! Alpine is our go-to platform for containers, but we need an additional feature in vector, so I wanted to see if I could add it. |
After grep'ing about the src, found that
|
Does anyone have any recipe to build it? |
If a statically linked OpenSSL would work for you, you can try following the approach I use here: https://github.com/secutils-dev/secutils/blob/main/Dockerfile (ignore |
Thank you @azasypkin, works as a sharm |
then, when you run it, you have to use but the OEM binary for musl also works fine for me |
You should be able to use
Lacking context on that connection, but Vector defaults to not having a legacy provider (see their docs at
rust-openssl/openssl-sys/build/main.rs Lines 47 to 57 in 3439059
For reference, additional Alpine/musl advice is covered in this issue: #1627 (comment) |
I tried to build a rust program which rely on
openssl-sys
, but it failed:I have already install openssl on my system before:
How can I solve this problem?
The text was updated successfully, but these errors were encountered: