launchdarkly / cpp-sdks

C++ Client/Server SDKs
Other
5 stars 2 forks source link

ci: pin OpenSSL to 3.1.1 on Windows #358

Closed cwaldren-ld closed 7 months ago

cwaldren-ld commented 7 months ago

It appears the OpenSSL 3.2 release removed some functionality that was in 3.1, which Boost.Asio relied on.

Not sure if it's actually OpenSSL 3.2 that did it, or the chocolatey packaging process.

In any case, CI will fail on Windows until either this is pinned to 3.1.1 or we bump Boost (which may have a fix 🤷‍♂️ ).

error LNK2019: unresolved external symbol EVP_PKEY_is_a referenced in function "public: class boost::system::error_code __cdecl boost::asio::ssl::context::use_rsa_private_key(class boost::asio::const_buffer const &,enum boost::asio::ssl::context_base::file_format,class boost::system::error_code &)" (?use_rsa_private_key@context@ssl@asio@boost@@QEAA?AVerror_code@system@4@AEBVconst_buffer@34@W4file_format@context_base@234@AEAV564@@Z)

launchdarkly-cpp-server.lib(asio.cpp.obj) : error LNK2019: unresolved external symbol SSL_CTX_set0_tmp_dh_pkey referenced in function "private: class boost::system::error_code __cdecl boost::asio::ssl::context::do_use_tmp_dh(struct bio_st *,class boost::system::error_code &)" (?do_use_tmp_dh@context@ssl@asio@boost@@AEAA?AVerror_code@system@4@PEAUbio_st@@AEAV564@@Z)

gtest_launchdarkly-cpp-server.exe : fatal error LNK1120: 2 unresolved externals