[Pkg-octave-devel] Bug#357565: FTBFS with G++ 4.1: extra qualification

Martin Michlmayr tbm at cyrius.com
Sat Mar 18 06:21:52 UTC 2006


Package: octplot
Version: 0.3.5-1
Severity: important
Tags: patch

Your package fails to build with G++ 4.1.  I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.

A patch is below.


> Automatic build of octplot_0.3.5-1 on bigsur by sbuild/mips 1.94
...
> if g++ -DHAVE_CONFIG_H -I. -I. -I..     -I/usr/include/freetype2 -I/usr/include/freetype2 -g -Wall -O2 -fPIC -MT octplot-axes.o -MD -MP -MF ".deps/octplot-axes.Tpo" -c -o octplot-axes.o `test -f 'axes.cpp' || echo './'`axes.cpp; \
> 	then mv -f ".deps/octplot-axes.Tpo" ".deps/octplot-axes.Po"; else rm -f ".deps/octplot-axes.Tpo"; exit 1; fi
> axes.h:43: error: extra qualification 'Axes::' on member 'GetPixel'
> axes.cpp: In member function 'void Axes::DrawOneAxis(Axes::axis_name, Matrix&, double*, double*, double, bool, bool)':
> axes.cpp:329: warning: enumeration value 'z_axis' not handled in switch
> axes.cpp:354: warning: enumeration value 'z_axis' not handled in switch
> axes.cpp: In member function 'void Axes::AutoTicks()':
> axes.cpp:735: warning: unused variable 'zticklabelmode'
> axes.cpp:738: warning: unused variable 'zticklabel'
> make[3]: *** [octplot-axes.o] Error 1
> make[3]: Leaving directory `/build/tbm/octplot-0.3.5/src'


--- ./src/FTGL/FTTextureGlyph.h~	2006-03-18 06:15:19.000000000 +0000
+++ ./src/FTGL/FTTextureGlyph.h	2006-03-18 06:15:23.000000000 +0000
@@ -52,7 +52,7 @@
          * Reset the currently active texture to zero to get into a known state before
          * drawing a string. This is to get round possible threading issues.
          */
-        static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
+        static void ResetActiveTexture(){ activeTextureID = 0;}
         
     private:
         /**
--- ./src/axes.h~	2006-03-18 06:12:16.000000000 +0000
+++ ./src/axes.h	2006-03-18 06:12:21.000000000 +0000
@@ -40,7 +40,7 @@
 		 ocpl::Real& axis_x, ocpl::Real& axis_y);
 
   //! size of a screen pixel in axes coordinates
-  void Axes::GetPixel(ocpl::Real& dx, ocpl::Real& dy);
+  void GetPixel(ocpl::Real& dx, ocpl::Real& dy);
   //! Sets the x-y axes limits 
   void SetLimits(ocpl::Real x1,ocpl::Real y1,ocpl::Real x2,ocpl::Real y2);
   //! Sets up limits if they are automatic

-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Pkg-octave-devel mailing list