Bug#463741: FTBFS with GCC 4.3: missing #includes
tbm at cyrius.com
Sat Feb 2 21:46:03 UTC 2008
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
You can reproduce this problem with gcc-4.3 or gcc-snapshot from
> Automatic build of adanaxisgpl_1.2.2-1 on em64t by sbuild/amd64 0.53
> mv -f .deps/MushcoreFail.Tpo .deps/MushcoreFail.Po
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DMUSH_DATA_DIR=\"/usr/share/games\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./API -DNDEBUG -I./Platform/X11 -g -O2 -MT MushcoreBison.o -MD -MP -MF .deps/MushcoreBison.Tpo -c -o MushcoreBison.o `test -f 'Mushcore/MushcoreBison.cpp' || echo './'`Mushcore/MushcoreBison.cpp
> Mushcore/MushcoreBison.cpp: In function 'int MushcoreBison_parse(void*)':
> Mushcore/MushcoreBison.cpp:621: warning: deprecated conversion from string constant to 'char*'
> Mushcore/MushcoreBison.cpp:926: error: 'strlen' was not declared in this scope
> Mushcore/MushcoreBison.cpp:930: error: 'strcpy' was not declared in this scope
> Mushcore/MushcoreBison.cpp:939: error: 'strcat' was not declared in this scope
> Mushcore/MushcoreBison.cpp:949: warning: deprecated conversion from string constant to 'char*'
> Mushcore/MushcoreBison.cpp:953: warning: deprecated conversion from string constant to 'char*'
> make: *** [MushcoreBison.o] Error 1
> make: Leaving directory `/build/tbm/adanaxisgpl-1.2.2/src'
> make: *** [all-recursive] Error 1
> make: Leaving directory `/build/tbm/adanaxisgpl-1.2.2'
> make: *** [all] Error 2
More information about the Pkg-games-devel