Your message dated Mon, 17 Jan 2005 09:32:15 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#285482: fixed in asc 1.15.2.1-3
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; 13 Dec 2004 15:20:24 +0000
>From [EMAIL PROTECTED] Mon Dec 13 07:20:24 2004
Return-path: <[EMAIL PROTECTED]>
Received: from c203038.adsl.hansenet.de (localhost.localdomain) [213.39.203.38] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1Cdrzr-00086B-00; Mon, 13 Dec 2004 07:20:23 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
        id 1Cds4A-0007Lz-Ea; Mon, 13 Dec 2004 16:24:50 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: asc: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 13 Dec 2004 16:24:50 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (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_2004_03_25
X-Spam-Level: 

Package: asc
Severity: normal
Tags: patch

When building 'asc' on amd64 with gcc-4.0,
I get the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/SDL -D_REENTRANT 
-I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -g -O2 
-Wno-sign-compare -funsigned-char -D_UNIX_ -D_SDL_ -c graphics.cpp -MT 
graphics.lo -MD -MP -MF .deps/graphics.TPlo -o graphics.o
graphics.cpp: In function 'void initASCGraphicSubsystem(SDL_Surface*, 
SDLmm::Surface*)':
graphics.cpp:87: error: cast from 'void*' to 'int' loses precision
make[4]: *** [graphics.lo] Error 1
make[4]: Leaving directory `/asc-1.15.1.0/source/sdl'

With the attached patch 'asc' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/asc-1.15.1.0/source/ai/tactics.cpp ./source/ai/tactics.cpp
--- ../tmp-orig/asc-1.15.1.0/source/ai/tactics.cpp      2004-06-10 
11:21:50.000000000 +0200
+++ ./source/ai/tactics.cpp     2004-12-13 15:20:28.733394960 +0100
@@ -770,7 +770,7 @@
                            VehicleAttack va ( mapDisplay, NULL );
                            if ( finalOrder[i] < 0 )
                               warning("!!!");
-                           int iiii = (int) finalPositions[finalOrder[i]];
+                           long iiii = (long) finalPositions[finalOrder[i]];
                            if ( iiii < 20 )
                               warning("!!!");
 
diff -urN ../tmp-orig/asc-1.15.1.0/source/basegfx.cpp ./source/basegfx.cpp
--- ../tmp-orig/asc-1.15.1.0/source/basegfx.cpp 2004-09-26 21:49:12.000000000 
+0200
+++ ./source/basegfx.cpp        2004-12-13 15:34:16.181603712 +0100
@@ -387,7 +387,7 @@
                linecount++;
             }
          }
-         if ( (int)dest - (int)xlatbuffer > xlatbuffersize )
+         if ( (long)dest - (long)xlatbuffer > xlatbuffersize )
             throw fatalgraphicserror ( "halfpict : picture larger than buffer 
! " );
 
       }
@@ -486,7 +486,7 @@
       for ( int y = w[1] + 1; y > 0; y-- ) {
          for ( int x = w[0]+1; x > 0; x-- ) {
             if ( *c != 255 )
-               if ( ((int)(buf+y)) & 1 )
+               if ( ((long)(buf+y)) & 1 )
                   if ( *c >= 16  && *c < 24 )
                      *buf = *c + rotation;
                   else
@@ -1283,7 +1283,7 @@
    agmp->scanlinenumber  = y ;
    agmp->bytesperscanline  = x * depth/8;
    agmp->byteperpix   = depth/8    ;
-   agmp->linearaddress = (int) buf ;
+   agmp->linearaddress = (long) buf ;
    agmp->bitperpix          = depth;
    agmp->directscreenaccess = 1;
    if ( depth ==24 || depth==32 ) {
diff -urN ../tmp-orig/asc-1.15.1.0/source/basegfx.h ./source/basegfx.h
--- ../tmp-orig/asc-1.15.1.0/source/basegfx.h   2004-09-26 21:49:12.000000000 
+0200
+++ ./source/basegfx.h  2004-12-13 15:17:27.705915320 +0100
@@ -57,7 +57,7 @@
             int           activegraphmode  ;       //!< the number of the 
active graphic mode. Can be ignored nowadays
             int           videomemory      ;       //!< the amount of memory 
in the video card. Not used any more.
             int           byteperpix       ;       //!< the distance between 
two pixel
-            int           linearaddress    ;       //!< the pointer to the 
actual memory (typecast to char* )
+            long          linearaddress    ;       //!< the pointer to the 
actual memory (typecast to char* )
             int           pagetoset        ;       //!< only used in DOS with 
paged graphic memory
             char          redmasksize       ;      //!< RGB only: the number 
of bits in the red component
             char          redfieldposition  ;      //!< RGB only: the position 
of the first red bit relative to the start of the pixel
diff -urN ../tmp-orig/asc-1.15.1.0/source/dlg_box.cpp ./source/dlg_box.cpp
--- ../tmp-orig/asc-1.15.1.0/source/dlg_box.cpp 2004-09-13 18:59:22.000000000 
+0200
+++ ./source/dlg_box.cpp        2004-12-13 15:32:09.896801920 +0100
@@ -204,7 +204,7 @@
    npush ( *agmp );
    npush ( *hgmp );
 
-   hgmp->linearaddress = (int) virtualscreenbuf.buf;
+   hgmp->linearaddress = (long) virtualscreenbuf.buf;
    hgmp->windowstatus = 100;
 
    *agmp = *hgmp;
@@ -254,7 +254,7 @@
 
 void          tdialogbox::setvirtualframebuf ( void )
 {
-   agmp->linearaddress = (int) virtualscreenbuf.buf;
+   agmp->linearaddress = (long) virtualscreenbuf.buf;
    agmp->windowstatus = 100;
    agmp->scanlinelength = hgmp->scanlinelength;
 }
@@ -2747,7 +2747,7 @@
       pw++;
       *pw = tvt_firstlinebufheight;
       pw++;
-      tvt_firstlinebufparm.linearaddress = (int) pw;
+      tvt_firstlinebufparm.linearaddress = (long) pw;
    }
 
 
diff -urN ../tmp-orig/asc-1.15.1.0/source/mapdisplay.cpp ./source/mapdisplay.cpp
--- ../tmp-orig/asc-1.15.1.0/source/mapdisplay.cpp      2004-09-26 
21:49:12.000000000 +0200
+++ ./source/mapdisplay.cpp     2004-12-13 15:41:50.708505120 +0100
@@ -508,7 +508,7 @@
    vfb.parameters.scanlinenumber = dispmapdata.vfbheight;
    vfb.parameters.bytesperscanline = dispmapdata.vfbwidth;
    vfb.parameters.byteperpix = 1;
-   vfb.parameters.linearaddress = (int) vfb.address;
+   vfb.parameters.linearaddress = (long) vfb.address;
    vfb.parameters.directscreenaccess = 1;
 
 }
diff -urN ../tmp-orig/asc-1.15.1.0/source/sdl/graphics.cpp 
./source/sdl/graphics.cpp
--- ../tmp-orig/asc-1.15.1.0/source/sdl/graphics.cpp    2004-09-26 
21:49:45.000000000 +0200
+++ ./source/sdl/graphics.cpp   2004-12-13 15:16:23.277709896 +0100
@@ -84,7 +84,7 @@
   agmp->scanlinenumber = screen->h;
   agmp->bytesperscanline = screen->w * screen->format->BytesPerPixel;
   agmp->byteperpix = screen->format->BytesPerPixel ;
-  agmp->linearaddress = (int) screen->pixels;
+  agmp->linearaddress = (long) screen->pixels;
   agmp->bitperpix = screen->format->BitsPerPixel;
   agmp->directscreenaccess = 0;
 
diff -urN ../tmp-orig/asc-1.15.1.0/source/soundList.cpp ./source/soundList.cpp
--- ../tmp-orig/asc-1.15.1.0/source/soundList.cpp       2004-01-16 
16:43:52.000000000 +0100
+++ ./source/soundList.cpp      2004-12-13 15:48:01.042205840 +0100
@@ -42,7 +42,7 @@
 SoundLoopManager :: SoundLoopManager ( Sound* snd, bool _active )
                   : sound( snd ), active ( _active )
 {
-       displayLogMessage ( 10, " Instantiating SoundLoopManager: sound = %x, 
active = %d \n", int(snd), int(_active) );
+       displayLogMessage ( 10, " Instantiating SoundLoopManager: sound = %lx, 
active = %d \n", long(snd), int(_active) );
 }
 
 
diff -urN ../tmp-orig/asc-1.15.1.0/source/terraintype.cpp 
./source/terraintype.cpp
--- ../tmp-orig/asc-1.15.1.0/source/terraintype.cpp     2004-09-26 
21:49:12.000000000 +0200
+++ ./source/terraintype.cpp    2004-12-13 15:43:27.071855664 +0100
@@ -294,7 +294,7 @@
    stream.writeString( name );
    for (int i=0;i<cwettertypennum ;i++ ) {
      if ( weather[i] ) {
-        stream.writeInt ( int( weather[i]->pict ));
+        stream.writeInt ( long( weather[i]->pict ));
 
         for ( m = 1; m < 8; m++ )
            stream.writeInt ( 0 );

---------------------------------------
Received: (at 285482-close) by bugs.debian.org; 17 Jan 2005 14:35:52 +0000
>From [EMAIL PROTECTED] Mon Jan 17 06:35:52 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CqXyx-00043n-00; Mon, 17 Jan 2005 06:35:52 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1CqXvT-0002eX-00; Mon, 17 Jan 2005 09:32:15 -0500
From: Bartosz Fenski <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#285482: fixed in asc 1.15.2.1-3
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Mon, 17 Jan 2005 09:32:15 -0500
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: asc
Source-Version: 1.15.2.1-3

We believe that the bug you reported is fixed in the latest version of
asc, which is due to be installed in the Debian FTP archive:

asc-data_1.15.2.1-3_all.deb
  to pool/main/a/asc/asc-data_1.15.2.1-3_all.deb
asc_1.15.2.1-3.diff.gz
  to pool/main/a/asc/asc_1.15.2.1-3.diff.gz
asc_1.15.2.1-3.dsc
  to pool/main/a/asc/asc_1.15.2.1-3.dsc
asc_1.15.2.1-3_i386.deb
  to pool/main/a/asc/asc_1.15.2.1-3_i386.deb



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.
Bartosz Fenski <[EMAIL PROTECTED]> (supplier of updated asc 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: Fri, 14 Jan 2005 16:05:23 +0100
Source: asc
Binary: asc asc-data
Architecture: source i386 all
Version: 1.15.2.1-3
Distribution: unstable
Urgency: low
Maintainer: Bartosz Fenski <[EMAIL PROTECTED]>
Changed-By: Bartosz Fenski <[EMAIL PROTECTED]>
Description: 
 asc        - turn-based strategy game
 asc-data   - data files for the Advanced Strategic Command game
Closes: 285482
Changes: 
 asc (1.15.2.1-3) unstable; urgency=low
 .
   * Added patch to fix problems with building on amd64 using gcc-4.0.
     Thanks to Andreas Jochens for provided patch (Closes: #285482)
Files: 
 064a43686d0ccc882c154e98e143baeb 720 games optional asc_1.15.2.1-3.dsc
 4eb4ef3c209455453cbf56d0853c842b 4493 games optional asc_1.15.2.1-3.diff.gz
 d43fd017945853f25a3714dce5182c79 5513906 games optional 
asc-data_1.15.2.1-3_all.deb
 04882112f0822c8c33a02ab86535ddc1 2024938 games optional asc_1.15.2.1-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB5+W9hQui3hP+/EARAjksAJ9TQ/GZuaRQXEXLLMJV+U5Jiv+ADgCgyXse
PIif0Rd6X7wKfNgqO0Af+rc=
=cjLK
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to