PistonDevelopers/dyon

Failure to build for openssl v0.9.24

ryanswilson59 opened this issue · 3 comments

I tried building dyonrun by making a new package, first running
cargo new testdyon then pasting the code for dyonrun into main.rs
and then in cargo.toml the only thing I have is

[dependencies]
dyon="0.43.0"

When I run cargo run I then get the following

Updating crates.io index
   Compiling maybe-uninit v2.0.0
   Compiling libc v0.2.65
   Compiling cc v1.0.47
   Compiling autocfg v0.1.7
   Compiling pkg-config v0.3.17
   Compiling log v0.4.8
   Compiling matches v0.1.8
   Compiling cfg-if v0.1.10
   Compiling version_check v0.1.5
   Compiling byteorder v1.3.2
   Compiling openssl v0.9.24
   Compiling httparse v1.3.4
   Compiling foreign-types-shared v0.1.1
   Compiling bitflags v0.9.1
   Compiling percent-encoding v1.0.1
   Compiling safemem v0.3.3
   Compiling lazy_static v1.4.0
   Compiling traitobject v0.1.0
   Compiling lazy_static v0.2.11
   Compiling language-tags v0.2.2
   Compiling rand_core v0.4.2
   Compiling typeable v0.1.2
   Compiling itoa v0.3.4
   Compiling dtoa v0.4.4
   Compiling antidote v1.0.0
   Compiling range v1.0.0
   Compiling serde v0.9.15
   Compiling piston-float v1.0.0
   Compiling read_color v1.0.0
   Compiling unicode-bidi v0.3.4
   Compiling foreign-types v0.3.2
   Compiling unicase v1.4.2
   Compiling num-traits v0.2.9
   Compiling rand_chacha v0.1.1
   Compiling rand_pcg v0.1.2
   Compiling rand v0.6.5
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling read_token v1.0.0
   Compiling vecmath v1.0.0
   Compiling rand_hc v0.1.0
   Compiling rand_xorshift v0.1.1
   Compiling rand_isaac v0.1.1
   Compiling piston_meta v1.0.0
   Compiling smallvec v0.6.13
   Compiling log v0.3.9
   Compiling base64 v0.9.3
   Compiling num_cpus v1.11.1
   Compiling time v0.1.42
   Compiling rand_os v0.1.3
   Compiling mime v0.2.6
   Compiling unicode-normalization v0.1.9
   Compiling openssl-sys v0.9.52
   Compiling num-traits v0.1.43
   Compiling idna v0.1.5
error: failed to run custom build command for `openssl v0.9.24`

Caused by:
  process didn't exit successfully: `/home/ryan/Desktop/code/games/test-dyon/target/debug/build/openssl-fa018ab47555f4ee/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/ryan/.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

I have seen a related error elsewhere on the internet so it may be useful that openssl version returns OpenSSL 1.1.1 11 Sep 2018

Perhaps we need to update https://crates.io/crates/reqwest dependency.

The "reqwest" dependency was updated in PR #650

It compiles now, thanks.