rust cargo openssl (vendored) how to use the SSL from the OS?

Hi, any ideas on how to compile rust ports using the sys OpenSSL? For Linux to cross-compile when using musl ading this to Cargo.toml works:

Code:
openssl = { version = "0.10", features = ["vendored"] }

But when testing the port I using: poudriere testport -p default -j 14amd64 devel/gbump I get:

Code:
  Error configuring OpenSSL build:
      Command: cd "/wrkdirs/usr/ports/devel/gbump/work/target/x86_64-unknown-freebsd/release/build/openssl-sys-bf4e0c964a1f0810/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/wrkdirs/usr/ports/devel/gbump/work/target/x86_64-unknown-freebsd/release/build/openssl-sys-bf4e0c964a1f0810/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "BSD-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-O2" "-pipe" "-fstack-protector-strong" "-isystem" "/usr/local/include" "-fno-strict-aliasing"
      Failed to execute: No such file or directory (os error 2)

Just in case diff is here: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246986&action=diff and app here: https://github.com/nbari/gbump/
 
I don't know the answer to your question, but I cringe at seeing a sub-1.0 version number on something as important as openssl. Surely Rust has some mature access to encryption?
 
This seems to be working:

openssl = { version = "0.10", optional = true, features = ["vendored"] }
 
Back
Top