Public bug reported:

Imported from Debian bug http://bugs.debian.org/1138376:

Package: monero
Version: 0.18.4.5+~0+20200826-1
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: [email protected]
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:

| cd 
"/build/reproducible-path/monero-0.18.4.5+~0+20200826/obj-x86_64-linux-gnu/contrib/epee/src"
 && /usr/bin/c++ -DAUTO_INITIALIZE_EASYLOGGINGPP -DBLOCKCHAIN_DB=DB_LMDB 
-DBOOST_ASIO_ENABLE_SEQUENTIAL_STRAND_ALLOCATION -DBOOST_NO_AUTO_PTR 
-DBOOST_UUID_DISABLE_ALIGNMENT -DDEFAULT_DB_TYPE=\"lmdb\" -DHAVE_EXPLICIT_BZERO 
-DHAVE_HIDAPI -DHAVE_READLINE -DHAVE_STRPTIME -DPER_BLOCK_CHECKPOINT 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/external/rapidjson/include"
 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/external/easylogging++" 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/src" 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/include" 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/external" 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/external/supercop/include"
 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/obj-x86_64-linux-gnu/generated_include"
 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/obj-x86_64-linux-gnu/translations"
 
-I"/build/reproducible-path/monero-0.18.4.5+~0+20200826/external/db_drivers/liblmdb"
 -I/usr/include/hidapi -g -O2 
-ffile-prefix-map=/build/reproducible-path/monero-0.18.4.5+~0+20200826=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
-pthread -DNO_AES  -fno-strict-aliasing -D_GNU_SOURCE   -Wall -Wextra 
-Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra 
-Wno-error=deprecated-declarations -Wno-unused-parameter 
-Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized 
-Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=cpp -Wno-reorder 
-Wno-missing-field-initializers -fPIC  -Wformat -Wformat-security 
-fstack-protector -fstack-protector-strong -fcf-protection=full 
-fstack-clash-protection -Werror=switch -Werror=return-type 
-fno-strict-aliasing -ftemplate-depth=900 -std=c++14 -MD -MT 
contrib/epee/src/CMakeFiles/obj_epee.dir/net_ssl.cpp.o -MF 
CMakeFiles/obj_epee.dir/net_ssl.cpp.o.d -o 
CMakeFiles/obj_epee.dir/net_ssl.cpp.o -c 
"/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp"
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:
 In member function ‘void {anonymous}::openssl_rsa_free::operator()(RSA*) 
const’:
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:88:15:
 warning: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 
[-Wdeprecated-declarations]
|    88 |       RSA_free(ptr);
|       |       ~~~~~~~~^~~~~
| In file included from /usr/include/openssl/x509.h:38,
|                  from /usr/include/openssl/ssl.h:34,
|                  from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:24,
|                  from /usr/include/boost/asio/ssl/context_base.hpp:19,
|                  from /usr/include/boost/asio/ssl/context.hpp:23,
|                  from /usr/include/boost/asio/ssl.hpp:18,
|                  from 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:33:
| /usr/include/openssl/rsa.h:302:28: note: declared here
|   302 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
|       |                            ^~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:
 In member function ‘void 
{anonymous}::openssl_ec_key_free::operator()(EC_KEY*) const’:
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:106:18:
 warning: ‘void EC_KEY_free(EC_KEY*)’ is deprecated: Since OpenSSL 3.0 
[-Wdeprecated-declarations]
|   106 |       EC_KEY_free(ptr);
|       |       ~~~~~~~~~~~^~~~~
| In file included from /usr/include/openssl/x509.h:35:
| /usr/include/openssl/ec.h:1022:28: note: declared here
|  1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
|       |                            ^~~~~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:
 In function ‘bool epee::net_utils::create_rsa_ssl_certificate(EVP_PKEY*&, 
X509*&)’:
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:154:26:
 warning: ‘RSA* RSA_new()’ is deprecated: Since OpenSSL 3.0 
[-Wdeprecated-declarations]
|   154 |   openssl_rsa rsa{RSA_new()};
|       |                   ~~~~~~~^~
| /usr/include/openssl/rsa.h:212:28: note: declared here
|   212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
|       |                            ^~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:170:26:
 warning: ‘int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)’ is 
deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   170 |   if (RSA_generate_key_ex(rsa.get(), 4096, exponent.get(), nullptr) 
!= 1)
|       |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /usr/include/openssl/rsa.h:269:27: note: declared here
|   269 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, 
BIGNUM *e,
|       |                           ^~~~~~~~~~~~~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:200:42:
 error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   200 |   X509_NAME *name = X509_get_subject_name(cert);
|       |                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~
|       |                                          |
|       |                                          const X509_NAME* {aka const 
X509_name_st*}
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:
 In function ‘bool epee::net_utils::create_ec_ssl_certificate(EVP_PKEY*&, 
X509*&, int)’:
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:224:35:
 warning: ‘EC_KEY* EC_KEY_new()’ is deprecated: Since OpenSSL 3.0 
[-Wdeprecated-declarations]
|   224 |   openssl_ec_key ec_key{EC_KEY_new()};
|       |                         ~~~~~~~~~~^~
| /usr/include/openssl/ec.h:987:31: note: declared here
|   987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void);
|       |                               ^~~~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:247:23:
 warning: ‘int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)’ is deprecated: 
Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   247 |   if (EC_KEY_set_group(ec_key.get(), group) != 1)
|       |       ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| /usr/include/openssl/ec.h:1055:27: note: declared here
|  1055 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const 
EC_GROUP *group);
|       |                           ^~~~~~~~~~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:252:26:
 warning: ‘int EC_KEY_generate_key(EC_KEY*)’ is deprecated: Since OpenSSL 
3.0 [-Wdeprecated-declarations]
|   252 |   if (EC_KEY_generate_key(ec_key.get()) != 1)
|       |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
| /usr/include/openssl/ec.h:1114:27: note: declared here
|  1114 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key);
|       |                           ^~~~~~~~~~~~~~~~~~~
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:281:42:
 error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   281 |   X509_NAME *name = X509_get_subject_name(cert);
|       |                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~
|       |                                          |
|       |                                          const X509_NAME* {aka const 
X509_name_st*}
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:
 In lambda function:
| 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:617:22:
 warning: 
‘boost::asio::detail::wrapped_handler<boost::asio::io_context::strand, 
Handler, boost::asio::detail::is_continuation_if_running> 
boost::asio::io_context::strand::wrap(Handler) [with Handler = 
epee::net_utils::ssl_options_t::handshake(boost::asio::io_context&, 
boost::asio::ssl::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> 
>&, boost::asio::ssl::stream_base::handshake_type, boost::asio::const_buffer, 
const std::string&, std::chrono::milliseconds) const::<lambda()>::<lambda(const 
ec_t&, size_t)>]’ is deprecated: Use boost::asio::bind_executor() 
[-Wdeprecated-declarations]
|   617 |           strand.wrap(on_handshake)
|       |           ~~~~~~~~~~~^~~~~~~~~~~~~~
| In file included from /usr/include/boost/asio/strand.hpp:555,
|                  from 
/build/reproducible-path/monero-0.18.4.5+~0+20200826/contrib/epee/src/net_ssl.cpp:36:
| /usr/include/boost/asio/io_context_strand.hpp:246:3: note: declared here
|   246 |   wrap(Handler handler)
|       |   ^~~~
| make[3]: *** [contrib/epee/src/CMakeFiles/obj_epee.dir/build.make:334: 
contrib/epee/src/CMakeFiles/obj_epee.dir/net_ssl.cpp.o] Error 1


Full buildlog
        
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/monero_0.18.4.5+~0+20200826-1_amd64-2026-04-19T08:20:33Z

Sebastian

** Affects: monero (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: monero (Debian)
     Importance: Undecided
         Status: New


** Tags: ftbfs openssl-4.0

** Bug watch added: Debian Bug tracker #1138376
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138376

** Changed in: monero (Debian)
 Remote watch: None => Debian Bug tracker #1138376

** Tags added: ftbfs openssl-4.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154924

Title:
  monero: FTBFS with openssl 4.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/monero/+bug/2154924/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to