[vtkusers] compilation error of release v5.8.0

David Gobbi david.gobbi at gmail.com
Tue Nov 12 00:45:28 EST 2013


Hi Kishore,

I think your ubuntu machine is missing some important packages.
Please try running the following commands:

sudo apt-get install build-essential

You might also have to use apt-get to install your kernel headers.

In summary: you are seeing this error because your computer is missing
some important system header files.

  David



On Mon, Nov 11, 2013 at 10:24 PM, Kishore Mosaliganti
<kishoreraom at gmail.com> wrote:
> Hello,
>
> I am using Ubuntu 13.10 64-bit with gcc version 4.8.1. When I tried to
> compile v5.8.0, I obtained the following error:
>
> $ make
> [  1%] Built target vtksys
> [  2%] Built target vtkzlib
> [  2%] Built target H5detect
> [  2%] Built target H5make_libsettings
> [  2%] Building C object
> Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o
> /home/krm15/GITROOT/VTKRel/VTK/Utilities/vtkhdf5/src/H5F.c: In function
> ‘H5F_build_actual_name’:
> /home/krm15/GITROOT/VTKRel/VTK/Utilities/vtkhdf5/src/H5F.c:2223:12: error:
> ‘S_IFLNK’ undeclared (first use in this function)
>          if(S_IFLNK == (lst.st_mode & S_IFMT)) {
>             ^
> /home/krm15/GITROOT/VTKRel/VTK/Utilities/vtkhdf5/src/H5F.c:2223:12: note:
> each undeclared identifier is reported only once for each function it
> appears in
> /home/krm15/GITROOT/VTKRel/VTK/Utilities/vtkhdf5/src/H5F.c:2223:38: error:
> ‘S_IFMT’ undeclared (first use in this function)
>          if(S_IFLNK == (lst.st_mode & S_IFMT)) {
>                                       ^
> /home/krm15/GITROOT/VTKRel/VTK/Utilities/vtkhdf5/src/H5F.c:2228:27: error:
> ‘PATH_MAX’ undeclared (first use in this function)
>              char realname[PATH_MAX];    /* Fully resolved path name of file
> */
>                            ^
> make[2]: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o] Error 1
> make[1]: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2
> make: *** [all] Error 2
>
> I found this old bug report on this issue:
> http://vtk.org/Bug/view.php?id=12568
>
> I was wondering if this bug fix can be applied to the VTK5 release.
>
> Thank you,
>
> Kishore


More information about the vtkusers mailing list