Skip to content

The change to BoringSSL breaks builds #102

@ckruse

Description

@ckruse

Hey there,

the change to BoringSSL breaks builds, I now get weird OpenSSL linker errors:

= note: /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl-d864c125a418118f.rlib(openssl-d864c125a418118f.openssl.86fb40cd50d7adbe-cgu.11.rcgu.o): in function `openssl::error::Error::get':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.59/src/error.rs:122: undefined reference to `ERR_get_error_all'
          /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl_sys-2290329161c421c2.rlib(openssl_sys-2290329161c421c2.openssl_sys.30b56d82c2cac715-cgu.0.rcgu.o): in function `openssl_sys::openssl::ssl::SSL_CTX_set_mode':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.95/src/./ssl.rs:246: undefined reference to `SSL_CTX_ctrl'
          /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl_sys-2290329161c421c2.rlib(openssl_sys-2290329161c421c2.openssl_sys.30b56d82c2cac715-cgu.0.rcgu.o): in function `openssl_sys::openssl::ssl::SSL_CTX_add_extra_chain_cert':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.95/src/./ssl.rs:380: undefined reference to `SSL_CTX_ctrl'
          /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl_sys-2290329161c421c2.rlib(openssl_sys-2290329161c421c2.openssl_sys.30b56d82c2cac715-cgu.0.rcgu.o): in function `openssl_sys::openssl::tls1::SSL_set_tlsext_host_name':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.95/src/./tls1.rs:24: undefined reference to `SSL_ctrl'
          /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl_sys-2290329161c421c2.rlib(openssl_sys-2290329161c421c2.openssl_sys.30b56d82c2cac715-cgu.0.rcgu.o): in function `openssl_sys::openssl::ssl::SSL_CTX_set_min_proto_version':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.95/src/./ssl.rs:455: undefined reference to `SSL_CTX_ctrl'
          /usr/bin/ld: /home/runner/work/foo/target/debug/deps/libopenssl_sys-2290329161c421c2.rlib(openssl_sys-2290329161c421c2.openssl_sys.30b56d82c2cac715-cgu.0.rcgu.o): in function `openssl_sys::openssl::ssl::SSL_CTX_set_max_proto_version':
          /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.95/src/./ssl.rs:464: undefined reference to `SSL_CTX_ctrl'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

I guess this is because of a conflict betweet OpenSSL and BoringSSL. Am I right?

What can I do to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions