Bug#1092408: trackballs: FTBFS: SDL_ttf.h:165:16: error: using typedef-name ‘TTF_Font’ after ‘struct’

Lucas Nussbaum lucas at debian.org
Tue Jan 7 19:53:14 GMT 2025


Source: trackballs
Version: 1.3.4-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20250106 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> /usr/bin/c++ -DALT_HIGHSCORES="\"~\"" -DDEFAULT_RESOLUTION=-1 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"trackballs\" -DSHARE_DIR=\"/usr/share/games/trackballs\" -DVERSION=\"1.3.4\" -D_REENTRANT -I/<<PKGBUILDDIR>>/src -I/usr/include/guile/3.0 -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/SDL2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -pthread -MD -MT CMakeFiles/trackballs.dir/src/general.cc.o -MF CMakeFiles/trackballs.dir/src/general.cc.o.d -o CMakeFiles/trackballs.dir/src/general.cc.o -c /<<PKGBUILDDIR>>/src/general.cc
> In file included from /<<PKGBUILDDIR>>/src/font.cc:25:
> /usr/include/SDL2/SDL_ttf.h:165:16: error: using typedef-name ‘TTF_Font’ after ‘struct’
>   165 | typedef struct TTF_Font TTF_Font;
>       |                ^~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/font.cc:23:
> /<<PKGBUILDDIR>>/src/glHelp.h:30:26: note: ‘TTF_Font’ has a previous declaration here
>    30 | typedef struct _TTF_Font TTF_Font;
>       |                          ^~~~~~~~
> /usr/include/SDL2/SDL_ttf.h:165:25: error: conflicting declaration ‘typedef int TTF_Font’
>   165 | typedef struct TTF_Font TTF_Font;
>       |                         ^~~~~~~~
> /<<PKGBUILDDIR>>/src/glHelp.h:30:26: note: previous declaration as ‘typedef struct _TTF_Font TTF_Font’
>    30 | typedef struct _TTF_Font TTF_Font;
>       |                          ^~~~~~~~
> [ 50%] Building CXX object CMakeFiles/trackballs.dir/src/glHelp.cc.o
> /usr/bin/c++ -DALT_HIGHSCORES="\"~\"" -DDEFAULT_RESOLUTION=-1 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"trackballs\" -DSHARE_DIR=\"/usr/share/games/trackballs\" -DVERSION=\"1.3.4\" -D_REENTRANT -I/<<PKGBUILDDIR>>/src -I/usr/include/guile/3.0 -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/SDL2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -pthread -MD -MT CMakeFiles/trackballs.dir/src/glHelp.cc.o -MF CMakeFiles/trackballs.dir/src/glHelp.cc.o.d -o CMakeFiles/trackballs.dir/src/glHelp.cc.o -c /<<PKGBUILDDIR>>/src/glHelp.cc
> make[3]: *** [CMakeFiles/trackballs.dir/build.make:324: CMakeFiles/trackballs.dir/src/font.cc.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2025/01/06/trackballs_1.3.4-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250106;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250106&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-games-devel mailing list