Article View: linux.debian.bugs.dist
Article #5530Bug#1154830: freehsm-c: FTBFS with openssl 4.0
From: Sebastian Andrzej Siewior
Date: Sun, 22 Nov 2026 13:50
Date: Sun, 22 Nov 2026 13:50
109 lines
7840 bytes
7840 bytes
Package: freehsm-c
Version: 2.0.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:
| cc -Wall -Wextra -Wpedantic -Werror -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wstrict-aliasing=2 -Wformat=2 -Wformat-security -Wno-format-nonliteral -Wnull-dereference -Wdouble-promotion -Wconversion -Wno-sign-conversion -Wno-unused-parameter -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIC -fstack-clash-protection -fcf-protection=full -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -DOPENSSL_API_COMPAT=0x30000000L -ffile-prefix-map=/build/reproducible-path/freehsm-c-2.0.0=. -fdebug-prefix-map=/build/reproducible-path/freehsm-c-2.0.0=. -frandom-seed=fhsm-2.0.0 -Wno-builtin-macro-redefined -D__DATE__='"redacted"' -D__TIME__='"redacted"' -g3 -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=format-truncation -Wno-error=unused-but-set-variable -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/freehsm-c-2.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c11 -D_GNU_SOURCE -Iinclude -I/usr/local/ssl/include -Isrc/dispatch -c -o .obj/src/fhsm_composite.o src/fhsm_composite.c
| src/fhsm_composite.c: In function âfhsm_composite_csrâ:
| src/fhsm_composite.c:730:7: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 730 | bs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~
| src/fhsm_composite.c:730:20: error: âASN1_STRING_FLAG_BITS_LEFTâ undeclared (first use in this function)
| 730 | bs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~
| src/fhsm_composite.c:730:20: note: each undeclared identifier is reported only once for each function it appears in
| src/fhsm_composite.c:731:7: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 731 | bs->flags |= ASN1_STRING_FLAG_BITS_LEFT;
| | ^~
| src/fhsm_composite.c: In function âfhsm_composite_selfsignedâ:
| src/fhsm_composite.c:829:32: error: passing argument 2 of âfill_pubkey_slotâ discards âconstâ qualifier from pointer target type [-Werror=discarded-qualifiers]
| 829 | rv = fill_pubkey_slot(alg, X509_get_X509_PUBKEY(x), pub, pub_len);
| | ^~~~~~~~~~~~~~~~~~~~~~~
| src/fhsm_composite.c:767:49: note: expected âX509_PUBKEY *â {aka âstruct X509_pubkey_st *â} but argument is of type âconst X509_PUBKEY *â {aka âconst struct X509_pubkey_st *â}
| 767 | X509_PUBKEY *slot,
| | ~~~~~~~~~~~~~^~~~
| src/fhsm_composite.c:907:14: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 907 | sigbs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~
| src/fhsm_composite.c:907:27: error: âASN1_STRING_FLAG_BITS_LEFTâ undeclared (first use in this function)
| 907 | sigbs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~
| src/fhsm_composite.c:908:14: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 908 | sigbs->flags |= ASN1_STRING_FLAG_BITS_LEFT;
| | ^~
| src/fhsm_composite.c: In function âfhsm_composite_issueâ:
| src/fhsm_composite.c:1243:36: error: passing argument 1 of âX509_PUBKEY_set0_paramâ discards âconstâ qualifier from pointer target type [-Werror=discarded-qualifiers]
| 1243 | if (X509_PUBKEY_set0_param(X509_get_X509_PUBKEY(x), oid, V_ASN1_UNDEF,
| | ^~~~~~~~~~~~~~~~~~~~~~~
| In file included from src/fhsm_composite.c:172:
| /usr/include/openssl/x509.h:1598:41: note: expected âX509_PUBKEY *â {aka âstruct X509_pubkey_st *â} but argument is of type âconst X509_PUBKEY *â {aka âconst struct X509_pubkey_st *â}
| 1598 | int X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj,
| | ~~~~~~~~~~~~~^~~
| src/fhsm_composite.c:1365:11: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 1365 | bs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~
| src/fhsm_composite.c:1365:24: error: âASN1_STRING_FLAG_BITS_LEFTâ undeclared (first use in this function)
| 1365 | bs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~
| src/fhsm_composite.c:1366:11: error: invalid use of incomplete typedef âASN1_BIT_STRINGâ {aka âstruct asn1_string_stâ}
| 1366 | bs->flags |= ASN1_STRING_FLAG_BITS_LEFT;
| | ^~
| src/fhsm_composite.c: In function âfhsm_composite_cms_verifyâ:
| src/fhsm_composite.c:2449:24: error: initialization discards âconstâ qualifier from pointer target type [-Werror=discarded-qualifiers]
| 2449 | ASN1_TYPE *v = at ? X509_ATTRIBUTE_get0_type(at, 0) : NULL;
| | ^~
| cc1: all warnings being treated as errors
| make[2]: *** [Makefile:351: .obj/src/fhsm_composite.o] Error 1
| make[2]: Leaving directory '/build/reproducible-path/freehsm-c-2.0.0'
Sebastian
Technical Details
Message-ID:
<O2g78-dtJ5-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154830: freehsm-c: FTBFS with openssl 4.0 Date: Sun, 22 Nov 2026 14:50:02 +0100 Message-ID: <O2g78-dtJ5-7@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 22 13:45:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>, 1154830@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-openssl-devel@alioth-lists.debian.net, team+debian@tracker.debian.org X-Debian-Pr-Message: report 1154830 X-Debian-Pr-Package: freehsm-c X-Debian-Pr-Keywords: sid X-Debian-Pr-Source: freehsm-c MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004134 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 109 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 22 Nov 2026 14:42:49 +0100 X-Original-Message-ID: <20261122134249.wpyPrgr6@breakpoint.cc>