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

Dependencies are out of date for newer OpenSSL versions. #3

Open
almereyda opened this issue Apr 3, 2019 · 0 comments
Open

Dependencies are out of date for newer OpenSSL versions. #3

almereyda opened this issue Apr 3, 2019 · 0 comments

Comments

@almereyda
Copy link

After installing the OpenSSL build dependencies (see https://docs.rs/openssl/0.10.20/openssl/), this does not build after running cargo run. It shows:

$ cargo run                                
   Compiling openssl-sys v0.9.2
   Compiling num-bigint v0.1.35
   Compiling num-iter v0.1.32
   Compiling unicase v1.4.0
error: failed to run custom build command for `openssl-sys v0.9.2`
process didn't exit successfully: `/home/ya/src/github.com/machisuji/cardboard/target/debug/build/openssl-sys-c97d8f84c1378599/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=/usr/lib64
cargo:rustc-link-lib=ssl
cargo:rustc-link-lib=crypto

--- stderr
thread 'main' panicked at '

This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, but a
different version of OpenSSL was found:

    0x1010102fL

The build is now aborting due to this version mismatch.

', /home/ya/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.2/build.rs:243:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

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

After running cargo update, cargo run fails with:

error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/ya/src/github.com/machisuji/cardboard/target/debug/build/openssl-afd28e136b1155b8/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/ya/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

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

It eventually needs to be resolved upstream with the openssl-sys crate.

This has been tested on a Fedora 29 machine with latest patch level.

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

1 participant