[Bug 2120864] Re: table.c fails to compile with C23 with "error: ‘bool’ cannot be used here"
Tim Andersson
2120864 at bugs.launchpad.net
Wed Aug 20 17:02:37 BST 2025
** Tags added: update-excuse
--
You received this bug notification because you are a member of ProFTPD
Maintainance Team, which is subscribed to proftpd-dfsg in Ubuntu.
https://bugs.launchpad.net/bugs/2120864
Title:
table.c fails to compile with C23 with "error: ‘bool’ cannot be used
here"
Status in proftpd-dfsg package in Ubuntu:
New
Bug description:
Version 1.3.8.c+dfsg-4
Log snippet:
```
...
601s gcc -Wdate-time -D_FORTIFY_SOURCE=3 -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=3 -g2 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=/usr/src/proftpd-dfsg-1.3.8.c+dfsg-4 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c sets.c
602s gcc -Wdate-time -D_FORTIFY_SOURCE=3 -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=3 -g2 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=/usr/src/proftpd-dfsg-1.3.8.c+dfsg-4 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c pool.c
604s gcc -Wdate-time -D_FORTIFY_SOURCE=3 -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=3 -g2 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=/usr/src/proftpd-dfsg-1.3.8.c+dfsg-4 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c privs.c
605s gcc -Wdate-time -D_FORTIFY_SOURCE=3 -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=3 -g2 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=/usr/src/proftpd-dfsg-1.3.8.c+dfsg-4 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c str.c
607s gcc -Wdate-time -D_FORTIFY_SOURCE=3 -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=3 -g2 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src=/usr/src/proftpd-dfsg-1.3.8.c+dfsg-4 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp/autopkgtest.dMSItq/build.V4w/src/src=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c table.c
608s table.c:1280:31: error: ‘bool’ cannot be used here
608s 1280 | int table_handling_signal(int bool) {
608s | ^~~~
608s table.c:1280:31: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
608s table.c: In function ‘table_handling_signal’:
608s table.c:1281:12: error: expected identifier or ‘(’ before ‘==’ token
608s 1281 | if (bool == TRUE ||
608s | ^~
608s table.c:1281:7: error: declaration in the controlling expression must have an initializer
608s 1281 | if (bool == TRUE ||
608s | ^~~~
608s table.c:1283:23: error: expected expression before ‘bool’
608s 1283 | handling_signal = bool;
608s | ^~~~
608s make[1]: Leaving directory '/tmp/autopkgtest.dMSItq/build.V4w/src/src'
608s make[1]: *** [Makefile:20: table.o] Error 1
608s make: *** [Makefile:54: src] Error 2
...
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/proftpd-dfsg/+bug/2120864/+subscriptions
More information about the Pkg-proftpd-maintainers
mailing list