[Pkg-openssl-devel] Bug#1138341: libnet-ssleay-perl: FTBFS with openssl 4.0
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sat May 30 16:56:55 BST 2026
Package: libnet-ssleay-perl
Version: 1.96-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:
| 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
More information about the Pkg-openssl-devel
mailing list