block 667264 by 673622
tag 667264 patch
thanks

Some of the errors are caused by includes from libgivaro-dev (Bug#673622).
Here's a patch for the problems in linbox itself.

Cheers,

Matej
--- linbox-1.1.6~rc0~/debian/patches/gcc-4.7-fixes.patch
+++ linbox-1.1.6~rc0/debian/patches/gcc-4.7-fixes.patch
@@ -0,0 +1,51 @@
+Description: Fix build failure with GCC 4.7
+Bug-Debian: http://bugs.debian.org/667264
+Author: Matej Vela <v...@debian.org>
+Last-Update: 2012-05-20
+
+--- linbox-1.1.6~rc0~/linbox/algorithms/blackbox-container-symmetric.h
++++ linbox-1.1.6~rc0/linbox/algorithms/blackbox-container-symmetric.h
+@@ -44,10 +44,10 @@
+       template<class Vector>
+       BlackboxContainerSymmetric (const Blackbox *D, const Field &F, const 
Vector &u0)
+               : BlackboxContainerBase<Field, _Blackbox> (D, F)
+-              { init (u0, u0); }
++              { this->init (u0, u0); }
+       BlackboxContainerSymmetric (const Blackbox *D, const Field &F, RandIter 
&g)
+               : BlackboxContainerBase<Field, _Blackbox> (D, F)
+-              { init (g); }
++              { this->init (g); }
+ 
+     protected:
+ 
+--- linbox-1.1.6~rc0~/linbox/algorithms/blackbox-container.h
++++ linbox-1.1.6~rc0/linbox/algorithms/blackbox-container.h
+@@ -34,7 +34,7 @@
+       BlackboxContainer(const Blackbox * D, const Field &F, const Vector &u0) 
+               : BlackboxContainerBase<Field, Blackbox> (D, F)
+       {
+-              init (u0, u0); w = this->u;
++              this->init (u0, u0); w = this->u;
+ #ifdef INCLUDE_TIMING
+               _applyTime = _dotTime = 0.0;
+ #endif
+@@ -65,7 +65,7 @@
+       BlackboxContainer(const Blackbox * D, const Field &F, RandIter &g) 
+               : BlackboxContainerBase<Field, Blackbox> (D, F)
+       {
+-              init (g); w = this->u;
++              this->init (g); w = this->u;
+ #ifdef INCLUDE_TIMING
+               _applyTime = _dotTime = 0.0;
+ #endif
+--- linbox-1.1.6~rc0~/linbox/matrix/matrix-domain.h
++++ linbox-1.1.6~rc0/linbox/matrix/matrix-domain.h
+@@ -818,7 +818,7 @@
+       Vector1 &mulColSpecialized (Vector1 &w, const Matrix &A, const Vector2 
&v,
+                                   VectorCategories::DenseVectorTag,
+                                   VectorCategories::DenseVectorTag) const
+-      { return mulColDense (_VD, w, A, v); } 
++      { return this->mulColDense (_VD, w, A, v); } 
+       template <class Vector1, class Matrix, class Vector2>
+       Vector1 &mulColSpecialized (Vector1 &w, const Matrix &A, const Vector2 
&v,
+                                   VectorCategories::DenseVectorTag,
--- linbox-1.1.6~rc0~/debian/patches/series
+++ linbox-1.1.6~rc0/debian/patches/series
@@ -999,0 +999,1 @@
+gcc-4.7-fixes.patch

Reply via email to