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

Martin Michlmayr tbm at cyrius.com
Mon Jan 21 16:39:23 UTC 2008


Package: late
Version: 0.1.0-10
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 late_0.1.0-10 on em64t by sbuild/amd64 0.53
...
> Making all in src
> make[2]: Entering directory `/build/tbm/late-0.1.0/src'
> if x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"late\" -DVERSION=\"0.1.0\" -DX_DISPLAY_MISSING=1 -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSTDC__=1  -I. -I.  -Wall -DDATADIR=\"/usr/share/games/late\" -DLOCALSTATEDIR=\"/usr/var\"   -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT init.o -MD -MP -MF ".deps/init.Tpo" \
> 	  -c -o init.o `test -f 'init.cpp' || echo './'`init.cpp; \
> 	then mv -f ".deps/init.Tpo" ".deps/init.Po"; \
> 	else rm -f ".deps/init.Tpo"; exit 1; \
> 	fi
> init.cpp: In function 'int main(int, char**)':
> init.cpp:140: error: 'strcmp' was not declared in this scope
> make[2]: *** [init.o] Error 1
> make[2]: Leaving directory `/build/tbm/late-0.1.0/src'

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





More information about the Pkg-games-devel mailing list