Bug#505689: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 14 12:55:55 UTC 2008


Package: btanks
Version: 0.8.7686-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of btanks_0.8.7686-1 on em64t by sbuild/amd64 0.53
...
> g++ -o build/release/engine/menu/image_view.os -c -Wall -g -g -O2 -Wall -g -Wall -g -Wall -pedantic -Wno-long-long -pipe -pthread -fPIC -Wall -pedantic -Wno-long-long -pipe -pthread -DUSE_GLSDL -DV3_DISABLE_Z -DRELEASE -DPREFIX="\"/usr\"" -DRESOURCES_DIR="\"/usr/share/games/btanks\"" -DPLUGINS_DIR="\"/usr/lib/btanks\"" -D_GNU_SOURCE=1 -D_REENTRANT -DBTANKSAPI=DLLEXPORT -DENABLE_LUA -DENABLE_LUA -I. -Iengine -Iengine/src -I/usr/include/SDL -I/usr/include/lua5.1 engine/menu/image_view.cpp
> engine/menu/image_view.cpp: In member function 'virtual void ImageView::tick(float)':
> engine/menu/image_view.cpp:69: error: no matching function for call to 'min(float&, double)'
> scons: *** [build/release/engine/menu/image_view.os] Error 1
> scons: building terminated because of errors.
> make: *** [build-stamp] Error 2

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





More information about the Pkg-games-devel mailing list