#1138341 libnet-ssleay-perl: FTBFS with openssl 4.0

Package:
libnet-ssleay-perl
Source:
libnet-ssleay-perl
Description:
Perl module for Secure Sockets Layer (SSL)
Submitter:
Sebastian Andrzej Siewior
Date:
2026-09-01 02:35:02 UTC
Severity:
normal
Tags:
#1138341#5
Date:
2026-05-30 15:56:55 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| x86_64-linux-gnu-gcc -c  -I"/usr/include" -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/libnet-ssleay-perl-1.96=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"1.96\" -DXS_VERSION=\"1.96\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"  -DOPENSSL_API_COMPAT=908 -DNET_SSLEAY_PERL_VERSION=5040001 SSLeay.c
| SSLeay.xs: In function ‘ASN1_TIME_timet’:
| SSLeay.xs:2197:40: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2197 |     const char *p = (const char*) asn1t->data;
|       |                                        ^~
| SSLeay.xs:2202:14: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2202 |     if (asn1t->type == V_ASN1_UTCTIME) {
|       |              ^~
| SSLeay.xs:2203:18: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2203 |         if (asn1t->length<12 || asn1t->length>17) return 0;
|       |                  ^~
| SSLeay.xs:2203:38: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2203 |         if (asn1t->length<12 || asn1t->length>17) return 0;
|       |                                      ^~
| SSLeay.xs:2204:18: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2204 |         if (asn1t->length>12) tz = 12;
|       |                  ^~
| SSLeay.xs:2206:18: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2206 |         if (asn1t->length<14) return 0;
|       |                  ^~
| SSLeay.xs:2207:18: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2207 |         if (asn1t->length>14) {
|       |                  ^~
| SSLeay.xs:2210:37: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2210 |                 for(i=msec+1;i<asn1t->length && p[i]>='0' && p[i]<='9';i++) ;
|       |                                     ^~
| SSLeay.xs:2211:28: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2211 |                 if (i<asn1t->length) tz = i;
|       |                            ^~
| SSLeay.xs:2218:38: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2218 |     l = msec ? msec : tz ? tz : asn1t->length;
|       |                                      ^~
| SSLeay.xs:2225:14: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2225 |     if (asn1t->type == V_ASN1_UTCTIME) { /* YY - two digit year */
|       |              ^~
| SSLeay.xs:2245:22: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2245 |             if (asn1t->length>tz+1 ) return 0;
|       |                      ^~
| SSLeay.xs:2246:25: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2246 |         } else if (asn1t->length<tz+5 || (p[tz]!='-' && p[tz]!='+')) {
|       |                         ^~
| SSLeay.xs:2249:22: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
|  2249 |             if (asn1t->length>tz+5 ) return 0;
|       |                      ^~
| SSLeay.xs: In function ‘XS_Net__SSLeay_CTX_v3_new’:
| SSLeay.xs:2462:28: error: implicit declaration of function ‘SSLv3_method’; did you mean ‘SSLv23_method’? [-Wimplicit-function-declaration]
|  2462 |      RETVAL = SSL_CTX_new (SSLv3_method());
|       |                            ^~~~~~~~~~~~
|       |                            SSLv23_method
| SSLeay.xs:2462:28: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
|  2462 |      RETVAL = SSL_CTX_new (SSLv3_method());
|       |                            ^~~~~~~~~~~~~~
|       |                            |
|       |                            int
| In file included from SSLeay.xs:167:
| /usr/include/openssl/ssl.h:1654:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
|  1654 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
|       |                             ~~~~~~~~~~~~~~~~~~^~~~
| SSLeay.xs: In function ‘XS_Net__SSLeay_CTX_tlsv1_new’:
| SSLeay.xs:2480:28: error: implicit declaration of function ‘TLSv1_method’; did you mean ‘TLS_method’? [-Wimplicit-function-declaration]
|  2480 |      RETVAL = SSL_CTX_new (TLSv1_method());
|       |                            ^~~~~~~~~~~~
|       |                            TLS_method
| SSLeay.xs:2480:28: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
|  2480 |      RETVAL = SSL_CTX_new (TLSv1_method());
|       |                            ^~~~~~~~~~~~~~
|       |                            |
|       |                            int
| /usr/include/openssl/ssl.h:1654:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
|  1654 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
|       |                             ~~~~~~~~~~~~~~~~~~^~~~
| SSLeay.xs: In function ‘XS_Net__SSLeay_CTX_tlsv1_1_new’:
| SSLeay.xs:2491:28: error: implicit declaration of function ‘TLSv1_1_method’; did you mean ‘TLS_method’? [-Wimplicit-function-declaration]
|  2491 |      RETVAL = SSL_CTX_new (TLSv1_1_method());
|       |                            ^~~~~~~~~~~~~~
|       |                            TLS_method
| SSLeay.xs:2491:28: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
|  2491 |      RETVAL = SSL_CTX_new (TLSv1_1_method());
|       |                            ^~~~~~~~~~~~~~~~
|       |                            |
|       |                            int
| /usr/include/openssl/ssl.h:1654:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
|  1654 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
|       |                             ~~~~~~~~~~~~~~~~~~^~~~
| SSLeay.xs: In function ‘XS_Net__SSLeay_CTX_tlsv1_2_new’:
| SSLeay.xs:2502:28: error: implicit declaration of function ‘TLSv1_2_method’; did you mean ‘TLS_method’? [-Wimplicit-function-declaration]
|  2502 |      RETVAL = SSL_CTX_new (TLSv1_2_method());
|       |                            ^~~~~~~~~~~~~~
|       |                            TLS_method
| SSLeay.xs:2502:28: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
|  2502 |      RETVAL = SSL_CTX_new (TLSv1_2_method());
|       |                            ^~~~~~~~~~~~~~~~
|       |                            |
|       |                            int
…

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/libnet-ssleay-perl_1.96-1_amd64-2026-04-19T07:39:44Z

Sebastian

#1138341#12
Date:
2026-06-15 16:38:43 UTC
From:
To:
An upstream patch is available at https://github.com/radiator-
software/p5-net-ssleay/pull/553

#1138341#19
Date:
2026-08-30 19:51:13 UTC
From:
To:
control: tags -1 + patch
control: forwarded -1 https://github.com/radiator-software/p5-net-ssleay/pull/553

Attaching patches from upstream.

Sebastian

#1138341#26
Date:
2026-09-01 02:09:08 UTC
From:
To:
Hello,

Bug #1138341 in libnet-ssleay-perl reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/perl-team/modules/packages/libnet-ssleay-perl/-/commit/23591aa1505e8d4e2df95eb8731cecde8eed278e
------------------------------------------------------------------------
Add patches for OpenSSL 4 compatibility.

Thanks: Sebastian Andrzej Siewior for the bug report and for preparing the patches.

Closes: #1138341
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1138341

#1138341#33
Date:
2026-09-01 02:33:50 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libnet-ssleay-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1138341@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <gregoa@debian.org> (supplier of updated libnet-ssleay-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 01 Sep 2026 04:03:59 +0200
Source: libnet-ssleay-perl
Architecture: source
Version: 1.96-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: gregor herrmann <gregoa@debian.org>
Closes: 1138341
Changes:
 libnet-ssleay-perl (1.96-2) unstable; urgency=medium
 .
   * Add patches for OpenSSL 4 compatibility.
     Thanks to Sebastian Andrzej Siewior for the bug report and for
     preparing the patches.
     (Closes: #1138341)
   * Declare compliance with Debian Policy 4.7.4.
   * Convert debian/watch to version 5.
Checksums-Sha1:
 3de47ec4bce6c56e449b46035bfc2c944e56342a 2614 libnet-ssleay-perl_1.96-2.dsc
 fa001e6f6f6581898b59f4b5bc4c219faddc1216 18460 libnet-ssleay-perl_1.96-2.debian.tar.xz
 4cda3db441403b8df2fe419235c626078ea5b3a1 1131172 libnet-ssleay-perl_1.96-2.git.tar.xz
 419bc8464904a61b4e0d3f29c6323b67a00b6930 17708 libnet-ssleay-perl_1.96-2_source.buildinfo
Checksums-Sha256:
 72570373cdfd929fb87946b155e54f84162b42b931b94c0784b9c3920b429414 2614 libnet-ssleay-perl_1.96-2.dsc
 d3cb91e674eb31d9b9680ad174963796dccdff7e33c2762ea2a157664297773f 18460 libnet-ssleay-perl_1.96-2.debian.tar.xz
 1281a20c0785320c7c79d7a7375da74bf5a1b224ae7f92c261d0e6e2240b5eda 1131172 libnet-ssleay-perl_1.96-2.git.tar.xz
 66c6c21d1fe65102887f2f1e7d705b08f96ec57f6fd0c0425dbece08cf217a38 17708 libnet-ssleay-perl_1.96-2_source.buildinfo
Files:
 b4839dc5d2e1da26aa9cba4f42e6f221 2614 perl optional libnet-ssleay-perl_1.96-2.dsc
 7bf020ff21bb26d0b2b3fdd07fe875bc 18460 perl optional libnet-ssleay-perl_1.96-2.debian.tar.xz
 ec4484330724a12a250e543bc114da1c 1131172 perl None libnet-ssleay-perl_1.96-2.git.tar.xz
 e3f7e85154f4f03d5ad5dac31f7f8e50 17708 perl optional libnet-ssleay-perl_1.96-2_source.buildinfo
Git-Tag-Info: tag=e08cf931078a39d77bdeac0d6cfde3399b7a99f2 fp=d1e1316e93a760a8104d85fabb3a68018649aa06
Git-Tag-Tagger: gregor herrmann <gregoa@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqWNAsACgkQYG0ITkaD
wHmkbQ/+K8j43kryM3uJhZJK5pPHYg2DqfHBfbJHvH/qvT+rt2XXEa3MINrOQtpr
hoyfXXavO3bOA6/efZXXST8FwIH23zBcfy/dl5yXeXcFWMxVOepDMvV4epXlyQs2
0RgpDUuaqforBrv9yVUAJGZM0zOhywCU7iKdlVDMgJEpIwQ1oblJbQF6dj/ZRwCO
4bruBx+RxIa0Otdlhon7beipGdEXoyzlE/ukYLwAJe3SiiTXunsmT5MeilXFk2ok
zJ9kSwmCge/n7n2xma2RaMBwD+bQM/xz1gtceoywCPwN/BvuI7dkb+hLMPpGwRhz
zuI3R6/nc0mqhJHqnTMxlKNW4AE2UrTlLZ53faAVfYSiaVb+bQm+awGzvDY6GW1T
Q5kwcf4fRqurGsB6+dr804mrpzw7d8j3p3pRaRSj9QkUlaC8UaHodJgLOSjS1IZW
4kF+zVLR4faGEavf9AAk1Ll2PSGrT0Zage4jez2oHSUk9j1QLpMBxZX4xWHcMVuE
Coth2OJCI9y6j96xek0Ifxb4xXZyOI9CR6ryVcgxKwo/cyHNBeKK8Lg878DTF5Mq
n0bAV4SP6o6fnFqRE0vjcd7LftfAdzbcRaQ2KmT5adM+lA9XerrdYDmgU/FYhxS+
vjxIF+x7smu8c4/v8ra1KRj+qMOx+FGpPjMjZHg+lL6hqmyRzcs=
=RsG3
-----END PGP SIGNATURE-----