Bug#1075555: tcm: ftbfs with GCC-14
Package: src:tcm
Version: 2.20+TSQD-7
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/tcm_2.20+TSQD-7_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
[...]
323 | print_file(stdin);
| ^~~~~~~~~~
| printf
text2ps.c:333:33: error: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration]
333 | strerror(errno));
| ^~~~~~~~
| perror
text2ps.c:346:17: error: implicit declaration of function ‘finish_page’ [-Wimplicit-function-declaration]
346 | finish_page();
| ^~~~~~~~~~~
text2ps.c:357:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
357 | exit(errors);
| ^~~~
text2ps.c:357:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
text2ps.c:357:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
text2ps.c:357:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
text2ps.c: In function ‘print_file’:
text2ps.c:394:29: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
394 | if (strcmp((*fnt)->font_name, font_name) == 0)
| ^~~~~~
text2ps.c:6:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
5 | #include <errno.h>
+++ |+#include <string.h>
6 | //#endif
text2ps.c:445:17: error: implicit declaration of function ‘start_page’ [-Wimplicit-function-declaration]
445 | start_page();
| ^~~~~~~~~~
text2ps.c:446:9: error: implicit declaration of function ‘start_column’ [-Wimplicit-function-declaration]
446 | start_column();
| ^~~~~~~~~~~~
text2ps.c:463:33: error: implicit declaration of function ‘finish_column’ [-Wimplicit-function-declaration]
463 | finish_column();
| ^~~~~~~~~~~~~
text2ps.c: At top level:
text2ps.c:503:1: error: return type defaults to ‘int’ [-Wimplicit-int]
503 | finish_page()
| ^~~~~~~~~~~
text2ps.c:511:1: error: return type defaults to ‘int’ [-Wimplicit-int]
511 | start_page()
| ^~~~~~~~~~
text2ps.c: In function ‘start_page’:
text2ps.c:518:9: error: implicit declaration of function ‘draw_border’ [-Wimplicit-function-declaration]
518 | draw_border();
| ^~~~~~~~~~~
text2ps.c:519:9: error: implicit declaration of function ‘draw_title’ [-Wimplicit-function-declaration]
519 | draw_title();
| ^~~~~~~~~~
text2ps.c: At top level:
text2ps.c:522:1: error: return type defaults to ‘int’ [-Wimplicit-int]
522 | start_column()
| ^~~~~~~~~~~~
text2ps.c:541:1: error: return type defaults to ‘int’ [-Wimplicit-int]
541 | finish_column()
| ^~~~~~~~~~~~~
text2ps.c:643:1: error: return type defaults to ‘int’ [-Wimplicit-int]
643 | usage()
| ^~~~~
text2ps.c: In function ‘usage’:
text2ps.c:677:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
677 | exit(1);
| ^~~~
text2ps.c:677:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
make[3]: *** [Makefile:38: text2ps.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/gl'
make[2]: *** [Makefile.GEN:38: text2ps] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:115: execs] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:31: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: