scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

Make `-DCASS_BUILD_INTEGRATION_TESTS=ON -DCASS_USE_STATIC_LIBS=ON` work #164

Open dkropachev opened 2 months ago

dkropachev commented 2 months ago

cmake -DCASS_BUILD_INTEGRATION_TESTS=ON -DCASS_USE_STATIC_LIBS=ON . && make end up in unable to link libssl dependencies:

/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2025: undefined reference to `SSL_SESSION_get_master_key'
/usr/bin/ld: ../../../libscylla-cpp-driver_static.a(openssl-e65f34f0268845a8.openssl.1d196f97fcdece9-cgu.01.rcgu.o): in function `openssl::ssl::SslSessionRef::master_key':
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2033: undefined reference to `SSL_SESSION_get_master_key'
/usr/bin/ld: ../../../libscylla-cpp-driver_static.a(openssl-e65f34f0268845a8.openssl.1d196f97fcdece9-cgu.01.rcgu.o): in function `openssl::ssl::SslSessionRef::max_early_data':
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2042: undefined reference to `SSL_SESSION_get_max_early_data'
/usr/bin/ld: ../../../libscylla-cpp-driver_static.a(openssl-e65f34f0268845a8.openssl.1d196f97fcdece9-cgu.01.rcgu.o): in function `openssl::ssl::SslSessionRef::time':
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2049: undefined reference to `SSL_SESSION_get_time'
/usr/bin/ld: ../../../libscylla-cpp-driver_static.a(openssl-e65f34f0268845a8.openssl.1d196f97fcdece9-cgu.01.rcgu.o): in function `openssl::ssl::SslSessionRef::timeout':
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2058: undefined reference to `SSL_SESSION_get_timeout'
/usr/bin/ld: ../../../libscylla-cpp-driver_static.a(openssl-e65f34f0268845a8.openssl.1d196f97fcdece9-cgu.01.rcgu.o): in function `openssl::ssl::SslSessionRef::protocol_version':
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.41/src/ssl/mod.rs:2068: undefined reference to `SSL_SESSION_get_protocol_version