Your message dated Wed, 07 Sep 2005 14:17:09 -0700 with message-id <[EMAIL PROTECTED]> and subject line Bug#297287: fixed in snes9x 1.43-2 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 28 Feb 2005 13:04:13 +0000 >From [EMAIL PROTECTED] Mon Feb 28 05:04:13 2005 Return-path: <[EMAIL PROTECTED]> Received: from c204041.adsl.hansenet.de (localhost.localdomain) [213.39.204.41] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D5kZI-00083V-00; Mon, 28 Feb 2005 05:04:12 -0800 Received: from aj by localhost.localdomain with local (Exim 4.44) id 1D5lVc-0005h3-MV; Mon, 28 Feb 2005 15:04:28 +0100 To: Debian Bug Tracking System <[EMAIL PROTECTED]> From: Andreas Jochens <[EMAIL PROTECTED]> Subject: snes9x: FTBFS (amd64/gcc-4.0): cast from 'bool8*' to 'int' loses precision Message-Id: <[EMAIL PROTECTED]> Date: Mon, 28 Feb 2005 15:04:28 +0100 Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: Package: snes9x Severity: normal Tags: patch When building 'snes9x' on amd64 with gcc-4.0, I get the following error: offsets.cpp:380: error: cast from 'bool8*' to 'int' loses precision offsets.cpp:381: error: cast from 'uint8*' to 'int' loses precision offsets.cpp:383: error: cast from 'uint8*' to 'int' loses precision offsets.cpp:384: error: cast from 'uint8*' to 'int' loses precision offsets.cpp:385: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:386: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:388: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:389: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:391: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:392: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:394: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:395: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:397: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:398: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:400: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:401: error: cast from 'uint16*' to 'int' loses precision offsets.cpp:403: error: cast from 'uint16*' to 'int' loses precision make[1]: *** [offsets.o] Error 1 make[1]: Leaving directory `/snes9x-1.42/snes9x-1.42-src/snes9x' make: *** [build-stamp] Error 2 With the attached patch 'snes9x' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/getset.h ./snes9x-1.42-src/snes9x/getset.h --- ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/getset.h 2003-12-04 17:03:08.000000000 +0000 +++ ./snes9x-1.42-src/snes9x/getset.h 2005-02-28 13:39:13.762918145 +0000 @@ -106,7 +106,7 @@ return (*(GetAddress + (Address & 0xffff))); } - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_PPU: return (S9xGetPPU (Address & 0xffff)); @@ -211,7 +211,7 @@ #endif } - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_PPU: return (S9xGetPPU (Address & 0xffff) | @@ -335,7 +335,7 @@ return; } - switch ((int) SetAddress) + switch ((long) SetAddress) { case CMemory::MAP_PPU: S9xSetPPU (Byte, Address & 0xffff); @@ -468,7 +468,7 @@ return; } - switch ((int) SetAddress) + switch ((long) SetAddress) { case CMemory::MAP_PPU: S9xSetPPU ((uint8) Word, Address & 0xffff); @@ -589,7 +589,7 @@ { return s7r.bank50; } - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_SPC7110_DRAM: #ifdef SPC7110_DEBUG @@ -655,7 +655,7 @@ if(Settings.SPC7110&&((Address&0x7FFFFF)==0x4800)) return s7r.bank50; - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_SPC7110_DRAM: #ifdef SPC7110_DEBUG @@ -715,7 +715,7 @@ return; } - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_PPU: CPU.PCBase = Memory.FillRAM; diff -urN ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/offsets.cpp ./snes9x-1.42-src/snes9x/offsets.cpp --- ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/offsets.cpp 2003-12-04 17:03:08.000000000 +0000 +++ ./snes9x-1.42-src/snes9x/offsets.cpp 2005-02-28 13:37:48.805316530 +0000 @@ -86,30 +86,30 @@ #endif #define OFFSET(N,F) \ -fprintf (S9xSTREAM, "#define " #N " CPU + %d\n", (int) &((struct SCPUState *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " CPU + %ld\n", (long) &((struct SCPUState *) 0)->F); #define OFFSET2(N,F) \ -fprintf (S9xSTREAM, "#define " #N " Registers + %d\n", (int) &((struct SRegisters *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " Registers + %ld\n", (long) &((struct SRegisters *) 0)->F); #define OFFSET3(F) \ -fprintf (S9xSTREAM, "#define " #F " Memory + %d\n", (int) &((class CMemory *) 0)->F); +fprintf (S9xSTREAM, "#define " #F " Memory + %ld\n", (long) &((class CMemory *) 0)->F); #define OFFSET4(N,F) \ -fprintf (S9xSTREAM, "#define " #N " APU + %d\n", (int) &((struct SAPU *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " APU + %ld\n", (long) &((struct SAPU *) 0)->F); #define OFFSET5(N,F) \ -fprintf (S9xSTREAM, "#define " #N " IAPU + %d\n", (int) &((struct SIAPU *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " IAPU + %ld\n", (long) &((struct SIAPU *) 0)->F); #define OFFSET6(N,F) \ -fprintf (S9xSTREAM, "#define " #N " ICPU + %d\n", (int) &((struct SICPU *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " ICPU + %ld\n", (long) &((struct SICPU *) 0)->F); #define OFFSET7(N,F) \ -fprintf (S9xSTREAM, "#define " #N " Settings + %d\n", (int) &((struct SSettings *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " Settings + %ld\n", (long) &((struct SSettings *) 0)->F); #define OFFSET8(N, F) \ -fprintf (S9xSTREAM, "#define " #N " APURegisters + %d\n", (int) &((struct SAPURegisters *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " APURegisters + %ld\n", (long) &((struct SAPURegisters *) 0)->F); #define OFFSET9(N, F) \ -fprintf (S9xSTREAM, "#define " #N " PPU + %d\n", (int) &((struct SPPU *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " PPU + %ld\n", (long) &((struct SPPU *) 0)->F); #define OFFSET10(N, F) \ -fprintf (S9xSTREAM, "#define " #N " IPPU + %d\n", (int) &((struct InternalPPU *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " IPPU + %ld\n", (long) &((struct InternalPPU *) 0)->F); #define OFFSET11(N, F) \ -fprintf (S9xSTREAM, "#define " #N " SA1 + %d\n", (int) &((struct SSA1 *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " SA1 + %dl\n", (long) &((struct SSA1 *) 0)->F); #define OFFSET12(N, F) \ -fprintf (S9xSTREAM, "#define " #N " SA1Registers + %d\n", (int) &((struct SSA1Registers *) 0)->F); +fprintf (S9xSTREAM, "#define " #N " SA1Registers + %ld\n", (long) &((struct SSA1Registers *) 0)->F); int main (int /*argc*/, char ** /*argv*/) { diff -urN ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/sa1.cpp ./snes9x-1.42-src/snes9x/sa1.cpp --- ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/sa1.cpp 2003-12-04 17:03:08.000000000 +0000 +++ ./snes9x-1.42-src/snes9x/sa1.cpp 2005-02-28 13:38:29.479465669 +0000 @@ -187,7 +187,7 @@ if (GetAddress >= (uint8 *) CMemory::MAP_LAST) return (*(GetAddress + (address & 0xffff))); - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_PPU: return (S9xGetSA1 (address & 0xffff)); @@ -234,7 +234,7 @@ return; } - switch ((int) Setaddress) + switch ((long) Setaddress) { case CMemory::MAP_PPU: S9xSetSA1 (byte, address & 0xffff); @@ -296,7 +296,7 @@ return; } - switch ((int) GetAddress) + switch ((long) GetAddress) { case CMemory::MAP_PPU: SA1.PCBase = Memory.FillRAM - 0x2000; diff -urN ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/server.cpp ./snes9x-1.42-src/snes9x/server.cpp --- ../tmp-orig/snes9x-1.42/snes9x-1.42-src/snes9x/server.cpp 2003-12-04 17:03:08.000000000 +0000 +++ ./snes9x-1.42-src/snes9x/server.cpp 2005-02-28 13:39:52.262487018 +0000 @@ -806,9 +806,9 @@ S9xNPSendROMImageToAllClients (); break; case NP_SERVER_SYNC_CLIENT: - NPServer.Clients [(int) task_data].Ready = FALSE; + NPServer.Clients [(long) task_data].Ready = FALSE; S9xNPRecomputePause (); - S9xNPSyncClient ((int) task_data); + S9xNPSyncClient ((long) task_data); break; case NP_SERVER_SYNC_ALL: S9xNPSyncClients (); @@ -841,10 +841,10 @@ } break; case NP_SERVER_SEND_SRAM: - NPServer.Clients [(int) task_data].Ready = FALSE; + NPServer.Clients [(long) task_data].Ready = FALSE; S9xNPRecomputePause (); S9xNPWaitForEmulationToComplete (); - S9xNPSendSRAMToClient ((int) task_data); + S9xNPSendSRAMToClient ((long) task_data); break; case NP_SERVER_SEND_SRAM_ALL: --------------------------------------- Received: (at 297287-close) by bugs.debian.org; 7 Sep 2005 21:19:55 +0000 >From [EMAIL PROTECTED] Wed Sep 07 14:19:55 2005 Return-path: <[EMAIL PROTECTED]> Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian)) id 1ED7I5-00062g-00; Wed, 07 Sep 2005 14:17:09 -0700 From: Alain Schroeder <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] X-Katie: $Revision: 1.56 $ Subject: Bug#297287: fixed in snes9x 1.43-2 Message-Id: <[EMAIL PROTECTED]> Sender: Archive Administrator <[EMAIL PROTECTED]> Date: Wed, 07 Sep 2005 14:17:09 -0700 Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-CrossAssassin-Score: 3 Source: snes9x Source-Version: 1.43-2 We believe that the bug you reported is fixed in the latest version of snes9x, which is due to be installed in the Debian FTP archive: snes9x-opengl_1.43-2_i386.deb to pool/non-free/s/snes9x/snes9x-opengl_1.43-2_i386.deb snes9x-x_1.43-2_i386.deb to pool/non-free/s/snes9x/snes9x-x_1.43-2_i386.deb snes9x_1.43-2.diff.gz to pool/non-free/s/snes9x/snes9x_1.43-2.diff.gz snes9x_1.43-2.dsc to pool/non-free/s/snes9x/snes9x_1.43-2.dsc A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Alain Schroeder <[EMAIL PROTECTED]> (supplier of updated snes9x package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Wed, 7 Sep 2005 13:31:07 +0200 Source: snes9x Binary: snes9x-x snes9x-opengl Architecture: source i386 Version: 1.43-2 Distribution: unstable Urgency: low Maintainer: Alain Schroeder <[EMAIL PROTECTED]> Changed-By: Alain Schroeder <[EMAIL PROTECTED]> Description: snes9x-opengl - OpenGL binaries for snes9x - Super NES Emulator snes9x-x - X binaries for snes9x - Super NES Emulator Closes: 138416 286123 297287 322455 322456 Changes: snes9x (1.43-2) unstable; urgency=low . * Fix build on AMD64 (closes: #297287) * Add missing Build-Deps (closes: #322456) * Fix build on !i386 (closes: #322455) * Add OpenGL patch (closes: #138416, #286123) Files: c666886c09a902c4484cfb3a4b6b1999 642 non-free/games optional snes9x_1.43-2.dsc cea3f54c67d84cad6c5cb57fbea58748 37241 non-free/games optional snes9x_1.43-2.diff.gz bfc98d197d16fffa41239cf8c09564ae 386296 non-free/games optional snes9x-x_1.43-2_i386.deb 61307e1295267367fcc2de2f326f93ba 389618 non-free/games optional snes9x-opengl_1.43-2_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDH1SrjO6yWbPCgfQRAgjxAJ4oFAH2BwmypdtK/DFULQ98Z9l/SACaA68V UhPv613yhq79HPgaVpjQaHM= =oOYf -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]