Bug#462205: FTBFS with GCC 4.3: missing #includes

Martin Michlmayr tbm at cyrius.com
Wed Jan 23 07:10:14 UTC 2008


Package: netpanzer
Version: 0.8.2-1
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  There's some more information about this at
http://gcc.gnu.org/gcc-4.3/porting_to.html

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

> Automatic build of netpanzer_0.8.2-1 on em64t by sbuild/amd64 0.53
...
> C++ ./build/x86_64-pc-linux-gnu/opt/src/Lib/Util/Timer.o 
> C++ ./build/x86_64-pc-linux-gnu/opt/src/Lib/Util/Log.o 
> src/Lib/Util/Log.cpp: In member function 'void Logger::cleanLogs()':
> src/Lib/Util/Log.cpp:90: error: 'sort' is not a member of 'std'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
>     x86_64-linux-gnu-g++ -c -o ./build/x86_64-pc-linux-gnu/opt/src/Lib/Util/Log.o  -I. -Isrc/Lib -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -Wall -W -O3 -g3 -O3 -g3   src/Lib/Util/Log.cpp
> 
> ...failed C++ ./build/x86_64-pc-linux-gnu/opt/src/Lib/Util/Log.o ...
> C++ ./build/x86_64-pc-linux-gnu/opt/src/Lib/Util/FileSystem.o 
> src/Lib/Util/FileSystem.cpp: In function 'void filesystem::initialize(const char*, const char*, const char*)':

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





More information about the Pkg-games-devel mailing list