** Description changed: - With GCC-15 and C standard C23, true|false are now part of the language - feature + ipmitool is built with -std=gnu11 - https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2935.pdf + this will enabled this include path: - 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: + In file included from /usr/include/linux/posix_types.h:4, + from /usr/include/asm-generic/socket.h:5, + from /usr/include/x86_64-linux-gnu/asm/socket.h:1, + from /usr/include/x86_64-linux-gnu/bits/socket.h:392, + from /usr/include/x86_64-linux-gnu/sys/socket.h:33, + from /usr/include/netinet/in.h:23, + from ../include/ipmitool/ipmi.h:39, + from ipmi_sel.c:44: + + and cause the build failure: + + /lib/modules/6.17.0-7-generic/build/include/linux/stddef.h:11:9: error: expected identifier before numeric constant + 11 | false = 0, + | ^~~~~ - 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, - | ^~~~~ + This is because <stdbool.h> has been included before <stddef.h> and already defines true and false
** Description changed: + On Questing 25.10 (but also older releases) + ipmitool is built with -std=gnu11 - this will enabled this include path: + this will enable the include path: In file included from /usr/include/linux/posix_types.h:4, - from /usr/include/asm-generic/socket.h:5, - from /usr/include/x86_64-linux-gnu/asm/socket.h:1, - from /usr/include/x86_64-linux-gnu/bits/socket.h:392, - from /usr/include/x86_64-linux-gnu/sys/socket.h:33, - from /usr/include/netinet/in.h:23, - from ../include/ipmitool/ipmi.h:39, - from ipmi_sel.c:44: + from /usr/include/asm-generic/socket.h:5, + from /usr/include/x86_64-linux-gnu/asm/socket.h:1, + from /usr/include/x86_64-linux-gnu/bits/socket.h:392, + from /usr/include/x86_64-linux-gnu/sys/socket.h:33, + from /usr/include/netinet/in.h:23, + from ../include/ipmitool/ipmi.h:39, + from ipmi_sel.c:44: - and cause the build failure: + and causes the build failure: /lib/modules/6.17.0-7-generic/build/include/linux/stddef.h:11:9: error: expected identifier before numeric constant 11 | false = 0, | ^~~~~ - - This is because <stdbool.h> has been included before <stddef.h> and already defines true and false + This is because <stdbool.h> has been included before <stddef.h> and + already defines true and false -- 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
