#1075611 utalk: ftbfs with GCC-14

Package:
src:utalk
Source:
src:utalk
Submitter:
Matthias Klose
Date:
2025-08-11 15:24:30 UTC
Severity:
normal
Tags:
#1075611#5
Date:
2024-07-03 12:47:09 UTC
From:
To:
[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/utalk_1.0.2-2_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

[...]
      |         ^~
srdp.c:718:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  718 |           if ((info->flags&(SRDP_FL_SELRETURN|SRDP_FL_NOSELECT)) ==
      |           ^~
srdp.c: In function ‘srdp_close’:
srdp.c:882:53: error: passing argument 6 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types]
  882 |                           (struct sockaddr *)&from, &fromlen);
      |                                                     ^~~~~~~~
      |                                                     |
      |                                                     size_t * {aka long unsigned int *}
/usr/include/x86_64-linux-gnu/bits/socket2.h:62:56: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsigned int *’}
   62 |           __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
      |                                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
make[1]: *** [<builtin>: srdp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
functions.c: In function ‘delete_till’:
functions.c:307:40: warning: pointer targets in passing argument 3 of ‘c_write_string’ differ in signedness [-Wpointer-sign]
  307 |         c_write_string(l->number, nl0, nulls, 512);
      |                                        ^~~~~
      |                                        |
      |                                        char *
In file included from functions.c:19:
comm.h:134:62: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  134 | extern void c_write_string(int line, int col, unsigned char *s, int len);
      |                                               ~~~~~~~~~~~~~~~^
functions.c:311:40: warning: pointer targets in passing argument 3 of ‘c_write_string’ differ in signedness [-Wpointer-sign]
  311 |         c_write_string(l->number, nl0, nulls, n);
      |                                        ^~~~~
      |                                        |
      |                                        char *
comm.h:134:62: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  134 | extern void c_write_string(int line, int col, unsigned char *s, int len);
      |                                               ~~~~~~~~~~~~~~~^
functions.c: In function ‘f_backspace_word’:
functions.c:405:46: warning: pointer targets in passing argument 3 of ‘c_write_string’ differ in signedness [-Wpointer-sign]
  405 |           c_write_string(L->number, nl0-n+1, nulls, 512);
      |                                              ^~~~~
      |                                              |
      |                                              char *
comm.h:134:62: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  134 | extern void c_write_string(int line, int col, unsigned char *s, int len);
      |                                               ~~~~~~~~~~~~~~~^
functions.c:407:46: warning: pointer targets in passing argument 3 of ‘c_write_string’ differ in signedness [-Wpointer-sign]
  407 |           c_write_string(L->number, nl0-n+1, nulls, n);
      |                                              ^~~~~
      |                                              |
      |                                              char *
comm.h:134:62: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  134 | extern void c_write_string(int line, int col, unsigned char *s, int len);
      |                                               ~~~~~~~~~~~~~~~^
functions.c: In function ‘f_test_menu’:
functions.c:1139:3: error: implicit declaration of function ‘test_menu’; did you mean ‘f_test_menu’? [-Wimplicit-function-declaration]
 1139 |   test_menu();
      |   ^~~~~~~~~
      |   f_test_menu
functions.c: In function ‘f_test_entry’:
functions.c:1144:3: error: implicit declaration of function ‘test_entry’; did you mean ‘f_test_entry’? [-Wimplicit-function-declaration]
 1144 |   test_entry();
      |   ^~~~~~~~~~
      |   f_test_entry
functions.c: In function ‘f_test_selection’:
functions.c:1149:3: error: implicit declaration of function ‘test_selection’; did you mean ‘f_test_selection’? [-Wimplicit-function-declaration]
 1149 |   test_selection();
      |   ^~~~~~~~~~~~~~
      |   f_test_selection
make[1]: *** [<builtin>: functions.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2