Your message dated Wed, 3 Sep 2025 12:12:24 +0200
with message-id <[email protected]>
and subject line fixed
has caused the Debian Bug report #1098911,
regarding bash FTBFS with gcc-15 / C23
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1098911: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098911
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: bash
Version: 5.2.37-1.1
Severity: important
Tags: ftbfs upstream
User: [email protected]
Usertags: rebootstrap

Hi Matthias,

not sure how bash got missed in the archive rebuild, but it also FTBFS
with C23. Some pieces were contributed in 2023 already, but as it stands
there still are incompatible function declarations such as

| ../.././builtins/mkbuiltins.c:267:29: error: too many arguments to function 
'xmalloc'; expected 0, have 1
|   267 |           error_directory = xmalloc (2 + strlen (argv[arg_index]));
|       |                             ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../.././builtins/mkbuiltins.c:62:14: note: declared here
|    62 | static char *xmalloc (), *xrealloc ();
|       |              ^~~~~~~

This particular one is fixed on the devel branch upstream, but not on
the master branch upstream. The relevant commit
57d4dc15ff35895a1c1248f948f59739ffb99fde is a grab bag that also covers
asan fixes as well as autotoolizing, so it likely is not backportable as
is.

Would you mind a temporarily selecting gnu17 explicitly?

--- a/debian/rules
+++ b/debian/rules
@@ -41,7 +41,7 @@
 endif
 
 
-dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" 
DEB_CFLAGS_MAINT_APPEND="-Wall" dpkg-buildflags
+dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" 
DEB_CFLAGS_MAINT_APPEND="-Wall -std=gnu17" dpkg-buildflags
 CFLAGS := $(shell $(dpkg_buildflags) --get CFLAGS)
 CPPFLAGS := $(shell $(dpkg_buildflags) --get CPPFLAGS)
 LDFLAGS := $(shell $(dpkg_buildflags) --get LDFLAGS)

This builds and has few chances of introducing regressions as it merely
selects what is the default to the default compiler for trixie.

Helmut

--- End Message ---
--- Begin Message ---
fixed in one of the 5.3 betas/rcs.

--- End Message ---

Reply via email to