credentials_to_env
credentials_to_env copied to clipboard
Mac: Error: can't access secure credential ...: An error in the OpenSSL library
Found by @seamusabshere. This happens when running the official Mac binaries (built by Travis CI). Things we've tried:
- [x] Rebuilding locally. Works.
- [x]
cargo updateoncredentials_to_env. Didn't help. - [ ]
brew upgrade openssl
seamus@pirlo:~
$ cargo install credentials_to_env
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading credentials_to_env v0.4.3
Downloading regex v0.1.77
Compiling typeable v0.1.2
Compiling pkg-config v0.3.8
Compiling unicode-normalization v0.1.2
Compiling log v0.3.6
Compiling matches v0.1.2
Compiling semver v0.1.20
Compiling rustc-serialize v0.3.19
Compiling traitobject v0.0.1
Compiling utf8-ranges v0.1.3
Compiling unicode-bidi v0.2.3
Compiling language-tags v0.2.2
Compiling hpack v0.2.0
Compiling mime v0.2.2
Compiling rustc_version v0.1.7
Compiling libc v0.2.16
Compiling lazy_static v0.2.1
Compiling lazy_static v0.1.16
Compiling winapi-build v0.1.1
Compiling httparse v1.1.2
Compiling openssl-sys v0.7.17
Compiling kernel32-sys v0.2.2
Compiling unicase v1.4.0
Compiling idna v0.1.0
Compiling bitflags v0.7.0
Compiling solicit v0.4.4
Compiling winapi v0.2.8
Compiling regex-syntax v0.3.5
Compiling gcc v0.3.35
Compiling errno v0.1.8
Compiling memchr v0.1.11
Compiling exec v0.2.0
Compiling time v0.1.35
Compiling thread-id v2.0.0
Compiling thread_local v0.2.6
Compiling rand v0.3.14
Compiling aho-corasick v0.5.3
Compiling num_cpus v0.2.13
Compiling url v1.2.0
Compiling openssl-sys-extras v0.7.14
Compiling openssl v0.7.14
Build failed, waiting for other jobs to finish...
error: failed to compile `credentials_to_env v0.4.3`, intermediate artifacts can be found at `/var/folders/y5/qt_wf5l52jd12gzd8dxfqpt40000gp/T/cargo-install.n3sV3Hfhdjgn`
Caused by:
failed to run custom build command for `openssl v0.7.14`
process didn't exit successfully: `/var/folders/y5/qt_wf5l52jd12gzd8dxfqpt40000gp/T/cargo-install.n3sV3Hfhdjgn/release/build/openssl-5464f8f6e728c35a/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-apple-darwin")
debug=false opt-level=3
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-fPIC" "-o" "/var/folders/y5/qt_wf5l52jd12gzd8dxfqpt40000gp/T/cargo-install.n3sV3Hfhdjgn/release/build/openssl-5464f8f6e728c35a/out/src/c_helpers.o" "-c" "src/c_helpers.c"
cargo:warning=src/c_helpers.c:1:10: fatal error: 'openssl/ssl.h' file not found
cargo:warning=#include <openssl/ssl.h>
cargo:warning= ^
cargo:warning=1 error generated.
ExitStatus(ExitStatus(256))
command did not execute successfully, got: exit code: 1
--- stderr
thread 'main' panicked at 'explicit panic', .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.35/src/lib.rs:897
note: Run with `RUST_BACKTRACE=1` for a backtrace.
$ unzip credentials-to-env-testrel-osx.zip
Archive: credentials-to-env-testrel-osx.zip
inflating: credentials-to-env
$ ./credentials-to-env --version
credentials-to-env 0.4.3
$ ./credentials-to-env env
Error: can't access secure credential FOO_PASSWORD: An error in the OpenSSL library
@seamusabshere The first install failed because you didn't set up the SSL env vars again. The second failure is genuine bad news: It means I still haven't figured out why the OpenSSL library is failing on the Mac using pre-build binaries. I'll need to screen-share sometime in the coming weeks to figure this out.