Your message dated Thu, 20 Jan 2005 04:47:15 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#289015: fixed in csmash 0.6.6-6
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; 6 Jan 2005 19:08:16 +0000
>From [EMAIL PROTECTED] Thu Jan 06 11:08:16 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c158183.adsl.hansenet.de (localhost.localdomain) 
[213.39.158.183] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CmczY-000839-00; Thu, 06 Jan 2005 11:08:16 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
        id 1Cmd5F-0004Iv-2i; Thu, 06 Jan 2005 20:14:09 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: csmash: FTBFS (amd64/gcc-4.0): 'swap' was not declared in this scope
Message-Id: <[EMAIL PROTECTED]>
Date: Thu, 06 Jan 2005 20:14:09 +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: csmash
Severity: normal
Tags: patch

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

matrix: In member function '_float_t Matrix<matrix_size, _float_t>::inverse() 
[with int matrix_size = 4, _float_t = Float]':
matrix:155:   instantiated from 'Matrix<matrix_size, _float_t> 
Matrix<matrix_size, _float_t>::operator~() const [with int matrix_size = 4, 
_float_t = Float]'
parts.cpp:1227:   instantiated from here
matrix:177: error: 'swap' was not declared in this scope
make[3]: *** [parts.o] Error 1
make[3]: Leaving directory `/csmash-0.6.6'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/csmash-0.6.6/matrix ./matrix
--- ../tmp-orig/csmash-0.6.6/matrix     2002-03-06 17:46:01.000000000 +0100
+++ ./matrix    2005-01-06 19:43:32.037852232 +0100
@@ -42,15 +42,6 @@
 
 /* __BEGIN__BEGIN__ */
 //__NAMESPACE_BEGIN(ese);
-#if (!defined __GNUG__) || (__GNUC__ == 3)
-template<typename T>
-void swap(T& a, T& b)
-{
-    T c = a;
-    a = b;
-    b = c;
-}
-#endif
 
 // matrix_size MUST BE larger than 1
 template<int matrix_size, typename _float_t = float>
@@ -174,9 +165,10 @@
                    mx = x;
                }
            }
-           swap(pivot[k], pivot[piv]);
 
            int kk = pivot[k];
+            pivot[k] = pivot[piv];
+            pivot[piv] = kk;
            float_t t = m[kk][kk];
            if (0 == t) {
                return 0;
@@ -222,9 +214,10 @@
                    mx = x;
                }
            }
-           swap(pivot[k], pivot[piv]);
 
            int kk = pivot[kk];
+           pivot[k] = pivot[piv];
+           pivot[piv] = kk;
            double t = a[kk][kk];
            if (0 == t) {
                return 0;
@@ -283,7 +276,8 @@
            }
            ik = ip[j];
            if (j != k) {
-               swap(ip[j], ip[k]);
+               ip[j] = ip[k];
+               ip[k] = ik;
                det = -det;
            }
            u = a[ik][k];

---------------------------------------
Received: (at 289015-close) by bugs.debian.org; 20 Jan 2005 09:53:04 +0000
>From [EMAIL PROTECTED] Thu Jan 20 01:53:04 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 1CrYzw-0002Yz-00; Thu, 20 Jan 2005 01:53:04 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1CrYuJ-0005ff-00; Thu, 20 Jan 2005 04:47:15 -0500
From: Bartosz Fenski <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#289015: fixed in csmash 0.6.6-6
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Thu, 20 Jan 2005 04:47: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: csmash
Source-Version: 0.6.6-6

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

csmash-data_0.6.6-6_all.deb
  to pool/main/c/csmash/csmash-data_0.6.6-6_all.deb
csmash_0.6.6-6.diff.gz
  to pool/main/c/csmash/csmash_0.6.6-6.diff.gz
csmash_0.6.6-6.dsc
  to pool/main/c/csmash/csmash_0.6.6-6.dsc
csmash_0.6.6-6_i386.deb
  to pool/main/c/csmash/csmash_0.6.6-6_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 csmash 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: Thu, 20 Jan 2005 10:21:12 +0100
Source: csmash
Binary: csmash-data csmash
Architecture: source i386 all
Version: 0.6.6-6
Distribution: unstable
Urgency: low
Maintainer: Bartosz Fenski <[EMAIL PROTECTED]>
Changed-By: Bartosz Fenski <[EMAIL PROTECTED]>
Description: 
 csmash     - CannonSmash, a table tennis simulation game
 csmash-data - data files for the CannonSmash game
Closes: 289015 291209
Changes: 
 csmash (0.6.6-6) unstable; urgency=low
 .
   * Rebuilding with uninstalled nvidia-glx (Closes: #291209)
     Now using Build-Conflicts with it to avoid such situations in the future.
   * Added patch to fix problems with building on amd64 using gcc-4.0.
     Thanks to Andreas Jochens for provided patch (Closes: #289015)
Files: 
 cd1fb05357d0ca5ef3f23e0ff8f21ec8 841 games optional csmash_0.6.6-6.dsc
 ee1917e3ff6737bf67110173af224681 7129 games optional csmash_0.6.6-6.diff.gz
 da80ff1c0effd9d38358aebb2f7e70cf 1650860 games optional 
csmash-data_0.6.6-6_all.deb
 59c1754d49b9e958922fc2207158b324 201200 games optional csmash_0.6.6-6_i386.deb

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

iD8DBQFB73dqhQui3hP+/EARAryfAJ4uAEq3utP12v4eHF/0hWo5cudJCACfcXLR
ZjvPA2HKaU3Mh2LKvf09i6A=
=IM7o
-----END PGP SIGNATURE-----


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

Reply via email to