🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5530

Bug#1154830: freehsm-c: FTBFS with openssl 4.0

#5530
From: Sebastian Andrzej Siewior
Date: Sun, 22 Nov 2026 13:50
109 lines
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!robomod

Show 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>