[Pkg-openssl-devel] Bug#1138312: clamav: FTBFS with openssl 4.0
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sat May 30 16:51:34 BST 2026
Package: clamav
Version: 1.4.4+dfsg-1
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: openssl-4.0
OpenSSL 4.0 is in experimental. This package fails to build against it:
| cd /build/reproducible-path/clamav-1.4.4+dfsg/obj-x86_64-linux-gnu/libclamav && /usr/bin/cc -DHAVE_CONFIG_H -DTHIS_IS_LIBCLAMAV -Dclamav_EXPORTS -I/build/reproducible-path/clamav-1.4.4+dfsg/obj-x86_64-linux-gnu/libclamav -I/build/reproducible-path/clamav-1.4.4+dfsg/libclamunrar_iface -I/build/reproducible-path/clamav-1.4.4+dfsg/libclamav/.. -I/build/reproducible-path/clamav-1.4.4+dfsg/libclamav -isystem /usr/include/libxml2 -isystem /build/reproducible-path/clamav-1.4.4+dfsg/obj-x86_64-linux-gnu -isystem /usr/include/json-c -isystem /build/reproducible-path/clamav-1.4.4+dfsg/libclamav_rust -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/clamav-1.4.4+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu90 -fPIC -Wall -Wextra -Wformat-security -MD -MT libclamav/CMakeFiles/clamav.dir/crypto.c.o -MF CMakeFiles/clamav.dir/crypto.c.o.d -o CMakeFiles/clamav.dir/crypto.c.o -c /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c: In function ‘cl_ASN1_GetTimeT’:
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:1064:32: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
| 1064 | if (!(timeobj) || !(timeobj->data))
| | ^~
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:1067:27: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
| 1067 | str = (char *)(timeobj->data);
| | ^~
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:1075:16: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
| 1075 | if (timeobj->type == V_ASN1_UTCTIME) {
| | ^~
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:1084:23: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
| 1084 | } else if (timeobj->type == V_ASN1_GENERALIZEDTIME) {
| | ^~
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c: In function ‘cl_load_crl’:
| /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:1137:9: warning: ‘X509_cmp_current_time’ is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
| 1137 | if (!tme || X509_cmp_current_time(tme) < 0) {
| | ^~
| In file included from /usr/include/openssl/ssl.h:34,
| from /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/clamav.h:31,
| from /build/reproducible-path/clamav-1.4.4+dfsg/libclamav/crypto.c:64:
| /usr/include/openssl/x509.h:694:27: note: declared here
| 694 | OSSL_DEPRECATEDIN_4_0 int X509_cmp_current_time(const ASN1_TIME *s);
| | ^~~~~~~~~~~~~~~~~~~~~
| make[4]: *** [libclamav/CMakeFiles/clamav.dir/build.make:502: libclamav/CMakeFiles/clamav.dir/crypto.c.o] Error 1
Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/clamav_1.4.4+dfsg-1_amd64-2026-04-19T07:56:36Z
Sebastian
More information about the Pkg-openssl-devel
mailing list