Package: gambit
Version: 0.97.0.7-1
Severity: serious
Tags: patch

gambit fails to build because it is missing forward declarations:

> if i486-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" 
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" 
> -DPACKAGE=\"gambit\" -DVERSION=\"0.97.0.7\" -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void  -I. -I.  -I../../sources   
> -DNEWSTYLE_TEMPLATES -g -O2 -I/usr/lib/wx/include/gtk-2.4 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -MT 
> nfdom.o -MD -MP -MF ".deps/nfdom.Tpo" -c -o nfdom.o nfdom.cc; \
> then mv -f ".deps/nfdom.Tpo" ".deps/nfdom.Po"; else rm -f ".deps/nfdom.Tpo"; 
> exit 1; fi
> ../../sources/math/integer.h:150: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/integer.h:150: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/integer.h:151: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/integer.h:151: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/rational.h:89: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/rational.h:89: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/rational.h:90: warning: minimum/maximum operators are 
> deprecated
> ../../sources/math/rational.h:90: warning: minimum/maximum operators are 
> deprecated
> nfplayer.h:38: error: ISO C++ forbids declaration of 'Nfg' with no type
> nfplayer.h:38: error: expected ';' before '*' token
> nfplayer.h:43: error: 'Nfg' has not been declared
> nfplayer.h:46: error: ISO C++ forbids declaration of 'Nfg' with no type
> nfplayer.h:46: error: expected ';' before '&' token

The attached patch adds forward declarations on Nfg and Sfg, which
fixes this problem.

-- 
Matt
only in patch2:
unchanged:
--- gambit-0.97.0.7.orig/sources/game/nfplayer.h
+++ gambit-0.97.0.7/sources/game/nfplayer.h
@@ -27,6 +27,7 @@
 #ifndef NFPLAYER_H
 #define NFPLAYER_H
 
+class Nfg;
 class Strategy;
 
 class NFPlayer {
only in patch2:
unchanged:
--- gambit-0.97.0.7.orig/sources/game/sfstrat.h
+++ gambit-0.97.0.7/sources/game/sfstrat.h
@@ -95,6 +95,8 @@
 };
 
 
+class Sfg;
+
 class SFSupport {
 protected:
   const Sfg *bsfg;

Attachment: signature.asc
Description: Digital signature

Reply via email to