FS#48620 - [asio] 1.10.6-1 does not build with OpenSSL 1.0.2.g-3
Attached to Project:
Arch Linux
Opened by Fabian Schlager (Tyrant) - Thursday, 17 March 2016, 13:02 GMT
Last edited by Jan de Groot (JGC) - Sunday, 14 May 2017, 20:39 GMT
Opened by Fabian Schlager (Tyrant) - Thursday, 17 March 2016, 13:02 GMT
Last edited by Jan de Groot (JGC) - Sunday, 14 May 2017, 20:39 GMT
|
Details
Description:
I fetched the PKGBUILD and ran makepkg, resulting in the following: asio 1.10.6-1 does not build with OpenSSL 1.0.2.g-3 because of a few missing methods: In file included from ./../../../include/asio/ssl/context.hpp:784:0, from ./../../../include/asio/ssl.hpp:19, from ssl/server.cpp:15: ./../../../include/asio/ssl/impl/context.ipp: In constructor ‘asio::ssl::context::context(asio::ssl::context_base::method)’: ./../../../include/asio/ssl/impl/context.ipp:92:29: error: ‘::SSLv3_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_method()); ^ ./../../../include/asio/ssl/impl/context.ipp:95:29: error: ‘::SSLv3_client_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_client_method()); ^ ./../../../include/asio/ssl/impl/context.ipp:98:29: error: ‘::SSLv3_server_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_server_method()); ^ In file included from ./../../../include/asio/ssl/context.hpp:784:0, from ./../../../include/asio/ssl.hpp:19, from ssl/client.cpp:15: ./../../../include/asio/ssl/impl/context.ipp: In constructor ‘asio::ssl::context::context(asio::ssl::context_base::method)’: ./../../../include/asio/ssl/impl/context.ipp:92:29: error: ‘::SSLv3_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_method()); ^ ./../../../include/asio/ssl/impl/context.ipp:95:29: error: ‘::SSLv3_client_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_client_method()); ^ ./../../../include/asio/ssl/impl/context.ipp:98:29: error: ‘::SSLv3_server_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_server_method()); ^ Makefile:1743: recipe for target 'ssl/server.o' failed Additional info: * asio version: 1.10.6-1 * OpenSSL version: 1.0.2.g-3 * I attached a patch taken from Debian that fixes the issue by putting code that uses SSLv3_method in preprocessor conditionals (same way as has been done for SSLv2_method) |
This task depends upon
conditional_sslv3.patch (1.6 KiB)
When trying to compile restbed, which depends on asio, it also fails because of this:
<pre>
In file included from /usr/include/asio/ssl/context.hpp:784:0,
from /usr/include/asio/ssl.hpp:19,
from /tmp/restbed/src/restbed/source/corvusoft/restbed/detail/socket_impl.hpp:25,
from /tmp/restbed/src/restbed/source/corvusoft/restbed/http.cpp:22:
/usr/include/asio/ssl/impl/context.ipp: In constructor ‘asio::ssl::context::context(asio::ssl::context_base::method)’:
/usr/include/asio/ssl/impl/context.ipp:92:29: error: ‘::SSLv3_method’ has not been declared
handle_ = ::SSL_CTX_new(::SSLv3_method());
^~
/usr/include/asio/ssl/impl/context.ipp:95:29: error: ‘::SSLv3_client_method’ has not been declared
handle_ = ::SSL_CTX_new(::SSLv3_client_method());
^~
/usr/include/asio/ssl/impl/context.ipp:98:29: error: ‘::SSLv3_server_method’ has not been declared
handle_ = ::SSL_CTX_new(::SSLv3_server_method());
^~
</pre>