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

Failes to compile on ubuntu latest with openssl 1.1.1 #1164

Closed
Licenser opened this issue Oct 2, 2019 · 7 comments
Closed

Failes to compile on ubuntu latest with openssl 1.1.1 #1164

Licenser opened this issue Oct 2, 2019 · 7 comments

Comments

@Licenser
Copy link

Licenser commented Oct 2, 2019

compiling on ubuntu-latest w/ openssl 1.1.1 (default) results in the follwoing error:

  process didn't exit successfully: `/code/target.cov/debug/build/openssl-ae4e715c32d1a697/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /root/.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.
root@9488cd9f064b:/code# openssl version
OpenSSL 1.1.1  11 Sep 2018
@sfackler
Copy link
Owner

sfackler commented Oct 2, 2019

Do you have openssl headers and pkg-config installed?

openssl 0.9 does not support OpenSSL 1.1.1. Upgrade to openssl 0.10.

@Licenser
Copy link
Author

Licenser commented Oct 2, 2019

It is using openssl10:

cargo tree | grep openssl
│       ├── openssl v0.10.24
│       │   └── openssl-sys v0.9.49
├── openssl v0.10.24 (*)

@Licenser
Copy link
Author

Licenser commented Oct 2, 2019

I stand corrected somewhere a old version snuck in! The wonder of multi crate projects :/ Sorry.

@sfackler sfackler closed this as completed Oct 2, 2019
@Licenser
Copy link
Author

Licenser commented Oct 2, 2019

I stand doubly corrected, all sub crates use openssl v10.* I misread a openssl-sys as a openssl

cargo tree --all | grep openssl | grep -v -- '-sys'
│       ├── openssl v0.10.24
│       ├── openssl v0.10.24
├── openssl v0.10.24
    ├── openssl v0.10.24

@Licenser
Copy link
Author

Licenser commented Oct 2, 2019

@sfackler could we re-open this as I was overly enthusiastic about declaring it an old version?

@sfackler
Copy link
Owner

sfackler commented Oct 2, 2019

It is definitely an old version:

/root/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs

@Licenser
Copy link
Author

Licenser commented Oct 2, 2019

Good point, I did some additional digging and it turns out that a sub crate includes a old version of native-tls, which on osx doesn't depend on openssl, but on linux does. Sneaky! Thanks for your help :)

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