Bug#1114106: freedroid: FTBFS: struct.h:40:14: error: 'bool' cannot be defined via 'typedef'

Santiago Vila sanvila at debian.org
Fri Sep 5 19:17:06 BST 2025


Package: src:freedroid
Version: 1.2.3.apk-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:freedroid, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
acinclude.m4:11: warning: underquoted definition of AM_PATH_SDL
acinclude.m4:11:   run info Automake 'Extending aclocal'
acinclude.m4:11:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:15: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:15: You should use the 'AC_CONFIG_HEADERS' macro instead.
aclocal.m4:707: AM_CONFIG_HEADER is expanded from...
configure.ac:15: the top level
configure.ac:40: warning: The macro 'AC_TRY_RUN' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from...
acinclude.m4:11: AM_PATH_SDL is expanded from...
configure.ac:40: the top level
configure.ac:40: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
acinclude.m4:11: AM_PATH_SDL is expanded from...
configure.ac:40: the top level
configure.ac:102: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.ac:102: the top level
configure.ac:108: warning: The macro 'AC_HEADER_TIME' is obsolete.
configure.ac:108: You should run autoupdate.
./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from...
configure.ac:108: the top level
configure.ac:111: warning: The macro 'AC_TYPE_SIGNAL' is obsolete.
configure.ac:111: You should run autoupdate.
./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from...
configure.ac:111: the top level
configure.ac:19: installing './compile'
configure.ac:9: installing './config.guess'
configure.ac:9: installing './config.sub'
configure.ac:12: installing './install-sh'
configure.ac:12: installing './missing'
src/Makefile.am: installing './depcomp'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- --bindir=\${prefix}/games --datadir=\${prefix}/share/games
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --bindir=\${prefix}/games --datadir=\${prefix}/share/games
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking whether make sets $(MAKE)... (cached) yes
checking for sin in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: Checking for compulsory SDL libraries:
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.3... yes
checking for SDL_Init in -lSDL... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for png_read_png in -lpng... yes
checking for IMG_LoadJPG_RW in -lSDL_image... yes
checking for zoomSurface in -lSDL_gfx... yes
configure: Checking for optional SDL libraries:
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for main in -lvorbis... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/time.h... (cached) yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for dirent.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for memset... yes
checking for sqrt... yes
checking for strstr... yes
checking for strtok... yes
checking for strcspn... yes
checking for strspn... yes
checking for rand... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating map/Makefile
config.status: creating sound/Makefile
config.status: creating graphics/Makefile
config.status: creating graphics/classic_theme/Makefile
config.status: creating graphics/lanzz_theme/Makefile
config.status: creating graphics/para90_theme/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCAL_DATADIR=\"..\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DFD_DATADIR='"/usr/share/games/freedroid"' -c -o freedroid-BFont.o `test -f 'BFont.c' || echo './'`BFont.c
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCAL_DATADIR=\"..\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DFD_DATADIR='"/usr/share/games/freedroid"' -c -o freedroid-bullet.o `test -f 'bullet.c' || echo './'`bullet.c
In file included from bullet.c:38:
struct.h:40:14: error: ‘bool’ cannot be defined via ‘typedef’
   40 | typedef char bool;
      |              ^~~~
struct.h:40:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
struct.h:40:1: warning: useless type name in empty declaration
   40 | typedef char bool;
      | ^~~~~~~
In file included from proto.h:28,
                 from BFont.c:9:
struct.h:40:14: error: ‘bool’ cannot be defined via ‘typedef’
   40 | typedef char bool;
      |              ^~~~
struct.h:40:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
struct.h:40:1: warning: useless type name in empty declaration
   40 | typedef char bool;
      | ^~~~~~~
make[3]: *** [Makefile:559: freedroid-bullet.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:545: freedroid-BFont.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:462: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:360: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-games-devel mailing list