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

Martin Michlmayr tbm at cyrius.com
Sat Feb 2 21:46:03 UTC 2008


Package: adanaxisgpl
Version: 1.2.2-1
Severity: important
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 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[3]: *** [MushcoreBison.o] Error 1
> make[3]: Leaving directory `/build/tbm/adanaxisgpl-1.2.2/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/build/tbm/adanaxisgpl-1.2.2'
> make[1]: *** [all] Error 2

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





More information about the Pkg-games-devel mailing list