#1138461 xml-security-c: FTBFS with openssl 4.0

Package:
xml-security-c
Source:
xml-security-c
Submitter:
Sebastian Andrzej Siewior
Date:
2026-05-30 16:19:06 UTC
Severity:
normal
Tags:
#1138461#5
Date:
2026-05-30 16:18:49 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2   -pthread -g -O2 -ffile-prefix-map=/build/reproducible-path/xml-security-c-3.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o enc/OpenSSL/libxml_security_c_la-OpenSSLCryptoHash.lo `test -f 'enc/OpenSSL/OpenSSLCryptoHash.cpp' || echo './'`enc/OpenSSL/OpenSSLCryptoHash.cpp
| libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/build/reproducible-path/xml-security-c-3.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c enc/OpenSSL/OpenSSLCryptoHash.cpp  -fPIC -DPIC -o enc/OpenSSL/.libs/libxml_security_c_la-OpenSSLCryptoHash.o
| /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2   -pthread -g -O2 -ffile-prefix-map=/build/reproducible-path/xml-security-c-3.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o enc/OpenSSL/libxml_security_c_la-OpenSSLCryptoProvider.lo `test -f 'enc/OpenSSL/OpenSSLCryptoProvider.cpp' || echo './'`enc/OpenSSL/OpenSSLCryptoProvider.cpp
| libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/build/reproducible-path/xml-security-c-3.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c enc/OpenSSL/OpenSSLCryptoProvider.cpp  -fPIC -DPIC -o enc/OpenSSL/.libs/libxml_security_c_la-OpenSSLCryptoProvider.o
| enc/OpenSSL/OpenSSLCryptoProvider.cpp: In destructor 'virtual OpenSSLCryptoProvider::~OpenSSLCryptoProvider()':
| enc/OpenSSL/OpenSSLCryptoProvider.cpp:156:5: error: 'ERR_remove_state' was not declared in this scope
|   156 |     ERR_remove_state(0);
|       |     ^~~~~~~~~~~~~~~~
| make[3]: *** [Makefile:2383: enc/OpenSSL/libxml_security_c_la-OpenSSLCryptoProvider.lo] Error 1
| make[3]: Leaving directory '/build/reproducible-path/xml-security-c-3.0.0/xsec'


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/xml-security-c_3.0.0-2_amd64-2026-04-19T10:53:56Z

Sebastian