[Insight-developers] help with hdf5 module on 64-bit sun

Brad King brad.king at kitware.com
Tue Apr 26 08:59:18 EDT 2011


On 04/26/2011 04:22 AM, Gaëtan Lehmann wrote:
> Le 25 avr. 11 à 15:55, Brad King a écrit :
>> H5_SIZEOF_OFF64_T?
> 
> Here is what I found about off64_t in CMakeFiles/CMakeOutput.log
[snp]
> The check builds without problem and returns a 8 as size.
> I don't really know where to look - maybe the include order?

That is (indirectly) using CMake's check_type_size() macro which does

    if(HAVE_SYS_TYPES_H)
      set(headers "${headers}#include <sys/types.h>\n")
    endif()
    if(HAVE_STDINT_H)
      set(headers "${headers}#include <stdint.h>\n")
    endif()
    if(HAVE_STDDEF_H)
      set(headers "${headers}#include <stddef.h>\n")
    endif()

so that each of those headers is included in the check.  There is an
option to turn the includes off but HDF5 is not using it.  Do those
three HAVE_*_H values appear in the cache as ON?  What about
H5_HAVE_STDINT_H?

Try adding

 #include <stddef.h>

in the #ifdef H5_STDC_HEADERS block of H5private.h.

Thanks,
-Brad


More information about the Insight-developers mailing list