Bug#1020019: spring: FTBFS: sdlstub.c:291:30: error: conflicting types for =?UTF-8?Q?=E2=80=98SDL=5FSetTextInputRect=E2=80=99; ?= have ‘void?=(SDL Rect *)=?UTF-8?Q?’

Lucas Nussbaum lucas at debian.org
Sun Sep 18 07:22:07 BST 2022


Source: spring
Version: 105.0.1+dfsg-5
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/lib/streflop && /usr/bin/c++ -DASIO_STANDALONE -DSPRING_DATADIR=\"/usr/share/games/spring:/usr/lib/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DTHREADPOOL -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -I/<<PKGBUILDDIR>>/rts -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++17 -fdiagnostics-color=auto -march=x86-64 -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread  -O2      -Wformat -Wformat-security -DNDEBUG -g -fpic -DLIBM_COMPILING_FLT32 -I"/<<PKGBUILDDIR>>/rts/lib/streflop/libm/headers" -w -O3 -mfpmath=sse -msse -MD -MT rts/lib/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o -MF CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o.d -o CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o -c /<<PKGBUILDDIR>>/rts/lib/streflop/libm/flt-32/e_jnf.cpp
> /<<PKGBUILDDIR>>/rts/lib/headlessStubs/sdlstub.c:291:30: error: conflicting types for ‘SDL_SetTextInputRect’; have ‘void(SDL_Rect *)’
>   291 | extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect) {
>       |                              ^~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/SDL2/SDL_events.h:34,
>                  from /usr/include/SDL2/SDL.h:41,
>                  from /<<PKGBUILDDIR>>/rts/lib/headlessStubs/sdlstub.c:8:
> /usr/include/SDL2/SDL_keyboard.h:318:30: note: previous declaration of ‘SDL_SetTextInputRect’ with type ‘void(const SDL_Rect *)’
>   318 | extern DECLSPEC void SDLCALL SDL_SetTextInputRect(const SDL_Rect *rect);
>       |                              ^~~~~~~~~~~~~~~~~~~~
> make[4]: *** [rts/lib/headlessStubs/CMakeFiles/headlessStubs.dir/build.make:107: rts/lib/headlessStubs/CMakeFiles/headlessStubs.dir/sdlstub.c.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/spring_105.0.1+dfsg-5_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&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 marking 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