[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

Package: adplug
Version: 2.0.1-4
Usertags: ftbfs-gcc-4.3
Tags: patch

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).  Some background of this can be found at

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of adplug_2.0.1-4 on coconut0 by sbuild/ia64 0.49
>  g++ -DPACKAGE_NAME=\"adplug\" -DPACKAGE_TARNAME=\"adplug\" -DPACKAGE_VERSION=\"2.0.1\" "-DPACKAGE_STRING=\"adplug 2.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"adplug\" -DVERSION=\"2.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBSTDC__=1 -DHAVE_GETOPT_H=1 -I. -I. -Dstricmp=strcasecmp -I/usr/include/libbinio -g -O2 -MT rix.lo -MD -MP -MF .deps/rix.Tpo -c rix.cpp  -fPIC -DPIC -o .libs/rix.o
> rix.cpp: In member function 'void CrixPlayer::set_new_int()':
> rix.cpp:160: error: 'exit' was not declared in this scope
> make[2]: *** [rix.lo] Error 1

--- src/rix.cpp~	2007-04-01 14:21:13.000000000 +0000
+++ src/rix.cpp	2007-04-01 14:21:26.000000000 +0000
@@ -20,6 +20,8 @@
  *                                             BSPAL <BSPAL.ys168.com>
+#include <cstdlib>
 #include "rix.h"
 #include "debug.h"

Martin Michlmayr

Reply to: