#1138356 znc: FTBFS with openssl 4.0

Package:
znc
Source:
znc
Description:
advanced modular IRC bouncer
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-25 17:11:01 UTC
Severity:
normal
Tags:
#1138356#5
Date:
2026-05-30 15:59:41 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| /build/reproducible-path/znc-1.10.1/src/Utils.cpp:131:45: error: invalid conversion from ‘const X509_NAME*’ {aka ‘const X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   131 |     X509_NAME* pName = X509_get_subject_name(pCert.get());
|       |                        ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
|       |                                             |
|       |                                             const X509_NAME* {aka const X509_name_st*}

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/znc_1.10.1-1_amd64-2026-04-19T07:45:01Z

Sebastian

#1138356#12
Date:
2026-06-16 08:19:44 UTC
From:
To:
This patch fixes the build failure with OpenSSL 4.0.
#1138356#17
Date:
2026-06-16 14:55:46 UTC
From:
To:
 From Upstream:

https://github.com/znc/znc/pull/2024#pullrequestreview-4507545023

Referencing this line in patch for src/Utils.cpp:

  +    X509_set_subject_name(pCert.get(), pName);

 From `psychon`:

 > Drive-by-comment: This change seems unrelated (or at least I do not
understand it). Why is this new function call required to fix a build
error?

#1138356#22
Date:
2026-06-25 13:32:26 UTC
From:
To:
Am 16.06.2026 um 16:55 schrieb Thomas Ward:

Hey,

since openssl 4 is in experimental, I would like to wait on the (final)
upstream fix/release

Cheers