Bug#320268: FTBFS: Missing class declaration
Hi Tim, I've prepared an NMU for this RC build failure. Please find the patch attached. I've uploaded the NMU to the 3-day DELAYED queue on gluck. Thanks, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ diff -Nru /var/tmp/pyg2BgrdBr/bzflag-2.0.2.20050318/debian/changelog /var/tmp/mgvkiRRUIh/bzflag-2.0.2.20050318/debian/changelog --- /var/tmp/pyg2BgrdBr/bzflag-2.0.2.20050318/debian/changelog 2005-03-18 01:21:32.0 -0800 +++ /var/tmp/mgvkiRRUIh/bzflag-2.0.2.20050318/debian/changelog 2005-08-13 06:22:54.0 -0700 @@ -1,3 +1,13 @@ +bzflag (2.0.2.20050318-0.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Forward-declare class SortedGState for compatibility with g++-4.0's +increased strictness; thanks to Matt Kraai for the patch +(closes: #320268). + + -- Steve Langasek [EMAIL PROTECTED] Sat, 13 Aug 2005 01:08:56 -0700 + bzflag (2.0.2.20050318) unstable; urgency=medium * upstream release - many big fixes - see ChangeLog diff -Nru /var/tmp/pyg2BgrdBr/bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx /var/tmp/mgvkiRRUIh/bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx --- /var/tmp/pyg2BgrdBr/bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx 2005-01-17 21:18:32.0 -0800 +++ /var/tmp/mgvkiRRUIh/bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx 2005-08-13 06:22:54.0 -0700 @@ -132,6 +132,8 @@ // OpenGLGStateRep // +class SortedGState; + class OpenGLGStateRep { public: OpenGLGStateRep(); signature.asc Description: Digital signature
Bug#320268: FTBFS: Missing class declaration
Package: bzflag Version: 2.0.2.20050318 Severity: serious Tags: patch bzflag fails to build: if g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -Wall -W -mcpu=i486 -g -O2 -DBZ_BUILD_DATE=20050721 -ffast-math -fno-exceptions -fsigned-char -MT OpenGLGState.o -MD -MP -MF .deps/OpenGLGState.Tpo \ -c -o OpenGLGState.o `test -f 'OpenGLGState.cxx' || echo './'`OpenGLGState.cxx; \ then mv -f .deps/OpenGLGState.Tpo .deps/OpenGLGState.Po; \ else rm -f .deps/OpenGLGState.Tpo; exit 1; \ fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. OpenGLGState.cxx:165: error: ISO C++ forbids declaration of 'SortedGState' with no type OpenGLGState.cxx:165: error: expected ';' before '*' token OpenGLGState.cxx: In static member function 'static void SortedGState::remove(OpenGLGStateRep*)': OpenGLGState.cxx:809: error: 'class OpenGLGStateRep' has no member named 'bucket' OpenGLGState.cxx: In member function 'void SortedGState::doAdd(OpenGLGStateRep*)': OpenGLGState.cxx:818: error: 'class OpenGLGStateRep' has no member named 'bucket' OpenGLGState.cxx: In member function 'void SortedGState::doRemove(OpenGLGStateRep*)': OpenGLGState.cxx:830: error: 'class OpenGLGStateRep' has no member named 'bucket' OpenGLGState.cxx: In member function 'void OpenGLGStateRep::addRenderNode(RenderNode*, const OpenGLGState*)': OpenGLGState.cxx:888: error: 'bucket' was not declared in this scope The attached patch forward-declares SortedGState, which fixes this problem. -- Matt diff -ru bzflag-2.0.2.20050318-orig/src/ogl/OpenGLGState.cxx bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx --- bzflag-2.0.2.20050318-orig/src/ogl/OpenGLGState.cxx 2005-01-17 21:18:32.0 -0800 +++ bzflag-2.0.2.20050318/src/ogl/OpenGLGState.cxx 2005-07-27 08:14:02.0 -0700 @@ -132,6 +132,8 @@ // OpenGLGStateRep // +class SortedGState; + class OpenGLGStateRep { public: OpenGLGStateRep(); signature.asc Description: Digital signature