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

Compilation error: Unable to detect OpenSSL version #987

Closed
sbstp opened this issue Sep 6, 2018 · 4 comments

Comments

@sbstp
Copy link

commented Sep 6, 2018

Running into an error while trying to compile a project that uses reqwest, my ~/.cargo/config only contains my crates.io access token, nothing else.

$ cargo build --release
   Compiling openssl v0.9.24                                                                                                                                                                                       
   Compiling openssl-sys v0.9.35
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/simon/projects/tinyhttp/compare-tests/cat-reqwest/target/release/build/openssl-10d568e63f64a017/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/simon/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

I have another library using native-tls 0.2.1 and it compiles just fine.

I'm using Debian sid, the libssl-dev package is

Package: libssl-dev
Source: openssl
Version: 1.1.1~~pre9-1
Installed-Size: 7883
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Depends: libssl1.1 (= 1.1.1~~pre9-1)
Suggests: libssl-doc
Conflicts: libssl1.0-dev
Description-en: Secure Sockets Layer toolkit - development files
 This package is part of the OpenSSL project's implementation of the SSL
 and TLS cryptographic protocols for secure communication over the
 Internet.
 .
 It contains development libraries, header files, and manpages for libssl
 and libcrypto.
Description-md5: 27044468897c45b271f879c7c6e135fe
Multi-Arch: same
Homepage: https://www.openssl.org/
Tag: devel::lang:c, devel::library, implemented-in::TODO, implemented-in::c,
 protocol::ssl, role::devel-lib, security::cryptography
Section: libdevel
Priority: optional
Filename: pool/main/o/openssl/libssl-dev_1.1.1~~pre9-1_amd64.deb
Size: 1783684
MD5sum: 82d9d2664f30fc97b8a5de64f0e0cfe1
SHA256: 66195648825d33db19f8c0e225d638f13d14230de6adbbf2489d6be072e4c45a
@sfackler

This comment has been minimized.

Copy link
Owner

commented Sep 6, 2018

openssl 0.9 doesn't support OpenSSL 1.1.1. You'll need to update to openssl 0.10.

@sbstp

This comment has been minimized.

Copy link
Author

commented Sep 6, 2018

So I'd have to bring this up upstream to reqwest? Does openssl 0.10 support OpenSSL < 1.1.1? I don't want to cause breakage.

@sfackler

This comment has been minimized.

Copy link
Owner

commented Sep 6, 2018

Yep, 0.10 supports OpenSSL 1.0.1 and newer.

@sfackler sfackler closed this Sep 8, 2018
@FallingSnow FallingSnow referenced this issue Sep 24, 2018
mitchmindtree added a commit to mitchmindtree/binance-rs that referenced this issue Oct 3, 2018
This makes it possible to compile the crate on systems with a more
recent version of OpenSSL on their system. You can see a related issue
[here](sfackler/rust-openssl#987).
mitchmindtree added a commit to mitchmindtree/coinnect that referenced this issue Oct 3, 2018
This fixes an issue where the `openssl` crate would not compile on
systems with more recent versions of OpenSSL. You can see a related
issue upstream [here](sfackler/rust-openssl#987).
@theduke theduke referenced this issue Oct 3, 2018
@RalfJung

This comment has been minimized.

Copy link

commented Oct 31, 2018

Oh that's a bummer. :/ The documentation at https://docs.rs/crate/openssl/0.9.24 makes it sound like OpenSSL 1.1 is supported by talking about that version.

ceyusa added a commit to ceyusa/media that referenced this issue May 9, 2019
Thus it will use a fixed version of openssl, avoiding this bug:

sfackler/rust-openssl#987
ceyusa added a commit to ceyusa/media that referenced this issue May 9, 2019
Thus it will use a fixed version of openssl, avoiding this bug:

sfackler/rust-openssl#987
ceyusa added a commit to ceyusa/media that referenced this issue May 9, 2019
Thus it will use a fixed version of openssl, avoiding this bug:

sfackler/rust-openssl#987
bors-servo added a commit to servo/media that referenced this issue May 9, 2019
Bump websocket version to 0.22

Thus it will use a fixed version of openssl, avoiding this bug:

sfackler/rust-openssl#987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.