[Debian-med-packaging] Bug#413477: FTBFS with GCC 4.3: 'LONG_MAX'
was not declared in this scope
Martin Michlmayr
tbm at cyrius.com
Mon Mar 5 12:38:15 CET 2007
Package: amap-align
Version: 2.0-1
Usertags: ftbfs-gcc-4.3
Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. A patch for this problem is
below.
> Automatic build of amap-align_2.0-1 on em64t by sbuild/amd64 0.53
...
> make[1]: Entering directory `/build/tbm/amap-align-2.0'
> g++ -O3 -W -Wall -pedantic -DNDEBUG -DNumInsertStates=1 -DVERSION='"AMAP.2.0"' -funroll-loops -lm -o amap Amap.cc
> In file included from Amap.cc:12:
> ProbabilisticModel.h: In member function 'void ProbabilisticModel::ComputeNewParameters(Sequence*, Sequence*, const VF&, const VF&, VF&, VF&, VF&, VVF&, VF&, bool) const':
> ProbabilisticModel.h:504: warning: suggest parentheses around && within ||
> Amap.cc: In function 'bool GetInteger(char*, int*)':
> Amap.cc:586: error: 'LONG_MAX' was not declared in this scope
> Amap.cc:586: error: 'LONG_MIN' was not declared in this scope
> Amap.cc:587: error: 'INT_MIN' was not declared in this scope
> Amap.cc:587: error: 'INT_MAX' was not declared in this scope
> make[1]: *** [amap] Error 1
> make[1]: Leaving directory `/build/tbm/amap-align-2.0'
--- Amap.cc~ 2007-03-05 11:29:54.000000000 +0000
+++ Amap.cc 2007-03-05 11:30:58.000000000 +0000
@@ -12,6 +12,7 @@
#include "ProbabilisticModel.h"
#include "EvolutionaryTree.h"
#include "SparseMatrix.h"
+#include <climits>
#include <string>
#include <sstream>
#include <iomanip>
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Debian-med-packaging
mailing list