Bug#1070059: p11-kit FTBFS with gcc-14 due to -Wincompatible-pointer-types having become an error
Helmut Grohne
helmut at subdivi.de
Mon Apr 29 14:02:06 BST 2024
Source: p11-kit
Version: 0.25.3-4
Severity: important
Tags: ftbfs
User: helmutg at debian.org
Usertags: rebootstrap
p11-kit fails to build from source when built with gcc-14. In gcc-14,
-Wincompatible-pointer-types has become an error. For instance, the
armel build currently says:
| p11-kit/import-object.c: In function ‘add_attrs_pubkey_rsa’:
| p11-kit/import-object.c:223:62: warning: passing argument 3 of ‘p11_asn1_read’ from incompatible pointer type [-Wincompatible-pointer-types]
| 223 | attr_modulus.pValue = p11_asn1_read (asn, "modulus", &attr_modulus.ulValueLen);
| | ^~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long unsigned int *
| In file included from p11-kit/import-object.c:53:
| ./common/asn1.h:60:62: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
| 60 | size_t *length);
| | ~~~~~~~~^~~~~~
| p11-kit/import-object.c:229:70: warning: passing argument 3 of ‘p11_asn1_read’ from incompatible pointer type [-Wincompatible-pointer-types]
| 229 | attr_exponent.pValue = p11_asn1_read (asn, "publicExponent", &attr_exponent.ulValueLen);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long unsigned int *
| ./common/asn1.h:60:62: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
| 60 | size_t *length);
| | ~~~~~~~~^~~~~~
| p11-kit/import-object.c: In function ‘add_attrs_pubkey_ec’:
| p11-kit/import-object.c:264:78: warning: passing argument 3 of ‘p11_asn1_read’ from incompatible pointer type [-Wincompatible-pointer-types]
| 264 | attr_ec_params.pValue = p11_asn1_read (info, "algorithm.parameters", &attr_ec_params.ulValueLen);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long unsigned int *
| ./common/asn1.h:60:62: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘long unsigned int *’
| 60 | size_t *length);
| | ~~~~~~~~^~~~~~
This will become a hard failure once we swicth to gcc-14.
Helmut
More information about the Pkg-gnutls-maint
mailing list