[Pkg-openssl-devel] Bug#1138382: libclamunrar: FTBFS with openssl 4.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sat May 30 17:04:28 BST 2026


Package: libclamunrar
Version: 1.3.1-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:

| /build/reproducible-path/libclamunrar-1.3.1/libclamav/crypto.c: In function ‘cl_ASN1_GetTimeT’:
| /build/reproducible-path/libclamunrar-1.3.1/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/libclamunrar-1.3.1/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/libclamunrar-1.3.1/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/libclamunrar-1.3.1/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/libclamunrar-1.3.1/libclamav/crypto.c: In function ‘cl_load_crl’:
| /build/reproducible-path/libclamunrar-1.3.1/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/libclamunrar-1.3.1/libclamav/clamav.h:31,
|                  from /build/reproducible-path/libclamunrar-1.3.1/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[3]: *** [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/libclamunrar_1.3.1-1_amd64-2026-04-19T08:46:07Z

Sebastian



More information about the Pkg-openssl-devel mailing list