Public bug reported:

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

Package: icinga2
Version: 2.15.2-2
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:

| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp: In function 
‘icinga::String icinga::GetCertificateCN(const std::shared_ptr<x509_st>&)’:
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:431:51: 
error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   431 |         return 
GetX509NameCN(X509_get_subject_name(certificate.get()));
|       |                              ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
|       |                                                   |
|       |                                                   const X509_NAME* 
{aka const X509_name_st*}
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:591:60: 
error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   591 |                 X509_NAME *name = X509_REQ_get_subject_name(req);
|       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|       |                                                            |
|       |                                                            const 
X509_NAME* {aka const X509_name_st*}
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:768:65: 
error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   768 |         return CreateCert(pubkey, subject, 
X509_get_subject_name(cacert.get()), privkey, ca);
|       |                                            
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
|       |                                                                 |
|       |                                                                 const 
X509_NAME* {aka const X509_name_st*}
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:643:83: note: 
initializing argument 3 of ‘std::shared_ptr<x509_st> 
icinga::CreateCert(EVP_PKEY*, X509_NAME*, X509_NAME*, EVP_PKEY*, bool)’
|   643 | std::shared_ptr<X509> CreateCert(EVP_PKEY *pubkey, X509_NAME 
*subject, X509_NAME *issuer, EVP_PKEY *cakey, bool ca)
|       |                                                                       
 ~~~~~~~~~~~^~~~~~
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp: In function 
‘std::shared_ptr<x509_st> icinga::CreateCertIcingaCA(const 
std::shared_ptr<x509_st>&)’:
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:774:68: 
error: invalid conversion from ‘const X509_NAME*’ {aka ‘const 
X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   774 |         return CreateCertIcingaCA(pkey.get(), 
X509_get_subject_name(cert.get()));
|       |                                               
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
|       |                                                                    |
|       |                                                                    
const X509_NAME* {aka const X509_name_st*}
| /build/reproducible-path/icinga2-2.15.2/lib/base/tlsutility.cpp:731:71: note: 
initializing argument 2 of ‘std::shared_ptr<x509_st> 
icinga::CreateCertIcingaCA(EVP_PKEY*, X509_NAME*, bool)’
|   731 | std::shared_ptr<X509> CreateCertIcingaCA(EVP_PKEY *pubkey, X509_NAME 
*subject, bool ca)
|       |                                                            
~~~~~~~~~~~^~~~~~~

Full buildlog
        
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/icinga2_2.15.2-2_amd64-2026-04-19T09:08:24Z

Sebastian

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

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


** Tags: ftbfs openssl-4.0

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

** Changed in: icinga2 (Debian)
 Remote watch: None => Debian Bug tracker #1138304

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

Title:
  icinga2: FTBFS with openssl 4.0

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


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

Reply via email to