[Pkg-scicomp-devel] Bug#504845: FTBFS with GCC 4.4: missing #include

James Westby jw+debian at jameswestby.net
Thu Oct 8 14:50:02 UTC 2009


Hi,
We have the same issue on Ubuntu as 4.4 is default now. The patch
fixes that error, but it is not enough there.

make[3]: Entering directory `/tmp/buildd/freefem3d-1.0pre10/language'
g++ -DHAVE_CONFIG_H -I. -I..   -I.. -I../solver -I../algebra -I../geometry -I../utils -I../language -I../graphics  -Wall -DNDEBUG -O2 -funroll-all-loops -fargument-noalias-global -fno-gcse -c -o Instruction.o Instruction.cpp
In file included from Instruction.cpp:32:
./FunctionExpressionFEM.hpp:59:2: warning: #warning SHOULD NOT USE THIS FUNCTION
In file included from ../solver/FEMFunction.hpp:23,
                 from Instruction.cpp:48:
../solver/FiniteElementTraits.hpp:57: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:74: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:91: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:108: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:125: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:142: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:159: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:176: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:193: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:210: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:228: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:246: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:263: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:280: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
../solver/FiniteElementTraits.hpp:298: error: declaration of 'DiscretizationType'
../solver/DiscretizationType.hpp:35: error: changes meaning of 'DiscretizationType' from 'class DiscretizationType'
make[3]: *** [Instruction.o] Error 1
make[3]: Leaving directory `/tmp/buildd/freefem3d-1.0pre10/language'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/buildd/freefem3d-1.0pre10/language'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/freefem3d-1.0pre10'
make: *** [all] Error 2

it is the enums like

  enum {
    DiscretizationType = DiscretizationType::lagrangianFEM0
  };

that are causing this. I'm not sure what the fix would be.

Thanks,

James






More information about the Pkg-scicomp-devel mailing list