Package: realtimebattle
Version: 1.0.7-5
Severity: normal
Tags: patch

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

make[3]: Leaving directory `/realtimebattle-1.0.7/po'
Making all in src
make[3]: Entering directory `/realtimebattle-1.0.7/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DXTHREADS -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I../include  -DNDEBUG  -O2  -MT 
realtimebattle-RealTimeBattle.o -MD -MP -MF 
".deps/realtimebattle-RealTimeBattle.Tpo" -c -o realtimebattle-RealTimeBattle.o 
`test -f 'RealTimeBattle.cc' || echo './'`RealTimeBattle.cc; \
then mv -f ".deps/realtimebattle-RealTimeBattle.Tpo" 
".deps/realtimebattle-RealTimeBattle.Po"; else rm -f 
".deps/realtimebattle-RealTimeBattle.Tpo"; exit 1; fi
../include/List.h:46: error: explicit specialization of 'const ListIterator<T>& 
ListIterator<T>::operator++(int)' must be introduced by 'template <>'
../include/List.h:47: error: explicit specialization of 'const ListIterator<T>& 
ListIterator<T>::operator--(int)' must be introduced by 'template <>'
../include/List.h:59: error: explicit specialization of 'List<T>::List(bool)' 
must be introduced by 'template <>'
../include/List.h:59: error: default argument specified in explicit 
specialization
../include/List.h:105: error: no 'const ListIterator<T>& 
ListIterator<T>::operator++(int)' member function declared in class 
'ListIterator<T>'
../include/List.h:105: error: template definition of non-template 'const 
ListIterator<T>& ListIterator<T>::operator++(int)'
../include/List.h:114: error: no 'const ListIterator<T>& 
ListIterator<T>::operator--(int)' member function declared in class 
'ListIterator<T>'
../include/List.h:114: error: template definition of non-template 'const 
ListIterator<T>& ListIterator<T>::operator--(int)'
make[3]: *** [realtimebattle-RealTimeBattle.o] Error 1
make[3]: Leaving directory `/realtimebattle-1.0.7/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/realtimebattle-1.0.7/include/List.h ./include/List.h
--- ../tmp-orig/realtimebattle-1.0.7/include/List.h     2003-09-17 
19:30:20.000000000 +0200
+++ ./include/List.h    2005-04-01 15:24:22.054721848 +0200
@@ -44,8 +44,8 @@
 
   ListIterator(ListNode<T>* p = NULL) : listp(p) {} 
   
-  inline const ListIterator<T>& ListIterator<T>::operator++ (int);
-  inline const ListIterator<T>& ListIterator<T>::operator-- (int);
+  inline const ListIterator& operator++ (int);
+  inline const ListIterator& operator-- (int);
   inline T* operator() () const;
   //  bool operator! () const { return listp == NULL; }
   inline bool ok() const { return listp != NULL;}
@@ -57,7 +57,7 @@
 class List
 { 
 public:
-  List<T>::List(const bool resp=true);
+  List(const bool resp=true);
   ~List ();
 
   const List& operator= (const List&);


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

Reply via email to