Bug#1075163: libdigidoc: ftbfs with GCC-14
Package: src:libdigidoc
Version: 3.10.5-5
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is targeted to the upcoming trixie release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/libdigidoc_3.10.5-5_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html
[...]
138 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘WriteOCSPResponse’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:249:18: error: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
249 | ASN1_i2d_bio((int (*)(void*, unsigned char**))i2d_OCSP_RESPONSE, bout, (unsigned char*)resp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, unsigned char **)
In file included from /usr/include/openssl/objects.h:21,
from /usr/include/openssl/evp.h:44,
from /usr/include/openssl/x509.h:29,
from /<<PKGBUILDDIR>>/libdigidoc/DigiDocLib.h:36,
from /<<PKGBUILDDIR>>/libdigidoc/DigiDocConfig.h:29,
from /<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:23:
/usr/include/openssl/asn1.h:967:31: note: expected ‘int (*)(const void *, unsigned char **)’ but argument is of type ‘int (*)(void *, unsigned char **)’
967 | int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, const void *x);
| ~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘WriteOCSPRequest’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:297:18: error: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
297 | ASN1_i2d_bio((int (*)(void*, unsigned char**))i2d_OCSP_RESPONSE, bout, (unsigned char*)req);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, unsigned char **)
/usr/include/openssl/asn1.h:967:31: note: expected ‘int (*)(const void *, unsigned char **)’ but argument is of type ‘int (*)(void *, unsigned char **)’
967 | int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, const void *x);
| ~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘get_authority_key_from_cert’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:838:3: warning: ‘ASN1_STRING_data’ is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
838 | ret = decodeHex((unsigned char*)hex_to_string(ASN1_STRING_data(val->keyid), ASN1_STRING_length(val->keyid)));
| ^~~
/usr/include/openssl/asn1.h:683:40: note: declared here
683 | OSSL_DEPRECATEDIN_1_1_0 unsigned char *ASN1_STRING_data(ASN1_STRING *x);
| ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘OCSP_sendreq_bio_withParams’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:965:26: error: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
965 | retcode = ASN1_i2d_bio((int (*)(void*, unsigned char**))i2d_OCSP_REQUEST, b, (unsigned char*)req);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, unsigned char **)
/usr/include/openssl/asn1.h:967:31: note: expected ‘int (*)(const void *, unsigned char **)’ but argument is of type ‘int (*)(void *, unsigned char **)’
967 | int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, const void *x);
| ~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘verifyOCSPResponse’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:1605:31: warning: passing argument 1 of ‘ossl_check_X509_type’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1605 | sk_X509_push(ver_certs, notCert);
| ^~~~~~~
In file included from /usr/include/openssl/types.h:33,
from /usr/include/openssl/x509.h:26:
/usr/include/openssl/x509.h:78:1: note: expected ‘X509 *’ {aka ‘struct x509_st *’} but argument is of type ‘const X509 *’ {aka ‘const struct x509_st *’}
78 | SKM_DEFINE_STACK_OF_INTERNAL(X509, X509, X509)
| ^
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c: In function ‘checkNonceAndCertbyOCSP’:
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:1668:32: warning: passing argument 1 of ‘get_authority_key’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1668 | if((ikey = get_authority_key(X509_get0_extensions(cert))) != NULL) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/libdigidoc/DigiDocOCSP.c:766:60: note: expected ‘struct stack_st_X509_EXTENSION *’ but argument is of type ‘const struct stack_st_X509_EXTENSION *’
766 | unsigned char *get_authority_key(STACK_OF(X509_EXTENSION) *exts)
| ^
make[3]: *** [libdigidoc/CMakeFiles/digidoc.dir/build.make:317: libdigidoc/CMakeFiles/digidoc.dir/DigiDocOCSP.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:131: libdigidoc/CMakeFiles/digidoc.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: