I’m trying to integrate Sentry with my (Rust) application but I keep getting SSL-related linker errors, such as:
= note: /usr/bin/ld: /home/max/src/ul/services/target/debug/deps/libopenssl_sys-9d72d031aaceda91.rlib(openssl_sys-9d72d031aaceda91.openssl_sys.2sb60usr-cgu.7.rcgu.o): in function `openssl_sys::tls1::SSL_set_tlsext_host_name':
/home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.57/src/tls1.rs:46: undefined reference to `SSL_ctrl'
/usr/bin/ld: /home/max/src/ul/services/target/debug/deps/libopenssl_sys-9d72d031aaceda91.rlib(openssl_sys-9d72d031aaceda91.openssl_sys.2sb60usr-cgu.9.rcgu.o): in function `openssl_sys::ssl::SSL_CTX_set_mode':
/home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.57/src/ssl.rs:415: undefined reference to `SSL_CTX_ctrl'
/usr/bin/ld: /home/max/src/ul/services/target/debug/deps/libopenssl_sys-9d72d031aaceda91.rlib(openssl_sys-9d72d031aaceda91.openssl_sys.2sb60usr-cgu.9.rcgu.o): in function `openssl_sys::ssl::SSL_CTX_add_extra_chain_cert':
/home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.57/src/ssl.rs:766: undefined reference to `SSL_CTX_ctrl'
/usr/bin/ld: /home/max/src/ul/services/target/debug/deps/libopenssl_sys-9d72d031aaceda91.rlib(openssl_sys-9d72d031aaceda91.openssl_sys.2sb60usr-cgu.9.rcgu.o): in function `openssl_sys::ssl::SSL_CTX_set_min_proto_version':
/home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.57/src/ssl.rs:824: undefined reference to `SSL_CTX_ctrl'
/usr/bin/ld: /home/max/src/ul/services/target/debug/deps/libopenssl_sys-9d72d031aaceda91.rlib(openssl_sys-9d72d031aaceda91.openssl_sys.2sb60usr-cgu.9.rcgu.o): in function `openssl_sys::ssl::SSL_CTX_set_max_proto_version':
/home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.57/src/ssl.rs:833: undefined reference to `SSL_CTX_ctrl'
I’m using the sentry-0.18.1 crate, have SSL libraries and SDKs installed. I’ve tried both the native TLS feature as well as rustls and have had no success with either.