Since WITH_SSL is using bundled (wolfssl as default) cannot build! $ cmake --build . --target connect -- Ubuntu -- -lcpprest -- Configuring OQGraph -- Boost version: 1.65.1 -- Performance Schema is required by TokuDB -- Configuring done -- Generating done -- Build files have been written to: /home/anel/mariadb/builds/10.4 [1/2] Building CXX object storage/connect/CMakeFiles/connect.dir/restget.cpp.o FAILED: storage/connect/CMakeFiles/connect.dir/restget.cpp.o /usr/bin/c++ -DDBUG_TRACE -DFORCE_INIT_OF_VARS -DGZ_SUPPORT -DHAVE_CONFIG_H -DHUGE_SUPPORT -DLIBXML2_SUPPORT -DLINUX -DMARIADB -DMYSQL_DYNAMIC_PLUGIN -DNOCRYPT -DODBC_SUPPORT -DREST_SOURCE -DREST_SUPPORT -DUBUNTU -DUNIX -DVCT_SUPPORT -DXMAP -DZIP_SUPPORT -D_FILE_OFFSET_BITS=64 -Dconnect_EXPORTS -I/home/anel/mariadb/10.4/wsrep-lib/include -I/home/anel/mariadb/10.4/wsrep-lib/wsrep-API/v26 -Iinclude -I/home/anel/mariadb/10.4/include -I/home/anel/mariadb/10.4/sql -Iextra/wolfssl -I/home/anel/mariadb/10.4/extra/wolfssl/wolfssl -I/home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl -I/usr/include/libxml2 -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -Wmissing-declarations -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-value -Wno-error=parentheses -Wno-error=strict-aliasing -Wno-error=misleading-indentation -Wno-error=type-limits -fpermissive -fexceptions -fPIC -g -DENABLED_DEBUG_SYNC -ggdb3 -DSAFE_MUTEX -DTRASH_FREED_MEMORY -Wall -Wextra -Wformat-security -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-value -Wno-parentheses -Wno-strict-aliasing -Wno-misleading-indentation -Wno-type-limits -fPIC -std=gnu++11 -MD -MT storage/connect/CMakeFiles/connect.dir/restget.cpp.o -MF storage/connect/CMakeFiles/connect.dir/restget.cpp.o.d -o storage/connect/CMakeFiles/connect.dir/restget.cpp.o -c /home/anel/mariadb/10.4/storage/connect/restget.cpp In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:33:0, from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/wolfcrypt/settings.h:2060:14: error: #warning "For timing resistance / side-channel attack prevention consider using harden options" [-Werror=cpp] #warning "For timing resistance / side-channel attack prevention consider using harden options" ^~~~~~~ In file included from /usr/include/boost/config.hpp:61:0, from /usr/include/boost/algorithm/string/std_containers_traits.hpp:18, from /usr/include/boost/algorithm/string.hpp:18, from /usr/include/cpprest/asyncrt_utils.h:31, from /usr/include/cpprest/astreambuf.h:23, from /usr/include/cpprest/filestream.h:19, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:5: /usr/include/boost/asio/ssl/context_base.hpp:127:3: error: ‘SSL_OP_ALL’ was not declared in this scope BOOST_ASIO_STATIC_CONSTANT(long, default_workarounds = SSL_OP_ALL); ^ /usr/include/boost/asio/ssl/context_base.hpp:128:3: error: ‘SSL_OP_SINGLE_DH_USE’ was not declared in this scope BOOST_ASIO_STATIC_CONSTANT(long, single_dh_use = SSL_OP_SINGLE_DH_USE); ^ /usr/include/boost/asio/ssl/context_base.hpp:129:3: error: ‘SSL_OP_NO_SSLv2’ was not declared in this scope BOOST_ASIO_STATIC_CONSTANT(long, no_sslv2 = SSL_OP_NO_SSLv2); ^ /usr/include/boost/asio/ssl/context_base.hpp:130:3: error: ‘SSL_OP_NO_SSLv3’ was not declared in this scope BOOST_ASIO_STATIC_CONSTANT(long, no_sslv3 = SSL_OP_NO_SSLv3); ^ /usr/include/boost/asio/ssl/context_base.hpp:131:3: error: ‘SSL_OP_NO_TLSv1’ was not declared in this scope BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1 = SSL_OP_NO_TLSv1); ^ In file included from /usr/include/boost/asio/ssl/detail/openssl_init.hpp:100:0, from /usr/include/boost/asio/ssl/context.hpp:29, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp: In destructor ‘boost::asio::ssl::detail::openssl_init_base::do_init::~do_init()’: /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:89:29: error: expected id-expression before ‘;’ token ::CONF_modules_unload(1); ^ /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:93:23: error: expected id-expression before ‘;’ token ::ENGINE_cleanup(); ^ In file included from /usr/include/boost/asio/ssl/impl/context.ipp:26:0, from /usr/include/boost/asio/ssl/context.hpp:786, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/error.hpp: At global scope: /usr/include/boost/asio/ssl/error.hpp:50:31: error: ‘ERR_LIB_SSL’ was not declared in this scope stream_truncated = ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ) ^~~~~~~~~~~ /usr/include/boost/asio/ssl/error.hpp:50:47: error: ‘SSL_R_SHORT_READ’ was not declared in this scope stream_truncated = ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ) ^~~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/error.hpp:50:63: error: ‘ERR_PACK’ was not declared in this scope stream_truncated = ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ) ^ In file included from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21:0, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp: In constructor ‘boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)’: /usr/include/boost/asio/ssl/impl/context.ipp:84:17: error: ‘::SSLv2_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv2_method()); ^ /usr/include/boost/asio/ssl/impl/context.ipp:129:17: error: ‘::SSLv3_method’ has not been declared handle_ = ::SSL_CTX_new(::SSLv3_method()); ^ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:299:36: error: ‘SSL_OP_NO_SSLv2’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:299:54: error: ‘SSL_OP_NO_SSLv3’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:304:36: error: ‘SSL_OP_NO_SSLv2’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:304:54: error: ‘SSL_OP_NO_SSLv3’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:309:36: error: ‘SSL_OP_NO_SSLv2’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:309:54: error: ‘SSL_OP_NO_SSLv3’ was not declared in this scope SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); ^~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp: In destructor ‘boost::asio::ssl::context::~context()’: /usr/include/boost/asio/ssl/impl/context.ipp:360:32: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ void* cb_userdata = handle_->default_passwd_callback_userdata; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:371:14: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ handle_->default_passwd_callback_userdata = 0; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:375:37: error: ‘SSL_CTX_get_app_data’ was not declared in this scope if (SSL_CTX_get_app_data(handle_)) ^ /usr/include/boost/asio/ssl/impl/context.ipp:381:38: error: ‘SSL_CTX_set_app_data’ was not declared in this scope SSL_CTX_set_app_data(handle_, 0); ^ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::set_verify_mode(boost::asio::ssl::context_base::verify_mode, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:469:36: error: ‘::SSL_CTX_get_verify_callback’ has not been declared ::SSL_CTX_set_verify(handle_, v, ::SSL_CTX_get_verify_callback(handle_)); ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::add_certificate_authority(const boost::asio::const_buffer&, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:530:27: error: ‘::wolfSSL_PEM_read_bio_X509’ has not been declared x509_cleanup cert = { ::PEM_read_bio_X509(bio.p, 0, 0, 0) }; ^~ /usr/include/boost/asio/ssl/impl/context.ipp:533:31: error: ‘::wolfSSL_CTX_get_cert_store’ has not been declared if (X509_STORE* store = ::SSL_CTX_get_cert_store(handle_)) ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_certificate(const boost::asio::const_buffer&, boost::asio::ssl::context_base::file_format, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:614:9: error: ‘::SSL_CTX_use_certificate_ASN1’ has not been declared if (::SSL_CTX_use_certificate_ASN1(handle_, ^~ /usr/include/boost/asio/ssl/impl/context.ipp:627:29: error: ‘::wolfSSL_PEM_read_bio_X509’ has not been declared x509_cleanup cert = { ::PEM_read_bio_X509(bio.p, 0, 0, 0) }; ^~ /usr/include/boost/asio/ssl/impl/context.ipp:630:13: error: ‘::wolfSSL_CTX_use_certificate’ has not been declared if (::SSL_CTX_use_certificate(handle_, cert.p) == 1) ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_certificate_chain(const boost::asio::const_buffer&, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:711:40: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ pem_password_cb* callback = handle_->default_passwd_callback; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:712:32: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ void* cb_userdata = handle_->default_passwd_callback_userdata; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:715:7: error: ‘::wolfSSL_PEM_read_bio_X509_AUX’ has not been declared ::PEM_read_bio_X509_AUX(bio.p, 0, ^~ /usr/include/boost/asio/ssl/impl/context.ipp:720:38: error: ‘ERR_R_PEM_LIB’ was not declared in this scope ec = boost::system::error_code(ERR_R_PEM_LIB, ^~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:725:18: error: ‘::wolfSSL_CTX_use_certificate’ has not been declared int result = ::SSL_CTX_use_certificate(handle_, cert.p); ^~ /usr/include/boost/asio/ssl/impl/context.ipp:737:16: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ if (handle_->extra_certs) ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:739:7: error: ‘::wolfSSL_sk_X509_pop_free’ has not been declared ::sk_X509_pop_free(handle_->extra_certs, X509_free); ^~ /usr/include/boost/asio/ssl/impl/context.ipp:739:33: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ ::sk_X509_pop_free(handle_->extra_certs, X509_free); ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:740:14: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ handle_->extra_certs = 0; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:744:27: error: ‘::wolfSSL_PEM_read_bio_X509’ has not been declared while (X509* cacert = ::PEM_read_bio_X509(bio.p, 0, ^~ /usr/include/boost/asio/ssl/impl/context.ipp:757:14: error: ‘::wolfSSL_ERR_peek_last_error’ has not been declared result = ::ERR_peek_last_error(); ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_private_key(const boost::asio::const_buffer&, boost::asio::ssl::context_base::file_format, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:815:40: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ pem_password_cb* callback = handle_->default_passwd_callback; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:816:32: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ void* cb_userdata = handle_->default_passwd_callback_userdata; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:826:27: error: ‘::d2i_PrivateKey_bio’ has not been declared evp_private_key.p = ::d2i_PrivateKey_bio(bio.p, 0); ^~ /usr/include/boost/asio/ssl/impl/context.ipp:829:27: error: ‘::PEM_read_bio_PrivateKey’ has not been declared evp_private_key.p = ::PEM_read_bio_PrivateKey( ^~ /usr/include/boost/asio/ssl/impl/context.ipp:842:11: error: ‘::wolfSSL_CTX_use_PrivateKey’ has not been declared if (::SSL_CTX_use_PrivateKey(handle_, evp_private_key.p) == 1) ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_rsa_private_key(const boost::asio::const_buffer&, boost::asio::ssl::context_base::file_format, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:882:40: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ pem_password_cb* callback = handle_->default_passwd_callback; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:883:32: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ void* cb_userdata = handle_->default_passwd_callback_userdata; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:893:27: error: ‘::d2i_RSAPrivateKey_bio’ has not been declared rsa_private_key.p = ::d2i_RSAPrivateKey_bio(bio.p, 0); ^~ /usr/include/boost/asio/ssl/impl/context.ipp:896:27: error: ‘::PEM_read_bio_RSAPrivateKey’ has not been declared rsa_private_key.p = ::PEM_read_bio_RSAPrivateKey( ^~ /usr/include/boost/asio/ssl/impl/context.ipp:909:11: error: ‘::SSL_CTX_use_RSAPrivateKey’ has not been declared if (::SSL_CTX_use_RSAPrivateKey(handle_, rsa_private_key.p) == 1) ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_tmp_dh_file(const string&, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:1036:23: error: ‘::wolfSSL_BIO_new_file’ has not been declared bio_cleanup bio = { ::BIO_new_file(filename.c_str(), "r") }; ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::do_use_tmp_dh(BIO*, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:1053:21: error: ‘::wolfSSL_PEM_read_bio_DHparams’ has not been declared dh_cleanup dh = { ::PEM_read_bio_DHparams(bio, 0, 0, 0) }; ^~ /usr/include/boost/asio/ssl/impl/context.ipp:1056:9: error: ‘::wolfSSL_CTX_set_tmp_dh’ has not been declared if (::SSL_CTX_set_tmp_dh(handle_, dh.p) == 1) ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::do_set_verify_callback(boost::asio::ssl::detail::verify_callback_base*, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:1072:35: error: ‘SSL_CTX_get_app_data’ was not declared in this scope if (SSL_CTX_get_app_data(handle_)) ^ /usr/include/boost/asio/ssl/impl/context.ipp:1078:41: error: ‘SSL_CTX_set_app_data’ was not declared in this scope SSL_CTX_set_app_data(handle_, callback); ^ /usr/include/boost/asio/ssl/impl/context.ipp:1081:7: error: ‘::wolfSSL_CTX_get_verify_mode’ has not been declared ::SSL_CTX_get_verify_mode(handle_), ^~ /usr/include/boost/asio/ssl/impl/context.ipp: In static member function ‘static int boost::asio::ssl::context::verify_callback_function(int, X509_STORE_CTX*)’: /usr/include/boost/asio/ssl/impl/context.ipp:1096:29: error: ‘::SSL_get_SSL_CTX’ has not been declared if (SSL_CTX* handle = ::SSL_get_SSL_CTX(ssl)) ^~ /usr/include/boost/asio/ssl/impl/context.ipp:1098:40: error: ‘SSL_CTX_get_app_data’ was not declared in this scope if (SSL_CTX_get_app_data(handle)) ^ /usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::do_set_password_callback(boost::asio::ssl::detail::password_callback_base*, boost::system::error_code&)’: /usr/include/boost/asio/ssl/impl/context.ipp:1121:31: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ void* old_callback = handle_->default_passwd_callback_userdata; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/context.hpp:786:0, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/context.ipp:1122:10: error: invalid use of incomplete type ‘SSL_CTX {aka struct WOLFSSL_CTX}’ handle_->default_passwd_callback_userdata = callback; ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35:0, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:109:16: note: forward declaration of ‘SSL_CTX {aka struct WOLFSSL_CTX}’ typedef struct WOLFSSL_CTX WOLFSSL_CTX; ^~~~~~~~~~~ In file included from /usr/include/boost/asio/ssl/rfc2818_verification.hpp:99:0, from /usr/include/boost/asio/ssl.hpp:23, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp: In member function ‘bool boost::asio::ssl::rfc2818_verification::operator()(bool, boost::asio::ssl::verify_context&) const’: /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:61:56: error: ‘wolfSSL_X509_get_ext_d2i’ was not declared in this scope X509_get_ext_d2i(cert, NID_subject_alt_name, 0, 0)); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:62:47: error: ‘sk_GENERAL_NAME_num’ was not declared in this scope for (int i = 0; i < sk_GENERAL_NAME_num(gens); ++i) ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:64:54: error: ‘sk_GENERAL_NAME_value’ was not declared in this scope GENERAL_NAME* gen = sk_GENERAL_NAME_value(gens, i); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:68:27: error: ‘V_ASN1_IA5STRING’ was not declared in this scope if (domain->type == V_ASN1_IA5STRING && domain->data && domain->length) ^~~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:74:34: error: ‘GENERAL_NAMES_free’ was not declared in this scope GENERAL_NAMES_free(gens); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:82:31: error: ‘V_ASN1_OCTET_STRING’ was not declared in this scope if (ip_address->type == V_ASN1_OCTET_STRING && ip_address->data) ^~~~~~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:89:36: error: ‘GENERAL_NAMES_free’ was not declared in this scope GENERAL_NAMES_free(gens); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:98:36: error: ‘GENERAL_NAMES_free’ was not declared in this scope GENERAL_NAMES_free(gens); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:105:26: error: ‘GENERAL_NAMES_free’ was not declared in this scope GENERAL_NAMES_free(gens); ^ /usr/include/boost/asio/ssl/impl/rfc2818_verification.ipp:114:62: error: ‘wolfSSL_X509_NAME_get_entry’ was not declared in this scope X509_NAME_ENTRY* name_entry = X509_NAME_get_entry(name, i); ^ In file included from /usr/include/boost/asio/ssl/detail/engine.hpp:163:0, from /usr/include/boost/asio/ssl/detail/buffered_handshake_op.hpp:21, from /usr/include/boost/asio/ssl/stream.hpp:29, from /usr/include/boost/asio/ssl.hpp:24, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In constructor ‘boost::asio::ssl::detail::engine::engine(SSL_CTX*)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:50:3: error: ‘::SSL_set_mode’ has not been declared ::SSL_set_mode(ssl_, SSL_MODE_ENABLE_PARTIAL_WRITE); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:50:24: error: ‘SSL_MODE_ENABLE_PARTIAL_WRITE’ was not declared in this scope ::SSL_set_mode(ssl_, SSL_MODE_ENABLE_PARTIAL_WRITE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:51:3: error: ‘::SSL_set_mode’ has not been declared ::SSL_set_mode(ssl_, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:57:3: error: ‘::BIO_new_bio_pair’ has not been declared ::BIO_new_bio_pair(&int_bio, 0, &ext_bio_, 0); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In destructor ‘boost::asio::ssl::detail::engine::~engine()’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:63:28: error: ‘wolfSSL_get_app_data’ was not declared in this scope if (SSL_get_app_data(ssl_)) ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:66:29: error: ‘wolfSSL_set_app_data’ was not declared in this scope SSL_set_app_data(ssl_, 0); ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In member function ‘boost::system::error_code boost::asio::ssl::detail::engine::set_verify_mode(boost::asio::ssl::verify_mode, boost::system::error_code&)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:81:29: error: ‘::SSL_get_verify_callback’ has not been declared ::SSL_set_verify(ssl_, v, ::SSL_get_verify_callback(ssl_)); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In member function ‘boost::system::error_code boost::asio::ssl::detail::engine::set_verify_depth(int, boost::system::error_code&)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:90:3: error: ‘::wolfSSL_set_verify_depth’ has not been declared ::SSL_set_verify_depth(ssl_, depth); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In member function ‘boost::system::error_code boost::asio::ssl::detail::engine::set_verify_callback(boost::asio::ssl::detail::verify_callback_base*, boost::system::error_code&)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:99:28: error: ‘wolfSSL_get_app_data’ was not declared in this scope if (SSL_get_app_data(ssl_)) ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:102:34: error: ‘wolfSSL_set_app_data’ was not declared in this scope SSL_set_app_data(ssl_, callback); ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In static member function ‘static int boost::asio::ssl::detail::engine::verify_callback_function(int, X509_STORE_CTX*)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:119:31: error: ‘wolfSSL_get_app_data’ was not declared in this scope if (SSL_get_app_data(ssl)) ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In member function ‘const boost::system::error_code& boost::asio::ssl::detail::engine::map_error_code(boost::system::error_code&) const’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:204:28: error: ‘wolfSSL_BIO_wpending’ was not declared in this scope if (BIO_wpending(ext_bio_)) ^ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:213:11: error: invalid use of incomplete type ‘SSL {aka struct WOLFSSL}’ if (ssl_->version == SSL2_VERSION) ^~ In file included from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/ssl.h:44:0, from /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/openssl/ssl.h:35, from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:21, from /usr/include/boost/asio/ssl/context_base.hpp:19, from /usr/include/boost/asio/ssl/context.hpp:27, from /usr/include/boost/asio/ssl.hpp:19, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /home/anel/mariadb/10.4/extra/wolfssl/wolfssl/wolfssl/callbacks.h:43:8: note: forward declaration of ‘SSL {aka struct WOLFSSL}’ struct WOLFSSL; ^~~~~~~ In file included from /usr/include/boost/asio/ssl/detail/engine.hpp:163:0, from /usr/include/boost/asio/ssl/detail/buffered_handshake_op.hpp:21, from /usr/include/boost/asio/ssl/stream.hpp:29, from /usr/include/boost/asio/ssl.hpp:24, from /usr/include/cpprest/http_client.h:53, from /home/anel/mariadb/10.4/storage/connect/restget.cpp:6: /usr/include/boost/asio/ssl/detail/impl/engine.ipp: In member function ‘boost::asio::ssl::detail::engine::want boost::asio::ssl::detail::engine::perform(int (boost::asio::ssl::detail::engine::*)(void*, std::size_t), void*, std::size_t, boost::system::error_code&, std::size_t*)’: /usr/include/boost/asio/ssl/detail/impl/engine.ipp:236:39: error: ‘::wolfSSL_BIO_ctrl_pending’ has not been declared std::size_t pending_output_before = ::BIO_ctrl_pending(ext_bio_); ^~ /usr/include/boost/asio/ssl/detail/impl/engine.ipp:241:38: error: ‘::wolfSSL_BIO_ctrl_pending’ has not been declared std::size_t pending_output_after = ::BIO_ctrl_pending(ext_bio_); ^~ cc1plus: all warnings being treated as errors ninja: build stopped: subcommand failed.