Your message dated Wed, 12 Oct 2005 11:17:13 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#264243: fixed in xarchon 0.50-9
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; 7 Aug 2004 19:19:39 +0000
>From [EMAIL PROTECTED] Sat Aug 07 12:19:39 2004
Return-path: <[EMAIL PROTECTED]>
Received: from c214127.adsl.hansenet.de (localhost) [213.39.214.127] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BtWjC-0001Qz-00; Sat, 07 Aug 2004 12:19:38 -0700
Received: from aj by localhost with local (Exim 4.34)
        id 1BtWj9-00021S-PZ; Sat, 07 Aug 2004 21:19:35 +0200
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: xarchon: FTBFS with gcc-3.4: expected `;' before "start"
Message-Id: <[EMAIL PROTECTED]>
Date: Sat, 07 Aug 2004 21:19:35 +0200
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: xarchon
Severity: normal
Tags: patch

When building 'xarchon' with gcc-3.4 I get the following error:

                 from Xarchon_Interface.hpp:6,
                 from Xarchon_Problem.cpp:2:
Genetic.hpp: In member function `virtual Genetic_Operator<T>* 
Genetic_Generation<T>::Choose_Operator()':
Genetic.hpp:219: error: expected `;' before "start"
Genetic.hpp:220: error: expected `;' before "end"
Genetic.hpp:221: error: expected `;' before "iter"
Genetic.hpp:224: error: `iter' undeclared (first use this function)
Genetic.hpp:224: error: `start' undeclared (first use this function)
Genetic.hpp:224: error: `end' undeclared (first use this function)
Genetic.hpp: In member function `virtual Genetic_Population<T>* 
Genetic_Generation_a<T>::Operate(Genetic_Population<T>*)':
Genetic.hpp:252: error: there are no arguments to `Choose_Operator' that depend 
on a template parameter, so a declaration of `Choose_Operator' must be available
Genetic.hpp:252: error: (if you use `-fpermissive', G++ will accept your code, 
but allowing the use of an undeclared name is deprecated)
Genetic.hpp:267: error: `fit_func' undeclared (first use this function)
make[3]: *** [Xarchon_Problem.o] Error 1
make[3]: Leaving directory `/xarchon-0.50/src'

With the attached patch 'xarchon' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xarchon-0.50/src/Genetic.hpp ./src/Genetic.hpp
--- ../tmp-orig/xarchon-0.50/src/Genetic.hpp    1999-10-09 19:00:56.000000000 
+0200
+++ ./src/Genetic.hpp   2004-08-07 21:12:10.019609252 +0200
@@ -216,9 +216,9 @@
   virtual Genetic_Operator<T> *Choose_Operator(void)
   {
     int max=(int)total_op_weight;
-    list<Genetic_Operator<T> *>::iterator start=operators.begin();
-    list<Genetic_Operator<T> *>::iterator end=operators.end();
-    list<Genetic_Operator<T> *>::iterator iter;
+    typename list<Genetic_Operator<T> *>::iterator start=operators.begin();
+    typename list<Genetic_Operator<T> *>::iterator end=operators.end();
+    typename list<Genetic_Operator<T> *>::iterator iter;
     int r=rand()%max;
     int count=0;
     for (iter=start;iter!=end;iter++) {
@@ -249,7 +249,7 @@
     Genetic_Population<T> *newpop=new Genetic_Population<T>(p->size);
     int cur_size=0;
     while (cur_size<newpop->size) {
-      Genetic_Operator<T> *op=Choose_Operator();
+      Genetic_Operator<T> *op=this->Choose_Operator();
       if ( (cur_size+op->NumOfResults())>newpop->size)
        continue;
       for (i=0;i<op->NumOfOperands();i++) {
@@ -264,7 +264,7 @@
        cur_size++;
       }
     }
-    newpop->Eval_Fitness(fit_func);
+    newpop->Eval_Fitness(this->fit_func);
     return newpop;
   }
 
diff -urN ../tmp-orig/xarchon-0.50/src/Problem.hpp ./src/Problem.hpp
--- ../tmp-orig/xarchon-0.50/src/Problem.hpp    1999-10-09 23:13:16.000000000 
+0200
+++ ./src/Problem.hpp   2004-08-07 21:11:03.191550971 +0200
@@ -306,14 +306,14 @@
   virtual G Goal_Value(T *a)
   {
     if (depth==0) 
-      return tester->Goal_Value(a);
+      return this->tester->Goal_Value(a);
     
-    Goal_Test<G,T> *endtester=tester;
-    tester=new Minimax_Goal_Test(depth-1,generator,other_acc,goal_acc,tester);
+    Goal_Test<G,T> *endtester=this->tester;
+    this->tester=new 
Minimax_Goal_Test(depth-1,this->generator,other_acc,this->goal_acc,this->tester);
     G ret_val=Successor_Goal_Test<G,T>::Goal_Value(a);
-    delete tester;
-    tester=endtester;
-    delete next;
+    delete this->tester;
+    this->tester=endtester;
+    delete this->next;
 
     return ret_val;
   }
@@ -333,26 +333,26 @@
                          Goal_Test<G,T> *t)
     : Successor_Goal_Test<G,T>(gen,mine,t)
   {
-    depth=d;
-    branch=b;
+    depth=this->d;
+    branch=this->b;
     other=o;
   }
   
   virtual G Goal_Value(T *a)
   {
-    Goal_Accumulator <G,T> *old=goal_acc;
+    Goal_Accumulator <G,T> *old=this->goal_acc;
     Multi_Goal_Accumulator <G,T,greater<G> > *mga=new 
Multi_Goal_Accumulator<G,T,greater<G> >(branch);
-    goal_acc=mga;
+    this->goal_acc=mga;
     Successor_Goal_Test<G,T>::Goal_Value(a);
-    goal_acc=old;
+    this->goal_acc=old;
     for (mga->Init();!mga->IsEnd();mga->Next()) { 
       T *state=mga->Get_State();
-      Multi_Minimax_Goal_Test *next=new 
Multi_Minimax_Goal_Test(d-1,b,gen,other,goal_acc,tester);
+      Multi_Minimax_Goal_Test *next=new 
Multi_Minimax_Goal_Test(this->d-1,this->b,this->gen,other,this->goal_acc,this->tester);
       next->Goal_Value(state);
-      goal_acc->Put(accumulator->value,acc->state,acc->op);
+      
this->goal_acc->Put(this->accumulator->value,this->acc->state,this->acc->op);
     }
-    goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result());
-    return goal_acc->Get_Value();
+    
this->goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result());
+    return this->goal_acc->Get_Value();
   }
 };
 

