Package: mednafen Version: 0.7.2-1 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 http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot (20070326-1 or higher) from unstable. > Automatic build of mednafen_0.7.2-1 on em64t by sbuild/amd64 0.53 ... > T6W28_Apu.cpp:173: warning: declaration of 'delta_right' shadows a previous > local > T6W28_Apu.cpp:147: warning: shadowed declaration is here > T6W28_Apu.cpp:175: warning: declaration of 'period' shadows a member of 'this' > T6W28_Apu.cpp: In member function 'T6W28_ApuState* T6W28_Apu::save_state()': > T6W28_Apu.cpp:366: error: 'malloc' was not declared in this scope > make[3]: *** [T6W28_Apu.o] Error 1 --- src/pce/huc.cpp~ 2007-04-02 19:14:30.000000000 +0000 +++ src/pce/huc.cpp 2007-04-02 19:14:35.000000000 +0000 @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <cstdlib> #include <errno.h> #include <string.h> #include "pce.h" --- src/pce/hes.cpp~ 2007-04-02 19:14:45.000000000 +0000 +++ src/pce/hes.cpp 2007-04-02 19:15:07.000000000 +0000 @@ -18,6 +18,7 @@ #include "pce.h" #include "hes.h" #include "../player.h" +#include <cstdlib> static uint8 mpr_start[8]; static uint8 IBP[0x10]; --- src/pcfx/pcfx.cpp~ 2007-04-02 19:15:49.000000000 +0000 +++ src/pcfx/pcfx.cpp 2007-04-02 19:15:55.000000000 +0000 @@ -1,3 +1,4 @@ +#include <cstdlib> #include <errno.h> #include <string.h> --- src/pcfx/king.cpp~ 2007-04-02 19:18:01.000000000 +0000 +++ src/pcfx/king.cpp 2007-04-02 19:18:44.000000000 +0000 @@ -1,5 +1,6 @@ /* Emulation for HuC6261(descendant of the VCE) and the HuC6272(KING) */ +#include <cstdlib> #include "pcfx.h" #include "v810_cpu.h" #include "vdc.h" --- src/pcfx/vdc.cpp~ 2007-04-02 19:18:31.000000000 +0000 +++ src/pcfx/vdc.cpp 2007-04-02 19:18:37.000000000 +0000 @@ -15,6 +15,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <cstdlib> #include <math.h> #include "pcfx.h" #include "../video.h" --- src/pcfx/scsicd.cpp~ 2007-04-02 19:19:08.000000000 +0000 +++ src/pcfx/scsicd.cpp 2007-04-02 19:19:14.000000000 +0000 @@ -1,3 +1,4 @@ +#include <cstdlib> #include "pcfx.h" #include "v810_cpu.h" #include "scsicd.h" --- src/pcfx/v810_cpu.cpp~ 2007-04-02 19:26:44.000000000 +0000 +++ src/pcfx/v810_cpu.cpp 2007-04-02 19:26:54.000000000 +0000 @@ -20,6 +20,7 @@ ////////////////////////////////////////////////////////// // CPU routines +#include <cstdlib> #include <string.h> #include "pcfx.h" --- src/ngp/T6W28_Apu.h~ 2007-04-02 19:08:07.000000000 +0000 +++ src/ngp/T6W28_Apu.h 2007-04-02 19:08:23.000000000 +0000 @@ -3,6 +3,8 @@ #ifndef SMS_APU_H #define SMS_APU_H +#include <cstdlib> + typedef long sms_time_t; // clock cycle count #include "T6W28_Oscs.h" --- src/wswan/gfx.cpp~ 2007-04-02 19:19:37.000000000 +0000 +++ src/wswan/gfx.cpp 2007-04-02 19:19:45.000000000 +0000 @@ -25,6 +25,7 @@ #include "rtc.h" #include "../video.h" #include <stdio.h> +#include <cstdlib> static uint32 wsMonoPal[16][4]; static uint32 wsColors[8]; --- src/wswan/main.cpp~ 2007-04-02 19:19:53.000000000 +0000 +++ src/wswan/main.cpp 2007-04-02 19:20:01.000000000 +0000 @@ -23,6 +23,7 @@ #include "../md5.h" #include "../mempatcher.h" +#include <cstdlib> #include <stdio.h> #include <fcntl.h> #include <sys/types.h> --- src/settings.cpp~ 2007-04-02 19:21:15.000000000 +0000 +++ src/settings.cpp 2007-04-02 19:21:25.000000000 +0000 @@ -1,5 +1,6 @@ #include <errno.h> #include <string.h> +#include <cstdlib> #include <vector> #include <string> #include "mednafen.h" -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

