[Insight-developers] help with hdf5 module on 64-bit sun
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Apr 26 04:22:45 EDT 2011
Le 25 avr. 11 à 15:55, Brad King a écrit :
> On 04/23/2011 01:32 PM, Gaëtan Lehmann wrote:
>> The compilation error is with gcc 32 bits.
>> _LARGEFILE64_SOURCE has to be defined to have off64_t defined.
>
> Yes, but the code that tries to use off64_t is guarded by a
> preprocessor
> test "H5_SIZEOF_OFF64_T==8". Somehow the test for off64_t's existence
> and size is inconsistent with the defines/includes present at the
> point
> the error occurs. Does CMakeFiles/CMake*.log mention
> H5_SIZEOF_OFF64_T?
Here is what I found about off64_t in CMakeFiles/CMakeOutput.log
Determining size of off64_t passed with the following output:
Change Dir: /home/papha/glehmann/src/ITK/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/sfw/bin/gmake "cmTryCompileExec/fast"
/usr/sfw/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/papha/glehmann/src/ITK/build/
CMakeFiles/CMakeTmp'
/local/bin/cmake -E cmake_progress_report /home/papha/glehmann/src/ITK/
build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/H5_SIZEOF_OFF64_T.c.o
/local/bin/gcc -Wall -Wno-uninitialized -Wno-unused-parameter -w
-o CMakeFiles/cmTryCompileExec.dir/H5_SIZEOF_OFF64_T.c.o -c /home/
papha/glehmann/src/ITK/build/
CMakeFiles/CheckTypeSize/H5_SIZEOF_OFF64_T.cLinking C executable
cmTryCompileExec
/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/
link.txt --verbose=1
/local/bin/gcc -Wall -Wno-uninitialized -Wno-unused-parameter -
w -L/lib CMakeFiles/cmTryCompileExec.dir/H5_SIZEOF_OFF64_T.c.o -o
cmTryCompileExec
gmake[1]: Leaving directory `/home/papha/glehmann/src/ITK/build/
CMakeFiles/CMakeTmp'
The check builds without problem and returns a 8 as size.
I don't really know where to look - maybe the include order?
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110426/e24c0dfd/attachment.pgp>
More information about the Insight-developers
mailing list