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

Martin Michlmayr tbm at cyrius.com
Wed Jan 23 11:43:19 UTC 2008


Package: pingus
Version: 0.7.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 pingus_0.7.2-1 on em64t by sbuild/amd64 0.53
...
> g++ -o src/input/evdev_device.o -c -D_GNU_SOURCE=1 -D_REENTRANT -I. -Isrc -I/usr/include/SDL -I. -Isrc src/input/evdev_device.cpp
> src/input/evdev_device.cpp: In constructor 'Input::EvdevDevice::EvdevDevice(const std::string&)':
> src/input/evdev_device.cpp:47: error: 'strerror' was not declared in this scope
> src/input/evdev_device.cpp:72: error: 'memset' was not declared in this scope
> scons: *** [src/input/evdev_device.o] Error 1
> scons: building terminated because of errors.
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

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





More information about the Pkg-games-devel mailing list