Bug#1096586: esnacc: ftbfs with GCC-15
Package: src:esnacc
Version: 1.8.1-5
Severity: important
Tags: sid forky
User: debian-gcc@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/esnacc_1.8.1-5_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
[...]
| ^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-tag.c -o c-lib/src/libcasn1_la-asn-tag.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-tbl-dbg.lo `test -f 'c-lib/src/tbl-dbg.c' || echo './'`c-lib/src/tbl-dbg.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-dbg.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-tbl-dbg.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-dbg.c -o c-lib/src/libcasn1_la-tbl-dbg.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-enum.lo `test -f 'c-lib/src/asn-enum.c' || echo './'`c-lib/src/asn-enum.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-enum.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-enum.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-enum.c -o c-lib/src/libcasn1_la-asn-enum.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-TeletexString.lo `test -f 'c-lib/src/asn-TeletexString.c' || echo './'`c-lib/src/asn-TeletexString.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-TeletexString.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-TeletexString.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-TeletexString.c -o c-lib/src/libcasn1_la-asn-TeletexString.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-tbl-dec.lo `test -f 'c-lib/src/tbl-dec.c' || echo './'`c-lib/src/tbl-dec.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-dec.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-tbl-dec.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-dec.c -o c-lib/src/libcasn1_la-tbl-dec.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-IA5String.lo `test -f 'c-lib/src/asn-IA5String.c' || echo './'`c-lib/src/asn-IA5String.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-IA5String.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-IA5String.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-IA5String.c -o c-lib/src/libcasn1_la-asn-IA5String.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-UniversalString.lo `test -f 'c-lib/src/asn-UniversalString.c' || echo './'`c-lib/src/asn-UniversalString.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-UniversalString.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-UniversalString.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-UniversalString.c -o c-lib/src/libcasn1_la-asn-UniversalString.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-tbl-enc.lo `test -f 'c-lib/src/tbl-enc.c' || echo './'`c-lib/src/tbl-enc.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-enc.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-tbl-enc.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-enc.c -o c-lib/src/libcasn1_la-tbl-enc.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-int.lo `test -f 'c-lib/src/asn-int.c' || echo './'`c-lib/src/asn-int.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-int.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-int.o
c-lib/src/asn-int.c: In function 'BDecAsnIntContent':
c-lib/src/asn-int.c:209:22: warning: left shift of negative value [-Wshift-negative-value]
209 | retVal = (-1 << 8) | byte;
| ^~
c-lib/src/asn-int.c: In function 'BEncUAsnIntContent':
c-lib/src/asn-int.c:321:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
321 | for (i = 0; i < sizeof (UAsnInt); i++)
| ^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-int.c -o c-lib/src/libcasn1_la-asn-int.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-tbl-free.lo `test -f 'c-lib/src/tbl-free.c' || echo './'`c-lib/src/tbl-free.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-free.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-tbl-free.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/tbl-free.c -o c-lib/src/libcasn1_la-tbl-free.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-len.lo `test -f 'c-lib/src/asn-len.c' || echo './'`c-lib/src/asn-len.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-len.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-len.o
c-lib/src/asn-len.c: In function 'BDecLen':
c-lib/src/asn-len.c:174:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
174 | if (lenBytes > sizeof (AsnLen))
| ^
c-lib/src/asn-len.c: In function 'DDecLen':
c-lib/src/asn-len.c:281:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
281 | if (lenBytes > sizeof (AsnLen))
| ^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-len.c -o c-lib/src/libcasn1_la-asn-len.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c -o c-lib/src/libcasn1_la-asn-UTF8String.lo `test -f 'c-lib/src/asn-UTF8String.c' || echo './'`c-lib/src/asn-UTF8String.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./c-lib -I./c-lib/src -I./c-lib/inc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/esnacc-1.8.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O0 -Wall -Wextra -c c-lib/src/asn-UTF8String.c -fPIC -DPIC -o c-lib/src/.libs/libcasn1_la-asn-UTF8String.o
c-lib/src/asn-UTF8String.c:11:22: error: 'bool' cannot be defined via 'typedef'
11 | typedef char bool;
| ^~~~
c-lib/src/asn-UTF8String.c:11:22: note: 'bool' is a keyword with '-std=c23' onwards
c-lib/src/asn-UTF8String.c:11:9: warning: useless type name in empty declaration
11 | typedef char bool;
| ^~~~~~~
c-lib/src/asn-UTF8String.c: In function 'CvtWchar2UTF8':
c-lib/src/asn-UTF8String.c:267:37: warning: comparison of integer expressions of different signedness: 'wchar_t' {aka 'int'} and 'long unsigned int' [-Wsign-compare]
267 | (temp_wchar > gUTF8Masks[j].maxCharValue); j++)
| ^
make[3]: *** [Makefile:2668: c-lib/src/libcasn1_la-asn-UTF8String.lo] Error 1
make[3]: Leaving directory '/build/reproducible-path/esnacc-1.8.1'
make[2]: *** [Makefile:1400: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/esnacc-1.8.1'
dh_auto_build: error: make -j1 returned exit code 2
make[1]: *** [debian/rules:18: override_dh_auto_build-arch] Error 255
make[1]: Leaving directory '/build/reproducible-path/esnacc-1.8.1'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: