Public bug reported:
Version 1.4.2+dfsg-1
Log snippet:
```
...
641s autopkgtest [11:03:31]: test command1: [-----------------------
644s gcc -o client ../client.c -lsnap7
644s In file included from ../client.c:33:
644s ../snap7.h:167:13: error: ‘bool’ cannot be defined via ‘typedef’
644s 167 | typedef int bool;
644s | ^~~~
644s ../snap7.h:167:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
644s ../snap7.h:167:1: warning: useless type name in empty declaration
644s 167 | typedef int bool;
644s | ^~~~~~~
644s make: *** [makefile:19: all] Error 1
644s autopkgtest [11:03:34]: test command1: -----------------------]
648s autopkgtest [11:03:38]: test command1: - - - - - - - - - - results - - -
- - - - - - -
648s command1 FAIL non-zero exit status 2
648s autopkgtest [11:03:38]: test command1: - - - - - - - - - - stderr - - - -
- - - - - -
648s In file included from ../client.c:33:
648s ../snap7.h:167:13: error: ‘bool’ cannot be defined via ‘typedef’
648s 167 | typedef int bool;
648s | ^~~~
648s ../snap7.h:167:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
648s ../snap7.h:167:1: warning: useless type name in empty declaration
648s 167 | typedef int bool;
648s | ^~~~~~~
648s make: *** [makefile:19: all] Error 1
652s autopkgtest [11:03:42]: @@@@@@@@@@@@@@@@@@@@ summary
652s command1 FAIL non-zero exit status 2
...
```
** Affects: snap7 (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/2120859
Title:
snap7.h fails to compile with C23
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap7/+bug/2120859/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs