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
This patch fixes the build failure with OpenSSL 4.0.
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?
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