Created attachment 177343 [details] fix compilation of software using libressl and boost asio The recent update of Boost to 1.62 introduced an incompatibility with LibreSSl due to inadequate version checks around OpenSSL 1.1 functions. The attached patch comes from Boost's Trac and resolves the build failure in libtorrent-rasterbar that occurred after the Boost update.
A commit references this bug: Author: jbeich Date: Thu Nov 24 02:30:37 UTC 2016 New revision: 426988 URL: https://svnweb.freebsd.org/changeset/ports/426988 Log: devel/boost-libs: unbreak consumers with libressl $ make WITH=ASIO -C www/nghttp2 [...] In file included from asio_common.cc:25: In file included from ./asio_common.h:32: In file included from ../src/includes/nghttp2/asio_http2.h:37: In file included from /usr/local/include/boost/asio/ssl.hpp:19: In file included from /usr/local/include/boost/asio/ssl/context.hpp:786: /usr/local/include/boost/asio/ssl/impl/context.ipp:232:27: error: no member named 'SSL_CTX_get_default_passwd_cb_userdata' in the global namespace; did you mean 'SSL_CTX_set_default_passwd_cb_userdata'? void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_); ~~^ /usr/local/include/openssl/ssl.h:1640:6: note: 'SSL_CTX_set_default_passwd_cb_userdata' declared here void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u); ^ PR: 214793 Submitted by: matthew@reztek.cz Obtained from: upstream (via Gentoo) Approved by: portmgr blanket Changes: head/devel/boost-libs/Makefile head/devel/boost-libs/files/patch-boost_asio_ssl_impl_context.ipp