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

Martin Michlmayr tbm at cyrius.com
Tue Jan 22 07:41:02 UTC 2008


Package: qonk
Version: 0.3.0-2
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 qonk_0.3.0-2 on em64t by sbuild/amd64 0.53
...
> make[4]: Entering directory `/build/tbm/qonk-0.3.0/src/lisp'
> g++ -DHAVE_CONFIG_H -I. -I. -I../..     -g -Wall -O2 -c -o lexer.o lexer.cpp
> lexer.cpp: In member function 'lisp::Lexer::TokenType lisp::Lexer::getNextToken()':
> lexer.cpp:180: error: 'strcmp' was not declared in this scope
> lexer.cpp:182: error: 'strcmp' was not declared in this scope
> lexer.cpp:217: error: 'strchr' was not declared in this scope
> lexer.cpp:238: error: 'strchr' was not declared in this scope
> make[4]: *** [lexer.o] Error 1
> make[4]: Leaving directory `/build/tbm/qonk-0.3.0/src/lisp'

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





More information about the Pkg-games-devel mailing list