🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Sebastian Andrzej Siewior Sun, 22 Nov 2026 13:50
Bug#1154830: freehsm-c: FTBFS with openssl 4.0
#5530
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads