#1140419 ukiboot: FTBFS with openssl 4.0

Package:
ukiboot
Source:
ukiboot
Description:
UEFI based A/B bootloader
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-21 14:35:02 UTC
Severity:
normal
Tags:
#1140419#5
Date:
2026-06-20 01:44:38 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:
| [9/16] cc -Iukibootimg.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=switch -Werror=overflow -Werror=int-conversion -Werror=parentheses -Werror=undef -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Wstrict-aliasing=2 -Werror=unused-result -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ukiboot-0.2.1+git20260604.ec869c7=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ ukibootimg.p/pe_parser_posix.c.o -MF ukibootimg.p/pe_parser_posix.c.o.d -o ukibootimg.p/pe_parser_posix.c.o -c ../pe_parser_posix.c
| FAILED: [code=1] ukibootimg.p/pe_parser_posix.c.o
| cc -Iukibootimg.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=switch -Werror=overflow -Werror=int-conversion -Werror=parentheses -Werror=undef -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Wstrict-aliasing=2 -Werror=unused-result -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ukiboot-0.2.1+git20260604.ec869c7=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ ukibootimg.p/pe_parser_posix.c.o -MF ukibootimg.p/pe_parser_posix.c.o.d -o ukibootimg.p/pe_parser_posix.c.o -c ../pe_parser_posix.c
| ../pe_parser_posix.c: In function ‘verify_pkcs7_signature’:
| ../pe_parser_posix.c:481:37: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   481 |     ASN1_OCTET_STRING *msg_digest = PKCS7_digest_from_attributes(si->auth_attr);
|       |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../pe_parser_posix.c:494:19: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   494 |     if (msg_digest->length != (int)computed_md_len ||
|       |                   ^~
| ../pe_parser_posix.c:495:33: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   495 |         CRYPTO_memcmp(msg_digest->data, computed_md, computed_md_len) != 0) {
|       |                                 ^~
| ../pe_parser_posix.c:524:41: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   524 |                           si->enc_digest->data,
|       |                                         ^~
| ../pe_parser_posix.c:525:41: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   525 |                           si->enc_digest->length,
|       |                                         ^~
| ../pe_parser_posix.c: In function ‘pe_verify_signature’:
| ../pe_parser_posix.c:613:35: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   613 |     if (!content_os || !content_os->data) {
|       |                                   ^~
| ../pe_parser_posix.c:619:42: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   619 |     if (!extract_spc_file_hash(content_os->data,
|       |                                          ^~
| ../pe_parser_posix.c:620:42: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   620 |                                content_os->length,
|       |                                          ^~
| ../pe_parser_posix.c:645:46: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   645 |     const uint8_t *content_inner = content_os->data;
|       |                                              ^~
| ../pe_parser_posix.c:646:39: error: invalid use of incomplete typedef ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’}
|   646 |     int content_inner_len = content_os->length;
|       |                                       ^~
| ninja: build stopped: subcommand failed.
| dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j1 -v returned exit code 1

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/ukiboot_0.2.1+git20260604.ec869c7-2_amd64-2026-06-16T19:55:10Z

Sebastian

#1140419#12
Date:
2026-06-21 14:33:59 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ukiboot, 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 1140419@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Obbard <obbardc@debian.org> (supplier of updated ukiboot 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: Sun, 21 Jun 2026 15:12:10 +0100
Source: ukiboot
Architecture: source
Version: 0.2.1+git20260604.ec869c7-3
Distribution: unstable
Urgency: medium
Maintainer: Christopher Obbard <obbardc@debian.org>
Changed-By: Christopher Obbard <obbardc@debian.org>
Closes: 1140419
Changes:
 ukiboot (0.2.1+git20260604.ec869c7-3) unstable; urgency=medium
 .
   * debian/patches: fix build with opaque OpenSSL ASN.1 structs
     (Closes: #1140419)
Checksums-Sha1:
 6d8ef7d241b38f9825a7a179d7b10dcf9b549248 2250 ukiboot_0.2.1+git20260604.ec869c7-3.dsc
 c933e5f7786770ad79adfb337324c94ab41885d5 5656 ukiboot_0.2.1+git20260604.ec869c7-3.debian.tar.xz
 7da729545051f92e82ef1a080bf2ab9f4012825f 8257 ukiboot_0.2.1+git20260604.ec869c7-3_source.buildinfo
Checksums-Sha256:
 217ba0f45765e215ffa76d7b0abec7de97d79d437727e868a82904071a3bcc10 2250 ukiboot_0.2.1+git20260604.ec869c7-3.dsc
 17a25c1d72bab5f638f09bd843177d9d00b75c49dc23cde5f16ebf57f2465177 5656 ukiboot_0.2.1+git20260604.ec869c7-3.debian.tar.xz
 13e579b736dca7509340d89e549d3b6daf797a34ee53a89cbec6052755793098 8257 ukiboot_0.2.1+git20260604.ec869c7-3_source.buildinfo
Files:
 c9c90197e6829c7cf6b774b3442f2c59 2250 admin optional ukiboot_0.2.1+git20260604.ec869c7-3.dsc
 08878b27f19ab8e7d2d43d4b827f60b9 5656 admin optional ukiboot_0.2.1+git20260604.ec869c7-3.debian.tar.xz
 547ab7c4e647eb28d3b4bce9a417d38d 8257 admin optional ukiboot_0.2.1+git20260604.ec869c7-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEE8Yvci2wl+QqiPVF0Y03E8GhwRvgFAmo38g4THG9iYmFyZGNA
ZGViaWFuLm9yZwAKCRBjTcTwaHBG+DhEEACRjfu7ltpZgiiIU5AX60+d6lLOi9WZ
wSqIA50ykQNX88mQ9S03Bmd9Hox7ftVQ/RKYssRLxc3JRgRLNUfP7EDmvW+MVuxT
TFk4M2d63ttNL9RW1Bb/yn3fDCQLOG4rZD01HmwR7HTz+xlNJyEqGNlmPNWwYehj
cGigXt7/OoSG9w7cXPbW1sVNkQ6w1eFSHpxJiotCMi4VcRdu6rl7wP9nIVKQMmGB
AmC6Ov6LS9TrA1C/YR128YLZhlYolTappNCJFz+VW9JJQLDM8DBAGU4Ww/g0x4CU
zzNjlQMGbvZoLwkzKD8R8qNYHsnVDneBoSnIrZqE7284RnS7IQjKTWghLMJe+MFT
eKZvLp7BIPO0qIRK1ACa0lbGCypdindP4FUpypD8hyZSsNQS7gN/XaoXD6G4y6TS
yL+FAgg8HAl480Uee4hzWE8CN3BfAQsszywYu2LYi8O1U+eN1Cc3MAJAyvJ5cZFb
Lt2g1bss+/luH/GWv76J7vAkPpsBLCe0V7qtf7I9AsvahnMZ+h3jdGej766Eo4Gn
W9jAZb3p7mypj1k65ALz3u5RgINixH3u1F6Oy8gNB9jhtYtpKpNcM/sgVL2/Y2Kx
7iwf0TyiYdNkjp/n8427E7Ucrw9fM8Itg1vs6Z4qTuAkfyK/ibYtzc6Hd0BtqOaQ
wnGfT5eYTrpYag==
=wcVf
-----END PGP SIGNATURE-----