Bug#385714: FTBFS with GCC 4.2: uses removed minimum/maximum operator

Martin Michlmayr tbm at cyrius.com
Sat Sep 2 13:50:45 UTC 2006


Package: starfighter
Version: 1.1-6

Your package fails to build with GCC 4.2.  Version 4.2 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  You're using an minimum/maximum
or similar operator (that is, <?, ?>, <?=, or >?=) which has been removed
as of 4.2.  These operators have been removed since GCC 4.0 so please
let your upstream know about this issue.

You can reproduce this with the gcc-snapshot package from unstable
(20060823-1 or higher).


> Automatic build of starfighter_1.1-6 on em64t by sbuild/amd64 0.49
...
> D: Running: /usr/lib/gcc-snapshot/bin/g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -DLINUX -c -ftree-vectorize -O3 -Wall -g -ftree-vectorize -O3 -DVERSION="1.1" -DPACKLOCATION="/usr/share/games/starfighter/starfighter.pak" code/game.cpp 
> code/classes.h: In member function 'void Graphics::blit(SDL_Surface*, int, int, SDL_Surface*)':
> code/classes.h:269: warning: deprecated conversion from string constant to 'char*'
> code/classes.h: In member function 'void Graphics::unBuffer()':
> code/classes.h:321: warning: deprecated conversion from string constant to 'char*'
> code/classes.h: In member function 'int Graphics::renderString(char*, int, int, int, signed char, SDL_Surface*)':
> code/classes.h:361: warning: deprecated conversion from string constant to 'char*'
> code/classes.h: In member function 'void Graphics::drawLine(SDL_Surface*, int, int, int, int, int)':
> code/classes.h:497: warning: deprecated conversion from string constant to 'char*'
> code/classes.h: In member function 'SDL_Surface* Graphics::createSurface(int, int)':
> code/classes.h:612: warning: deprecated conversion from string constant to 'char*'
> code/game.cpp: In function 'int mainGameLoop()':
> code/game.cpp:281: error: expected primary-expression before '?' token
> code/game.cpp:281: error: expected primary-expression before '?' token
> code/game.cpp:281: error: expected `:' before ')' token
> code/game.cpp:281: error: expected primary-expression before ')' token
> code/game.cpp:281: error: expected `:' before ')' token
> code/game.cpp:281: error: expected primary-expression before ')' token
> make[1]: *** [game.o] Error 1
> make[1]: Leaving directory `/build/tbm/starfighter-1.1'
> make: *** [build-stamp] Error 2

-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Pkg-games-devel mailing list