sfackler / rust-openssl

OpenSSL bindings for Rust
1.4k stars 749 forks source link

unable to build on FC29 linux #1024

Closed nikomatsakis closed 5 years ago

nikomatsakis commented 5 years ago

I have run the recommended command to install dependencies:

> sudo dnf install pkg-config openssl-devel
Last metadata expiration check: 0:49:16 ago on Fri 30 Nov 2018 01:55:38 PM EST.
Package pkgconf-pkg-config-1.5.3-2.fc29.x86_64 is already installed.
Package openssl-devel-1:1.1.1-3.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

but I get the following error when building a crate that depends on openssl (the rustc-perf collector crate, to be specific):

> cargo +nightly build --release
   Compiling libz-sys v1.0.18
   Compiling idna v0.1.5
   Compiling openssl v0.9.24
   Compiling miniz-sys v0.1.10
   Compiling synstructure v0.6.1
   Compiling regex v0.2.11
   Compiling regex v1.0.1
   Compiling lzma-sys v0.1.10
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/nmatsakis/versioned/rustc-perf/target/release/build/openssl-7743ee6a3ccb90da/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/nmatsakis/.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

Kind of stuck here =)

nikomatsakis commented 5 years ago

I guess the version of openssl is too new.

nikomatsakis commented 5 years ago

Is there documentation on which versions of openssl are supposed by which versions of this crate?

lukaslueg commented 5 years ago

OpenSSL 1.1.1 is currently on fedora29 and there is support for it, no?

lukaslueg commented 5 years ago

Tag openssl-v0.9.24 fails to build on F29, current master works. Can you bump? :-)

sfackler commented 5 years ago

openssl 0.9 doesn't support OpenSSL 1.1.1. You'll need to either upgrade that dependency to openssl 0.10, or get a copy of an older version of OpenSSL.