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
Author: 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
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