I am compiling my c++ code by linking the openssl shared objects using cmake. I am getting below compilation issue.
In function boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)':
/usr/include/boost/asio/ssl/impl/context.ipp:81: undefined reference to `SSLv2_method'
/usr/include/boost/asio/ssl/impl/context.ipp:84: undefined reference to `SSLv2_client_method'
/usr/include/boost/asio/ssl/impl/context.ipp:87: undefined reference to `SSLv2_server_method'
CMakeFile.txt
find_library(SSL_LIB libssl.so REQUIRED)
find_library(CRYPTO_LIB libcrypto.so REQUIRED)
target_link_libraries (rtcc
${RTCC_LIBS}
${Boost_LIBRARIES}
${SSL_LIB}
${CRYPTO_LIB}
)
Versions:
Boost : 1.54
*apt-cache policy openssl* gives
Openssl : Installed: 1.0.1f-1ubuntu2.19
ubuntu : 14.04
Could you please help me in resoving this issue.