birlorg / bitwarden-cli

Cross Platform Bitwarden library and CLI with sudolikeaboss functionality.
MIT License
47 stars 7 forks source link

Build fails on OpenBSD #6

Open rjc opened 6 years ago

rjc commented 6 years ago

Build fails on OpenBSD-current. Re-running it with RUST_BACKTRACE=1, spits out:

   Compiling tokio-timer v0.2.1
   Compiling openssl-sys v0.9.28
error: failed to run custom build command for `openssl-sys v0.9.28`
process didn't exit successfully: `/home/rjc/src/bitwarden-cli/rust/target/release/build/openssl-sys-8d69842a4625ae25/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=X86_64_UNKNOWN_OPENBSD_OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=X86_64_UNKNOWN_OPENBSD_OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=X86_64_UNKNOWN_OPENBSD_OPENSSL_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-openbsd")
HOST = Some("x86_64-unknown-openbsd")
TARGET = Some("x86_64-unknown-openbsd")
TARGET = Some("x86_64-unknown-openbsd")
HOST = Some("x86_64-unknown-openbsd")
CC_x86_64-unknown-openbsd = None
CC_x86_64_unknown_openbsd = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-openbsd")
TARGET = Some("x86_64-unknown-openbsd")
HOST = Some("x86_64-unknown-openbsd")
CFLAGS_x86_64-unknown-openbsd = None
CFLAGS_x86_64_unknown_openbsd = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-E" "/home/rjc/src/bitwarden-cli/rust/target/release/build/openssl-sys-712a6594ca51d6c7/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 through 1.1.1, or LibreSSL 2.5
through 2.7, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.

', /home/rjc/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.28/build.rs:509:9
stack backtrace:
   0: <std::ffi::c_str::NulError as core::fmt::Debug>::fmt
   1: <std::process::ExitStatus as core::fmt::Display>::fmt
   2: <std::process::ExitStatus as core::fmt::Display>::fmt
   3: <std::process::ExitStatus as core::fmt::Display>::fmt
   4: <std::process::ExitStatus as core::fmt::Display>::fmt
   5: __register_frame_info
   6: __register_frame_info
   7: __register_frame_info
   8: __register_frame_info
   9: <std::process::ExitStatus as core::fmt::Display>::fmt
  10: <std::ffi::c_str::NulError as core::fmt::Debug>::fmt
  11: <std::process::ExitStatus as core::fmt::Display>::fmt
  12: __register_frame_info
  13:

warning: build failed, waiting for other jobs to finish...
error: build failed
birlorg commented 6 years ago

Sorry! I just saw this.

The rust version is not complete by any means of the imagination. The agent in rust should work(it works for me on macOS anyway) but it crashes sometimes, and I haven't worked that out yet. You will need to use the fossil version, as I only mirror to github @ release time.

The python version should work on openBSD just fine.

birlorg commented 6 years ago

AS to your specific build issue, that's related to OpenSSL, See this case: https://github.com/sfackler/rust-openssl/issues/939