You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, for openssl 1.1.1, the SSLv23_method should be changed to TLS_method. But there is still link problem even when building the test suites in the release package:
[100%] Linking CXX executable module-tests ../src/liboatpp-openssl.a(Connection.cpp.o): In function oatpp::openssl::Connection::ConnectionContext::init()': Connection.cpp:(.text+0xc8): undefined reference to SSL_state' ../src/liboatpp-openssl.a(Connection.cpp.o): In function oatpp::openssl::Connection::ConnectionContext::initAsync()::HandshakeCoroutine::act()': Connection.cpp:(.text+0x32f): undefined reference to SSL_state' collect2: error: ld returned 1 exit status make[2]: *** [test/CMakeFiles/module-tests.dir/build.make:152: test/module-tests] Error 1 make[1]: *** [CMakeFiles/Makefile2:142: test/CMakeFiles/module-tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
It is very strange that there is no definition of SSL_state in the openssl.
The text was updated successfully, but these errors were encountered:
I find the root cause of this problem. In my building environment, there is another version of openssl in the directory /usr/local/include. Though the cmake detects the proper version, the /usr/local/include may be set before the /usr/include in the make file. I am not quite familiar with cmake, but I am wondering if there is any problem in the cmake file which may cause this problem.
Firstly, for openssl 1.1.1, the SSLv23_method should be changed to TLS_method. But there is still link problem even when building the test suites in the release package:
[100%] Linking CXX executable module-tests ../src/liboatpp-openssl.a(Connection.cpp.o): In function oatpp::openssl::Connection::ConnectionContext::init()': Connection.cpp:(.text+0xc8): undefined reference to SSL_state' ../src/liboatpp-openssl.a(Connection.cpp.o): In function oatpp::openssl::Connection::ConnectionContext::initAsync()::HandshakeCoroutine::act()': Connection.cpp:(.text+0x32f): undefined reference to SSL_state' collect2: error: ld returned 1 exit status make[2]: *** [test/CMakeFiles/module-tests.dir/build.make:152: test/module-tests] Error 1 make[1]: *** [CMakeFiles/Makefile2:142: test/CMakeFiles/module-tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
It is very strange that there is no definition of SSL_state in the openssl.
The text was updated successfully, but these errors were encountered: