#1138453 imapfilter: FTBFS with openssl 4.0

Package:
imapfilter
Source:
imapfilter
Description:
filter mail in your IMAP account
Submitter:
Sebastian Andrzej Siewior
Date:
2026-08-03 21:33:02 UTC
Severity:
normal
Tags:
#1138453#5
Date:
2026-05-30 16:17:32 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| cc -Wall -Wextra -O -DCONFIG_SHAREDIR='"/usr/share/imapfilter"' -DCONFIG_SSL_CAPATH='"/etc/ssl/certs"' -DCONFIG_SSL_CAFILE='"/etc/ssl/cert.pem"' -I/usr/include/lua5.4  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cert.o cert.c
| cert.c: In function ‘get_serial’:
| cert.c:189:19: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘struct asn1_string_st’}
|   189 |         if (serial->length <= (int)sizeof(long)) {
|       |                   ^~
| cert.c:191:27: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘struct asn1_string_st’}
|   191 |                 if (serial->type == V_ASN1_NEG_INTEGER) {
|       |                           ^~
| cert.c:197:27: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘struct asn1_string_st’}
|   197 |                 if (serial->type == V_ASN1_NEG_INTEGER) {
|       |                           ^~
| cert.c:200:39: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘struct asn1_string_st’}
|   200 |                 for (i = 0; i < serial->length; i++) {
|       |                                       ^~
| cert.c:203:35: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘struct asn1_string_st’}
|   203 |                             serial->data[i]);
|       |                                   ^~
| make[2]: *** [<builtin>: cert.o] Error 1

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/imapfilter_2.8.3-1_amd64-2026-04-19T07:30:34Z

Sebastian

#1138453#24
Date:
2026-08-03 21:31:14 UTC
From:
To:
Dear Maintainer,

The patch fixes the build issue.