[Paraview] Error while building, H5_SIZEOF_SIZE_T is undefined

Thomas Oliveira thomas.oliveira at gmail.com
Thu Dec 3 18:03:49 EST 2015


Dear all,

When building paraview, master branch, commit
d00c2cfed216bd07122f8b38c41329c40b510b50, I get the error:
/opt/paraview/VTK/ThirdParty/hdf5/vtkhdf5/src/H5public.h:166:5: error:
#error "nothing appropriate for ssize_t"

The context of it is:

#if H5_SIZEOF_SSIZE_T==0
/* Undefine this size, we will re-define it in one of the sections below */
#undef H5_SIZEOF_SSIZE_T
#if H5_SIZEOF_SIZE_T==H5_SIZEOF_INT
    #ifdef WIN32
        #undef ssize_t
    #endif
    typedef int ssize_t;
#       define H5_SIZEOF_SSIZE_T H5_SIZEOF_INT
#elif H5_SIZEOF_SIZE_T==H5_SIZEOF_LONG
typedef long ssize_t;
#       define H5_SIZEOF_SSIZE_T H5_SIZEOF_LONG
#elif H5_SIZEOF_SIZE_T==H5_SIZEOF_LONG_LONG
typedef long long ssize_t;
#       define H5_SIZEOF_SSIZE_T H5_SIZEOF_LONG_LONG
#else /* Can't find matching type for ssize_t */
#   error "nothing appropriate for ssize_t"
#endif
#endif


Checking the value of some variables with  #pragma message, I verified that
at the beginning of this part, not only *H5_SIZEOF_SSIZE_T is undefined*, *but
also* *H5_SIZEOF_SIZE_T is undefined.*

I wasn't able to diagnose the problem further than that. Would you have any
suggestion? Is there some configuration of CMake that I am doing wrong?

Thank you for your attention,

Thomas Oliveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151203/d5eb311f/attachment.html>


More information about the ParaView mailing list