Public bug reported:

This hits the same gcc-15 defaults to the new standard and thereby
conflicts with sources defining bool themselve as it was usual.

Build fail example from archive rebuild:
https://launchpadlibrarian.net/818391228/buildlog_ubuntu-questing-amd64.ipxe-qemu-256k-compat_1.0.0+git-20150424.a25a16d-0ubuntu6_BUILDING.txt.gz


..
In file included from include/ipxe/ansicol.h:13,
                 from core/ansicol.c:30:
include/curses.h:28:13: error: ‘bool’ cannot be defined via ‘typedef’
   28 | typedef int bool;
      |             ^~~~
include/curses.h:28:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
include/curses.h:28:1: warning: useless type name in empty declaration
   28 | typedef int bool;
      | ^~~~~~~
In file included from include/ipxe/ansicol.h:13,
                 from core/ansicoldef.c:29:
include/curses.h:28:13: error: ‘bool’ cannot be defined via ‘typedef’
   28 | typedef int bool;
      |             ^~~~
include/curses.h:28:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
include/curses.h:28:1: warning: useless type name in empty declaration
   28 | typedef int bool;
      | ^~~~~~~
...

Background by upstream
https://gcc.gnu.org/gcc-15/porting_to.html#c23

This code is not meant to change and only here for migration
compatibility, so the question is how to minimally invasive make it work
again.

** Affects: ipxe-qemu-256k-compat (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125036

Title:
  FTBFS with gcc15 in Questing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipxe-qemu-256k-compat/+bug/2125036/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to