Debian Bug report logs - #1098164
xplot-xplot.org: ftbfs with GCC-15

version graph

Package: src:xplot-xplot.org; Maintainer for src:xplot-xplot.org is Noah Meyerhans <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 18:06:19 UTC

Severity: important

Tags: forky, sid

Found in version xplot-xplot.org/0.90.7.1-4

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Noah Meyerhans <[email protected]>:
Bug#1098164; Package src:xplot-xplot.org. (Mon, 17 Feb 2025 18:06:20 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Noah Meyerhans <[email protected]>. (Mon, 17 Feb 2025 18:06:20 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: xplot-xplot.org: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 18:02:29 +0000
Package: src:xplot-xplot.org
Version: 0.90.7.1-4
Severity: important
Tags: sid forky
User: [email protected]
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/xplot-xplot.org_0.90.7.1-4_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

[...]
xplot.c:2754:7: error: conflicting types for ‘atoi’; have ‘int(void)’
 2754 |   int atoi();
      |       ^~~~
In file included from /usr/include/features.h:510,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:25,
                 from /usr/include/X11/Xos.h:42,
                 from xplot.h:40:
/usr/include/stdlib.h:481:1: note: previous definition of ‘atoi’ with type ‘int(const char *)’
  481 | __NTH (atoi (const char *__nptr))
      | ^~~~~
xplot.c:2758:24: error: too many arguments to function ‘atoi’; expected 0, have 1
 2758 |     return (xpcolor_t) atoi(s);
      |                        ^~~~ ~
xplot.c:2754:7: note: declared here
 2754 |   int atoi();
      |       ^~~~
xplot.c: At top level:
xplot.c:2766:5: error: conflicting types for ‘get_input’; have ‘int(FILE *, Display *, int,  struct plotter *)’
 2766 | int get_input(FILE *fp, Display *dpy, int lineno, struct plotter *pl)
      |     ^~~~~~~~~
xplot.c:71:5: note: previous declaration of ‘get_input’ with type ‘int(void)’
   71 | int get_input();
      |     ^~~~~~~~~
xplot.c:3162:6: error: conflicting types for ‘emit_PS’; have ‘void(struct plotter *, FILE *, enum plstate)’
 3162 | void emit_PS(struct plotter *pl, FILE *fp, enum plstate state)
      |      ^~~~~~~
xplot.c:72:6: note: previous declaration of ‘emit_PS’ with type ‘void(void)’
   72 | void emit_PS();
      |      ^~~~~~~
xplot.c:3717:1: error: conflicting types for ‘make_name_open_file’; have ‘FILE *(struct plotter *)’
 3717 | make_name_open_file(struct plotter *pl)
      | ^~~~~~~~~~~~~~~~~~~
xplot.c:2490:22: note: previous declaration of ‘make_name_open_file’ with type ‘FILE *(void)’
 2490 |           FILE *fp, *make_name_open_file();
      |                      ^~~~~~~~~~~~~~~~~~~
xplot.c: In function ‘get_input’:
xplot.c:2972:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2972 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:2987:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2987 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3005:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3005 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3023:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3023 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3041:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3041 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3059:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3059 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3076:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3076 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3090:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3090 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3104:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3104 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xplot.c:3116:14: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3116 |       (void) fgets(buf, sizeof(buf), fp);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: xplot.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/xplot-xplot.org-0.90.7.1'
make: *** [debian/rules:40: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:03:51 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.