This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Failed on linking with OpenSSL 1.1.0g #195
Copy link
Copy link
Closed
Description
I tried to build every dependency from scratch and link all dependency statically.
I used boost 1.67.0, cpprestsdk 2.9.1 and OpenSSL 1.1.0g.
However, linker give me back following error
cd /home/hyu/Snowflake/git/libsnowflakeclient/cmake-build-debug/tests && /home/hyu/Documents/clion-2017.1.1/bin/cmake/bin/cmake -E cmake_link_script CMakeFiles/test_simple_put.dir/link.txt --verbose=1
/usr/lib64/ccache/g++49 -std=c++11 -std=gnu++11 -fPIC -g -L/home/hyu/Snowflake/python35/python-dist-gcc-g++-3.5.3/lib CMakeFiles/test_simple_put.dir/utils/test_setup.c.o CMakeFiles/test_simple_put.dir/utils/TestSetup.cpp.o CMakeFiles/test_simple_put.dir/test_simple_put.cpp.o -o test_simple_put -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/curl/lib -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/openssl/lib -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/zlib/lib -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/aws/lib64 -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/cpprestsdk/lib -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/azure-storage/lib -L/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/boost/lib -Wl,-rpath,/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/curl/lib:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/openssl/lib:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/zlib/lib:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/aws/lib64:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/cpprestsdk/lib:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/azure-storage/lib:/home/hyu/Snowflake/git/libsnowflakeclient/deps-build/linux/boost/lib -rdynamic ../libsnowflakeclient.a ../../deps-build/linux/cmocka/lib/libcmocka.a -Wl,--whole-archive -lcurl ../../deps-build/linux/openssl/lib/libssl.a ../../deps-build/linux/openssl/lib/libcrypto.a -lpthread -laws-cpp-sdk-core -laws-cpp-sdk-s3 ../../deps-build/linux/cpprestsdk/lib/libcpprest.a ../../deps-build/linux/azure-storage/lib/libazurestorage.a -Wl,-Bstatic -luuid -Wl,-Bdynamic ../../deps-build/linux/libxml2/lib/libxml2.a ../../deps-build/linux/liblzma/lib/liblzma.a ../../deps-build/linux/boost/lib/libboost_atomic.a ../../deps-build/linux/boost/lib/libboost_chrono.a ../../deps-build/linux/boost/lib/libboost_system.a ../../deps-build/linux/boost/lib/libboost_filesystem.a ../../deps-build/linux/boost/lib/libboost_log.a ../../deps-build/linux/boost/lib/libboost_random.a ../../deps-build/linux/boost/lib/libboost_thread.a -Wl,--no-whole-archive -lrt -ldl -lz
../../deps-build/linux/cpprestsdk/lib/libcpprest.a(http_client_asio.cpp.o): In function `boost::asio::ssl::detail::engine::verify_callback_function(int, x509_store_ctx_st*)':
http_client_asio.cpp:(.text._ZN5boost4asio3ssl6detail6engine24verify_callback_functionEiP17x509_store_ctx_st[_ZN5boost4asio3ssl6detail6engine24verify_callback_functionEiP17x509_store_ctx_st]+0x26f): undefined reference to `sk_num'
http_client_asio.cpp:(.text._ZN5boost4asio3ssl6detail6engine24verify_callback_functionEiP17x509_store_ctx_st[_ZN5boost4asio3ssl6detail6engine24verify_callback_functionEiP17x509_store_ctx_st]+0x281): undefined reference to `sk_value'
../../deps-build/linux/cpprestsdk/lib/libcpprest.a(http_client_asio.cpp.o): In function `boost::asio::ssl::detail::verify_callback<web::http::client::details::asio_context::write_request()::{lambda(bool, boost::asio::ssl::verify_context&)#1}>::call(bool, boost::asio::ssl::verify_context&)':
http_client_asio.cpp:(.text._ZN5boost4asio3ssl6detail15verify_callbackIZN3web4http6client7details12asio_context13write_requestEvEUlbRNS1_14verify_contextEE_E4callEbSA_[_ZN5boost4asio3ssl6detail15verify_callbackIZN3web4http6client7details12asio_context13write_requestEvEUlbRNS1_14verify_contextEE_E4callEbSA_]+0x1e7): undefined reference to `sk_num'
http_client_asio.cpp:(.text._ZN5boost4asio3ssl6detail15verify_callbackIZN3web4http6client7details12asio_context13write_requestEvEUlbRNS1_14verify_contextEE_E4callEbSA_[_ZN5boost4asio3ssl6detail15verify_callbackIZN3web4http6client7details12asio_context13write_requestEvEUlbRNS1_14verify_contextEE_E4callEbSA_]+0x1f9): undefined reference to `sk_value'
../../deps-build/linux/cpprestsdk/lib/libcpprest.a(http_client_asio.cpp.o): In function `web::http::client::details::asio_connection::upgrade_to_ssl(std::function<void (boost::asio::ssl::context&)> const&)':
http_client_asio.cpp:(.text._ZN3web4http6client7details15asio_connection14upgrade_to_sslERKSt8functionIFvRN5boost4asio3ssl7contextEEE[_ZN3web4http6client7details15asio_connection14upgrade_to_sslERKSt8functionIFvRN5boost4asio3ssl7contextEEE]+0x2d): undefined reference to `SSLv23_method'
../../deps-build/linux/cpprestsdk/lib/libcpprest.a(http_server_asio.cpp.o): In function `web::http::experimental::listener::details::connection::connection(std::unique_ptr<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::default_delete<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> > > >, web::http::experimental::listener::http_linux_server*, web::http::experimental::listener::details::hostport_listener*, bool, std::function<void (boost::asio::ssl::context&)> const&)':
http_server_asio.cpp:(.text._ZN3web4http12experimental8listener7details10connectionC2ESt10unique_ptrIN5boost4asio19basic_stream_socketINS7_2ip3tcpENS7_21stream_socket_serviceISA_EEEESt14default_deleteISD_EEPNS2_17http_linux_serverEPNS3_17hostport_listenerEbRKSt8functionIFvRNS7_3ssl7contextEEE[_ZN3web4http12experimental8listener7details10connectionC5ESt10unique_ptrIN5boost4asio19basic_stream_socketINS7_2ip3tcpENS7_21stream_socket_serviceISA_EEEESt14default_deleteISD_EEPNS2_17http_linux_serverEPNS3_17hostport_listenerEbRKSt8functionIFvRNS7_3ssl7contextEEE]+0x226): undefined reference to `SSLv23_method'
collect2: error: ld returned 1 exit status
It seems that somehow SSLv23_method
symbol is missing. After checking OpenSSL documentation,
it seems that this method is deprecated. However, deprecated means they should still support it, right?
When building openssl, I do have configure option enable-ssl2
enable-ssl3
enable-ssl3-method
, but somehow it still does not work. I am wondering if anyone else have similar problems?
Metadata
Metadata
Assignees
Labels
No labels