[From nobody Tue Nov 24 22:37:05 2026
Received: (at submit) by bugs.debian.org; 30 May 2026 16:16:40 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-28.0 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,HAS_PACKAGE,
 RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 39; hammy, 150; neutral, 67; spammy,
 0. spammytokens: hammytokens:0.000-+--wdatetime, 0.000-+--Wdatetime,
 0.000-+--Wdate-time, 0.000-+--wdate-time, 0.000-+--fPIC
Return-path: &lt;sebastian@breakpoint.cc&gt;
Received: from chamillionaire.breakpoint.cc ([91.216.245.30]:43090)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sebastian@breakpoint.cc&gt;)
 id 1wTMMa-002FpX-0v for submit@bugs.debian.org;
 Sat, 30 May 2026 16:16:40 +0000
Date: Sat, 30 May 2026 18:16:38 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breakpoint.cc;
 s=2025; t=1780157798;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=tGskiuPZ53ExOM3mavk1vughdGv8bebINfJZPof9Feg=;
 b=HkApq3PSQGMcZKG4Y1KDoWo+Px+Z8/377LeZbV0L2OM7Gtne+9o3pI75NBpNN/sBInd6oP
 +GbQtZc27y7v4U0nsL6mMp9ZoFHaovFlOaIHXCCKaMjZV1jli3X5hW0xCv2lzfkll/NMWf
 omRkPXUnk9v8aDPP+TL9FEu3JYwidMU+mPaGgUM/+AiPvgi+oe2wChEfcdu+l2m4k+n0hM
 eswD6pxVfWIfZVdY6jPkG/txE3zbdBQKfy9HHqzWHiOb1bVlQquOtd/BxVvOHpJpP9P8+Y
 cuPBbFI4TBMIiqgNkMda+zlPipzWNEfC+3Ap0+A+FUs9RY2DwZ8wWbR2JoJEow==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=breakpoint.cc;
 s=2025e; t=1780157798;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=tGskiuPZ53ExOM3mavk1vughdGv8bebINfJZPof9Feg=;
 b=PccbpfsMw7PT4KMClMDFk08ToC3VsRUqiy7HCYDyIzIOmnrkm4jY1BgMu6cNOWU/g5TkAg
 6QldLuVdWMw0McDg==
From: Sebastian Andrzej Siewior &lt;sebastian@breakpoint.cc&gt;
To: submit@bugs.debian.org
Subject: pkcs11-helper: FTBFS with openssl 4.0
Message-ID: &lt;20260530161638.yOCLSUCx@breakpoint.cc&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-Debbugs-CC: pkg-openssl-devel@alioth-lists.debian.net
Delivered-To: submit@bugs.debian.org

Package: pkcs11-helper
Version: 1.31.0-1
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: pkg-openssl-devel@lists.alioth.debian.org
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:

| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/pkcs11-helper-1.31.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c pkcs11h-crypto.c -o pkcs11h-crypto.o &gt;/dev/null 2&gt;&amp;1
| /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/pkcs11-helper-1.31.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -c -o _pkcs11h-crypto-openssl.lo _pkcs11h-crypto-openssl.c
| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/pkcs11-helper-1.31.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c _pkcs11h-crypto-openssl.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-openssl.o
| _pkcs11h-crypto-openssl.c: In function '__pkcs11h_crypto_openssl_certificate_get_expiration':
| _pkcs11h-crypto-openssl.c:150:17: warning: 'X509_cmp_current_time' is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
|   150 |                 X509_cmp_current_time (notBefore) &lt;= 0 &amp;&amp;
|       |                 ^~~~~~~~~~~~~~~~~~~~~
| In file included from _pkcs11h-crypto-openssl.c:56:
| /usr/include/openssl/x509.h:694:27: note: declared here
|   694 | OSSL_DEPRECATEDIN_4_0 int X509_cmp_current_time(const ASN1_TIME *s);
|       |                           ^~~~~~~~~~~~~~~~~~~~~
| _pkcs11h-crypto-openssl.c:151:17: warning: 'X509_cmp_current_time' is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
|   151 |                 X509_cmp_current_time (notAfter) &gt;= 0 &amp;&amp;
|       |                 ^~~~~~~~~~~~~~~~~~~~~
| /usr/include/openssl/x509.h:694:27: note: declared here
|   694 | OSSL_DEPRECATEDIN_4_0 int X509_cmp_current_time(const ASN1_TIME *s);
|       |                           ^~~~~~~~~~~~~~~~~~~~~
| _pkcs11h-crypto-openssl.c:152:25: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   152 |                 notAfter-&gt;length &gt;= 12
|       |                         ^~
| _pkcs11h-crypto-openssl.c:157:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   157 |                 tm1.tm_year = (notAfter-&gt;data[ 0] - '0') * 10 + (notAfter-&gt;data[ 1] - '0') + 100;
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:157:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   157 |                 tm1.tm_year = (notAfter-&gt;data[ 0] - '0') * 10 + (notAfter-&gt;data[ 1] - '0') + 100;
|       |                                                                          ^~
| _pkcs11h-crypto-openssl.c:158:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   158 |                 tm1.tm_mon  = (notAfter-&gt;data[ 2] - '0') * 10 + (notAfter-&gt;data[ 3] - '0') - 1;
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:158:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   158 |                 tm1.tm_mon  = (notAfter-&gt;data[ 2] - '0') * 10 + (notAfter-&gt;data[ 3] - '0') - 1;
|       |                                                                          ^~
| _pkcs11h-crypto-openssl.c:159:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   159 |                 tm1.tm_mday = (notAfter-&gt;data[ 4] - '0') * 10 + (notAfter-&gt;data[ 5] - '0');
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:159:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   159 |                 tm1.tm_mday = (notAfter-&gt;data[ 4] - '0') * 10 + (notAfter-&gt;data[ 5] - '0');
|       |                                                                          ^~
| _pkcs11h-crypto-openssl.c:160:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   160 |                 tm1.tm_hour = (notAfter-&gt;data[ 6] - '0') * 10 + (notAfter-&gt;data[ 7] - '0');
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:160:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   160 |                 tm1.tm_hour = (notAfter-&gt;data[ 6] - '0') * 10 + (notAfter-&gt;data[ 7] - '0');
|       |                                                                          ^~
| _pkcs11h-crypto-openssl.c:161:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   161 |                 tm1.tm_min  = (notAfter-&gt;data[ 8] - '0') * 10 + (notAfter-&gt;data[ 9] - '0');
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:161:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   161 |                 tm1.tm_min  = (notAfter-&gt;data[ 8] - '0') * 10 + (notAfter-&gt;data[ 9] - '0');
|       |                                                                          ^~
| _pkcs11h-crypto-openssl.c:162:40: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   162 |                 tm1.tm_sec  = (notAfter-&gt;data[10] - '0') * 10 + (notAfter-&gt;data[11] - '0');
|       |                                        ^~
| _pkcs11h-crypto-openssl.c:162:74: error: invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct asn1_string_st'}
|   162 |                 tm1.tm_sec  = (notAfter-&gt;data[10] - '0') * 10 + (notAfter-&gt;data[11] - '0');
|       |                                                                          ^~
| make[4]: *** [Makefile:620: _pkcs11h-crypto-openssl.lo] Error 1
| make[4]: Leaving directory '/build/reproducible-path/pkcs11-helper-1.31.0/lib'


Full buildlog
 	https://breakpoint.cc/openssl-rebuild/logs-4/attempted/pkcs11-helper_1.31.0-1_amd64-2026-04-19T14:15:29Z

Sebastian
]