---------------------------------------
Received: (at 264243-close) by bugs.debian.org; 12 Oct 2005 18:18:43 +0000
>From [EMAIL PROTECTED] Wed Oct 12 11:18:43 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1EPlA9-0002m3-00; Wed, 12 Oct 2005 11:17:13 -0700
From: Daniel Burrows <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#264243: fixed in xarchon 0.50-9
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Wed, 12 Oct 2005 11:17:13 -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: 2

Source: xarchon
Source-Version: 0.50-9

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

xarchon-theme-default_0.50-9_all.deb
  to pool/main/x/xarchon/xarchon-theme-default_0.50-9_all.deb
xarchon_0.50-9.diff.gz
  to pool/main/x/xarchon/xarchon_0.50-9.diff.gz
xarchon_0.50-9.dsc
  to pool/main/x/xarchon/xarchon_0.50-9.dsc
xarchon_0.50-9_i386.deb
  to pool/main/x/xarchon/xarchon_0.50-9_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.
Daniel Burrows <[EMAIL PROTECTED]> (supplier of updated xarchon 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, 12 Oct 2005 10:10:28 -0700
Source: xarchon
Binary: xarchon-theme-default xarchon
Architecture: source i386 all
Version: 0.50-9
Distribution: unstable
Urgency: low
Maintainer: Daniel Burrows <[EMAIL PROTECTED]>
Changed-By: Daniel Burrows <[EMAIL PROTECTED]>
Description: 
 xarchon    - An X11 version of the game Archon
 xarchon-theme-default - The default theme for XArchon
Closes: 179406 264243 288660
Changes: 
 xarchon (0.50-9) unstable; urgency=low
 .
   * Apply patch from Andreas Jochens to compile with gcc >= 3.4.
     (Closes: #264243, #288660)
   * Split the creation of arch-dependent and arch-independent
     packages. (Closes: #179406)
   * Clean up the rules file (remove inapplicable dh_* calls).
   * Explicitly remove config.cache and config.status in clean, just in
     case.
Files: 
 d9e2b2b193e202447a774a12d03eebf8 735 games optional xarchon_0.50-9.dsc
 903d8e4a90d24ac006d654e5a224076a 4456 games optional xarchon_0.50-9.diff.gz
 096a0df5642b217d37a3723ca35aa108 145064 games optional 
xarchon-theme-default_0.50-9_all.deb
 34ba86172d8bebafb9226da8232eb1f0 123942 games optional xarchon_0.50-9_i386.deb

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

iD8DBQFDTU4Bch6xsM7kSXgRAoNQAKDZFE65HNdAyynempWyMJg0GhVD2ACg5r17
9JslBQBdFncFXuN82Hd8++Y=
=+Q/p
-----END PGP SIGNATURE-----


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

Reply via email to