/usr/bin/c++ -DDEFAULT_RESOLUTION=-1 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"trackballs\" -DSHARE_DIR=\"/usr/local/share/trackballs\" -DVERSION=\"1.3.4\" -D_REENTRANT -D_THREAD_SAFE -I/wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src -I/usr/local/include/guile/2.2 -I/wrkdirs/usr/ports/games/trackballs/work/.build -I/usr/local/include/SDL2 -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -pthread -MD -MT CMakeFiles/trackballs.dir/src/font.cc.o -MF CMakeFiles/trackballs.dir/src/font.cc.o.d -o CMakeFiles/trackballs.dir/src/font.cc.o -c /wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/font.cc In file included from /wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/font.cc:25: /usr/local/include/SDL2/SDL_ttf.h:165:16: error: typedef 'TTF_Font' cannot be referenced with a struct specifier 165 | typedef struct TTF_Font TTF_Font; | ^ /wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/glHelp.h:30:26: note: declared here 30 | typedef struct _TTF_Font TTF_Font; | ^ 1 error generated. Using Poudriere, 14.2-RELEASE (amd64)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a2c00b01723f976032b8c13d17ce178350f9579 commit 5a2c00b01723f976032b8c13d17ce178350f9579 Author: Ganael LAPLANCHE <martymac@FreeBSD.org> AuthorDate: 2025-01-07 11:04:45 +0000 Commit: Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2025-01-07 11:06:50 +0000 games/trackballs: Fix build for sdl2_ttf upgrade PR: 283868 Reported by: diizzy games/trackballs/files/patch-src-glHelp.h (new) | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Hello Daniel, Thanks a lot for your report! This is related to the following change upstream: https://github.com/libsdl-org/SDL_ttf/commit/22347419ee08e49d77411c680f15e314ef870ab7. I have patched the port so it will build with the upgrade. Cheers, Ganael.
Thanks! :-)