[pkg-opensc-maint] Bug#1097522: opensc: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:41:43 GMT 2025
Package: src:opensc
Version: 0.26.0-1
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15
[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/opensc_0.26.0-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html
[...]
card-piv.c:782:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
782 | "2.16.840.1.101.3.7.2.9999.107", 2, "\x88\x06", "\x88\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:785:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
785 | "2.16.840.1.101.3.7.2.9999.108", 2, "\x89\x06", "\x89\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:788:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
788 | "2.16.840.1.101.3.7.2.9999.109", 2, "\x8A\x06", "\x8A\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:791:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
791 | "2.16.840.1.101.3.7.2.9999.110", 2, "\x8B\x06", "\x8B\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:794:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
794 | "2.16.840.1.101.3.7.2.9999.111", 2, "\x8C\x06", "\x8C\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:797:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
797 | "2.16.840.1.101.3.7.2.9999.112", 2, "\x8D\x06", "\x8D\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:800:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
800 | "2.16.840.1.101.3.7.2.9999.113", 2, "\x8E\x06", "\x8E\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:803:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
803 | "2.16.840.1.101.3.7.2.9999.114", 2, "\x8F\x06", "\x8F\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:806:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
806 | "2.16.840.1.101.3.7.2.9999.115", 2, "\x90\x06", "\x90\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:809:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
809 | "2.16.840.1.101.3.7.2.9999.116", 2, "\x91\x06", "\x91\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:812:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
812 | "2.16.840.1.101.3.7.2.9999.117", 2, "\x92\x06", "\x92\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:815:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
815 | "2.16.840.1.101.3.7.2.9999.118", 2, "\x93\x06", "\x93\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:818:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
818 | "2.16.840.1.101.3.7.2.9999.119", 2, "\x94\x06", "\x94\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
card-piv.c:821:73: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
821 | "2.16.840.1.101.3.7.2.9999.120", 2, "\x95\x06", "\x95\x06", PIV_OBJECT_TYPE_PUBKEY},
| ^~~~~~~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-oberthur.c -o libopensc_la-card-oberthur.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-entersafe.c -o libopensc_la-card-entersafe.o >/dev/null 2>&1
/bin/bash ../../libtool --tag=CC --tag CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -D'OPENSC_CONF_PATH="/etc/opensc/opensc.conf"' -D'DEFAULT_SM_MODULE_PATH="/usr/lib/x86_64-linux-gnu"' -D'DEFAULT_SM_MODULE="libsmm-local.so"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c -o libopensc_la-card-cac-common.lo `test -f 'card-cac-common.c' || echo './'`card-cac-common.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac-common.c -fPIC -DPIC -o .libs/libopensc_la-card-cac-common.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac-common.c -o libopensc_la-card-cac-common.o >/dev/null 2>&1
/bin/bash ../../libtool --tag=CC --tag CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -D'OPENSC_CONF_PATH="/etc/opensc/opensc.conf"' -D'DEFAULT_SM_MODULE_PATH="/usr/lib/x86_64-linux-gnu"' -D'DEFAULT_SM_MODULE="libsmm-local.so"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c -o libopensc_la-card-cac.lo `test -f 'card-cac.c' || echo './'`card-cac.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac.c -fPIC -DPIC -o .libs/libopensc_la-card-cac.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-openpgp.c -o libopensc_la-card-openpgp.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-coolkey.c -o libopensc_la-card-coolkey.o >/dev/null 2>&1
/bin/bash ../../libtool --tag=CC --tag CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -D'OPENSC_CONF_PATH="/etc/opensc/opensc.conf"' -D'DEFAULT_SM_MODULE_PATH="/usr/lib/x86_64-linux-gnu"' -D'DEFAULT_SM_MODULE="libsmm-local.so"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c -o libopensc_la-card-cac1.lo `test -f 'card-cac1.c' || echo './'`card-cac1.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac1.c -fPIC -DPIC -o .libs/libopensc_la-card-cac1.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac1.c -o libopensc_la-card-cac1.o >/dev/null 2>&1
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1780: libopensc_la-card-epass2003.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc/opensc.conf\" -DDEFAULT_SM_MODULE_PATH=\"/usr/lib/x86_64-linux-gnu\" -DDEFAULT_SM_MODULE=\"libsmm-local.so\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/PCSC -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.26.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=maybe-uninitialized -c card-cac.c -o libopensc_la-card-cac.o >/dev/null 2>&1
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1794: libopensc_la-card-piv.lo] Error 1
make[4]: Leaving directory '/build/reproducible-path/opensc-0.26.0/src/libopensc'
make[3]: *** [Makefile:487: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/opensc-0.26.0/src'
make[2]: *** [Makefile:631: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/opensc-0.26.0'
make[1]: *** [Makefile:539: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/opensc-0.26.0'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-opensc-maint
mailing list