Build error with vtk 5.8.0 on archlinux
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Hi, I have the following build error on archlinux:
[ 0%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o /build/src/VTK/Utilities/vtkhdf5/src/H5F.c: In function 'H5F_build_actual_name': /build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:12: error: 'S_IFLNK' undeclared (first use in this function) /build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:12: note: each undeclared identifier is reported only once for each function it appears in /build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:38: error: 'S_IFMT' undeclared (first use in this function) /build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2229:27: error: 'PATH_MAX' undeclared (first use in this function)
I tried to fix this by doing:
sed -i '31 i#include <sys/stat.h>' Utilities/vtkhdf5/src/H5F.c
but it resulted in the same error, I don't know how else this could be remedied.
I suspect this error is because archlinux is using the stricter gcc 4.6.1 I have attached the full build log as "vtk5.8.0buildlog". If you need more info, please let me know. Thanks in advance for any help!