It fails with this error: process didn't exit successfully: `/var/tmp/portage/dev-util/cargo-0.21.0/work/cargo-0.21.0/target/release/build/openssl-sys-994bfe828ca45bd9/build-script-build` (exit code: 101) --- stdout cargo:rerun-if-env-changed=OPENSSL_LIB_DIR cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR cargo:rerun-if-env-changed=OPENSSL_DIR cargo:rustc-link-lib=ssl cargo:rustc-link-lib=crypto OPT_LEVEL = Some("3") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") TARGET = Some("x86_64-unknown-linux-gnu") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") CC_x86_64-unknown-linux-gnu = None CC_x86_64_unknown_linux_gnu = None HOST_CC = None CC = None HOST = Some("x86_64-unknown-linux-gnu") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") CFLAGS_x86_64-unknown-linux-gnu = None CFLAGS_x86_64_unknown_linux_gnu = None HOST_CFLAGS = None CFLAGS = Some("-march=native -O2 -pipe -fstack-protector-all") PROFILE = Some("release") running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=native" "-O2" "-pipe" "-fstack-protector-all" "-m64" "-E" "/var/tmp/portage/dev-util/cargo-0.21.0/work/cargo-0.21.0/target/release/build/openssl-sys-01f9fee09b965dde/out/expando.c" exit code: 0 cargo:rustc-cfg=osslconf="OPENSSL_NO_BUF_FREELISTS" cargo:rustc-cfg=osslconf="OPENSSL_NO_COMP" cargo:rustc-cfg=osslconf="OPENSSL_NO_KRB5" cargo:rustc-cfg=osslconf="OPENSSL_NO_PSK" cargo:rustc-cfg=osslconf="OPENSSL_NO_RFC3779" cargo:rustc-cfg=osslconf="OPENSSL_NO_SRP" cargo:rustc-cfg=osslconf="OPENSSL_NO_SSL3_METHOD" cargo:conf=OPENSSL_NO_BUF_FREELISTS,OPENSSL_NO_COMP,OPENSSL_NO_KRB5,OPENSSL_NO_PSK,OPENSSL_NO_RFC3779,OPENSSL_NO_SRP,OPENSSL_NO_SSL3_METHOD --- stderr thread 'main' panicked at ' This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, or LibreSSL 2.5 and 2.6.0, but a different version of OpenSSL was found. The build is now aborting due to this version mismatch. I think, as openssl-sys is very strict about the version of OpenSSL/LibreSSL it supports, the DEPEND should restrict to supported version.
duplicate of #626272
*** This bug has been marked as a duplicate of bug 626272 ***