#1097366 mathomatic: ftbfs with GCC-15

Package:
src:mathomatic
Source:
src:mathomatic
Submitter:
Matthias Klose
Date:
2025-10-06 10:51:03 UTC
Severity:
normal
Tags:
#1097366#5
Date:
2025-02-17 17:36:48 UTC
From:
To:
[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/mathomatic_16.0.5-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

[...]
 4446 | read_cmd(cp)
      | ^~~~~~~~
cmds.c: In function ‘read_file’:
cmds.c:4471:1: warning: old-style function definition [-Wold-style-definition]
 4471 | read_file(cp)
      | ^~~~~~~~~
cmds.c: In function ‘read_sub’:
cmds.c:4565:1: warning: old-style function definition [-Wold-style-definition]
 4565 | read_sub(fp, filename)
      | ^~~~~~~~
cmds.c: In function ‘edit_sub’:
cmds.c:4611:1: warning: old-style function definition [-Wold-style-definition]
 4611 | edit_sub(cp)
      | ^~~~~~~~
cmds.c:4638:14: error: too many arguments to function ‘read_cmd’; expected 0, have 1
 4638 |         if (!read_cmd(cp)) {
      |              ^~~~~~~~ ~~
cmds.c:4446:1: note: declared here
 4446 | read_cmd(cp)
      | ^~~~~~~~
cmds.c:4639:21: error: too many arguments to function ‘pause_cmd’; expected 0, have 1
 4639 |                 if (pause_cmd(_("Prepare to rerun the editor, or type \"quit\""))) {
      |                     ^~~~~~~~~
cmds.c:1945:1: note: declared here
 1945 | pause_cmd(cp)
      | ^~~~~~~~~
cmds.c: At top level:
cmds.c:4650:1: error: conflicting types for ‘edit_cmd’; have ‘int(void)’
 4650 | edit_cmd(cp)
      | ^~~~~~~~
proto.h:110:5: note: previous declaration of ‘edit_cmd’ with type ‘int(char *)’
  110 | int edit_cmd(char *cp);
      |     ^~~~~~~~
cmds.c: In function ‘edit_cmd’:
cmds.c:4650:1: warning: old-style function definition [-Wold-style-definition]
 4650 | edit_cmd(cp)
      | ^~~~~~~~
cmds.c:4690:17: error: too many arguments to function ‘list_cmd’; expected 0, have 1
 4690 |                 list_cmd("all");
      |                 ^~~~~~~~ ~~~~~
cmds.c:3294:1: note: declared here
 3294 | list_cmd(cp)
      | ^~~~~~~~
cmds.c: At top level:
cmds.c:4722:1: error: conflicting types for ‘save_cmd’; have ‘int(void)’
 4722 | save_cmd(cp)
      | ^~~~~~~~
proto.h:111:5: note: previous declaration of ‘save_cmd’ with type ‘int(char *)’
  111 | int save_cmd(char *cp);
      |     ^~~~~~~~
cmds.c: In function ‘save_cmd’:
cmds.c:4722:1: warning: old-style function definition [-Wold-style-definition]
 4722 | save_cmd(cp)
      | ^~~~~~~~
cmds.c:4772:14: error: too many arguments to function ‘list_cmd’; expected 0, have 1
 4772 |         rv = list_cmd("all");
      |              ^~~~~~~~ ~~~~~
cmds.c:3294:1: note: declared here
 3294 | list_cmd(cp)
      | ^~~~~~~~
make[2]: *** [<builtin>: parse.o] Error 1
make[2]: *** [<builtin>: help.o] Error 1
make[2]: *** [<builtin>: simplify.o] Error 1
make[2]: *** [<builtin>: cmds.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/mathomatic-16.0.5'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/mathomatic-16.0.5'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097366#14
Date:
2025-10-04 08:44:58 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for mathomatic (versioned as 16.0.5-5.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1097366#23
Date:
2025-10-06 10:49:40 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mathomatic, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1097366@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated mathomatic package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 04 Oct 2025 11:43:15 +0300
Source: mathomatic
Architecture: source
Version: 16.0.5-5.1
Distribution: unstable
Urgency: medium
Maintainer: tony mancill <tmancill@debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1097366
Changes:
 mathomatic (16.0.5-5.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Build with -std=gnu17 to workaround FTBFS with GCC 15.
     (Closes: #1097366)
Checksums-Sha1:
 72df93f3eef4a96f7fbdde4306d36cf502bbd767 1962 mathomatic_16.0.5-5.1.dsc
 04086e0e8091331d366bec7bd344120a66b09755 10156 mathomatic_16.0.5-5.1.debian.tar.xz
Checksums-Sha256:
 2c5f2cbe4724dadb0275f5541abc568d8d34f5b10528515fa0466bc93aef7eec 1962 mathomatic_16.0.5-5.1.dsc
 96c92b4251af39ee47a1fd0a1f0128262e17d0bb6c6ea3a30c032b03f81c1be2 10156 mathomatic_16.0.5-5.1.debian.tar.xz
Files:
 a7ead4061f541dcbb1d47e988e498d12 1962 math optional mathomatic_16.0.5-5.1.dsc
 4a2a45e7b15cd7266a25cb930637c694 10156 math optional mathomatic_16.0.5-5.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmjg3nUACgkQiNJCh6LY
mLEhOxAAseL7znL2GBKPxVal/AhLBhW4aWPzzLlijF0fKG7bjjU48WqIsZyyyKC+
DTQ99tNm9Qm6BVRG5wrlIvNfA/NVwAQ69w8eNQk3y+tZTDxjdiJiVwm6Yw+Sha+F
Qi7ZCHMg4MAi7e1rqw2C6N6jugc4ut5mw/TUgKNQugEYneG2wUR8LCoEb4DzQQ6Y
uRSCRV1QK4BAdaPZ9EZuGI2+Nb7p5eAjOWQDyTuhk21p6rb2iVoVy0kQb9DYHdhH
QvrehkCqShove0vaBaQw+Yufupo7NqKrlgQDN/lJutg2QACKxvudFiNcBrBzaLgv
ploAILbMxiWgdd9SBa7M7X3dH4jnL9xJA/YAdIAT9JzOUYnOzykpSiLhfxjlyjVK
Utu45kpEaRoiBMx+4Wf1/leRUbd+gLaYSW35uhJzhFYBFuKpJbgDu52brCENqId0
NRr3kYlg6sfhNbXkzk33x1wBqdTy61ZoAQbzbC1ciewQ2hqWKaph6IO9o4qD8wBt
e3KloRc24yGC+R8tv1S8VoAPHEauRY569upcNOYzLYZ2hdPl4Afs9YhStzRkQxOt
ya/GqXGXoZaKwj7FUJWWHRbLBvP/Z9oWibP9iyeKoU4MIHLNmuStwZdXw7dq8BuW
fLT4Lc8JSXPFBBNbegd4+MLxODUt7gaFwBli5n1tbFHDzp4ZzvE=
=tm+9
-----END PGP SIGNATURE-----