[vtk-7.1.0] vtkPointLocator: conflict with asm-generic/param.h
Hi, I have a compile error on a scientific code that depends on Petsc, which include sys/param.h. That leads to include asm-generic/param.h which defines HZ constant. It conflicts with the HZ defined in /usr/include/vtk-7.1/vtkPointLocator.h
Precisely, I use the following gentoo vk:
sci-libs/vtk-7.1.0::gentoo USE="X ffmpeg mpi tbb theora -R -all-modules (-aqua) -boost -doc (-examples) -gdal -imaging -java -json -kaapi -mysql -odbc -offscreen -postgres -python -qt5 -rendering -tcl {-test} -tk -views -web -xdmf2" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-nvidia"
[ 97%] Building CXX object src/applications/CMakeFiles/convergenceStudy.dir/convergenceStudy/ConvergenceStudyProblem.cpp.o
In file included from /usr/include/asm/param.h:1:0,
from /usr/include/linux/param.h:4,
from /usr/include/bits/param.h:28,
from /usr/include/sys/param.h:31,
from /usr/include/petsc/petscsys.h:2480,
from /usr/include/petsc/petscbag.h:4,
from /usr/include/petsc/petsc.h:5,
from /home/yves/src/ceps/src/common/CepsTools.hpp:20,
from /home/yves/src/ceps/src/geometry/Node.hpp:4,
from /home/yves/src/ceps/src/geometry/AbstractElement.hpp:9,
from /home/yves/src/ceps/src/geometry/Simplex.hpp:4,
from /home/yves/src/ceps/src/geometry/Mesh.hpp:6,
from /home/yves/src/ceps/src/geometry/Geometry.hpp:8,
from /home/yves/src/ceps/src/pde/problem/AbstractPdeProblem.hpp:4,
from /home/yves/src/ceps/src/cardiac/problem/CardiacProblem.hpp:4,
from /home/yves/src/ceps/src/cardiac/problem/monodomain/MonodomainProblem.hpp:4,
from /home/yves/src/ceps/src/applications/convergenceStudy/ConvergenceStudyProblem.hpp: ,
from /home/yves/src/ceps/src/applications/convergenceStudy/ConvergenceStudyProblem.cpp: :
/usr/include/vtk-7.1/vtkPointLocator.h:275:18: erreur: expected unqualified-id before numeric constant
double HX, HY, HZ;
^
Cheers