Public bug reported:

With GCC-15 and C standard C23, true|false are now part of the language
feature

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2935.pdf

as we set the configuration option --with-kerneldir,
ipmitool is built with kernel headers and 
/lib/modules/6.17.0-7-generic/build/include/linux/stddef.h
also define true|false:


libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wdate-time 
-D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-poi\
nter -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/ubuntu/ipmitool=. 
-flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection 
-W\
format -Werror=format-security -fcf-protection 
-fdebug-prefix-map=/home/ubuntu/ipmitool=/usr/src/ipmitool-1.8.19-9ubuntu2 
-Wall -Wextra -std=gnu11 -pedantic \
-Wformat -Wformat-nonliteral -I /lib/modules/6.17.0-7-generic/build/include -c 
ipmi_sel.c  -fPIC -DPIC -o .libs/ipmi_sel.o
In file included from ipmi_sel.c:40:
/lib/modules/6.17.0-7-generic/build/include/linux/stddef.h:11:9: error: 
expected identifier before numeric constant
   11 |         false   = 0,
      |         ^~~~~

** Affects: ipmitool (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/2133161

Title:
  FTBFS because of kernel headers stddef.h defining true/false

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/2133161/+subscriptions


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

Reply via email to