#1138399 libcrypt-ssleay-perl: FTBFS with openssl 4.0

Package:
libcrypt-ssleay-perl
Source:
libcrypt-ssleay-perl
Description:
OpenSSL support for LWP
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-11 12:55:02 UTC
Severity:
normal
Tags:
#1138399#5
Date:
2026-05-30 16:07:36 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libcrypt-ssleay-perl-0.73.06=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.73_06\" -DXS_VERSION=\"0.73_06\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   SSLeay.c
| SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notBeforeString’:
| SSLeay.xs:587:54: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|   587 |             RETVAL = (char *)X509_get_notBefore(cert)->data;
|       |                                                      ^~
| SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notAfterString’:
| SSLeay.xs:595:53: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|   595 |             RETVAL = (char *)X509_get_notAfter(cert)->data;
|       |                                                     ^~
| make[1]: *** [Makefile:354: SSLeay.o] Error 1


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/libcrypt-ssleay-perl_0.73.06-2_amd64-2026-04-19T08:00:00Z

Sebastian

#1138399#12
Date:
2026-06-11 12:53:04 UTC
From:
To:
Please find attached a patch that fixes this issue.