Skip to content
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

Issues with not having different openssl version supported on newer linux distros #1198

Closed
SaladinAyyub opened this issue Feb 22, 2021 · 6 comments

Comments

@SaladinAyyub
Copy link

I have a Fedora 33 machine with openssl version 1:1.1.1i-3 but its failing to build. Also an issue on any newer Linux Distro with newer openssl please see to it thanks.

@SaladinAyyub
Copy link
Author

As a workaround Im using
reqwest = {version = "0.11.1", default-features = false, features = ["rustls-tls"]}
But it also forces windows and Mac OS to use the native SSL binding as cargo won't add platform specific dependencies.

@seanmonstar
Copy link
Owner

It builds on most Linux systems (checked in CI). I'd recommend looking at the rust-openssl repository to see some things you can do to try to fix compilation.

@SaladinAyyub
Copy link
Author

SaladinAyyub commented Feb 22, 2021

"error: failed to run custom build command for openssl v0.9.24" Tried everything, on Fedora and also on Arch. Newer distros wont have old openSSL support.

@SaladinAyyub
Copy link
Author

SaladinAyyub commented Feb 22, 2021

Here is people talking about reqwest about this issue as this library don't support openssl on some distros
sfackler/rust-openssl#987
@seanmonstar 0.10 supports OpenSSL 1.0.1 and newer. And everyone wants it to be in reqwest and this is since 2018. :( Maybe it won't be supported for newer distros then only windows and mac. Thanks for the support anyway

@SaladinAyyub SaladinAyyub changed the title Issues with having different openssl version Issues with not having different openssl version supported on newer linux distros Feb 22, 2021
@seanmonstar
Copy link
Owner

reqwest uses native-tls v0.2.x, which depends on openssl v0.10.x.

@SaladinAyyub
Copy link
Author

SaladinAyyub commented Feb 22, 2021

rust-tls is working but on linux openssl is the default and it causes problem on newer distributions. Also many crates having reqwest support built in and it again uses openssl default on linux which causes fail compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants