Wednesday, May 13, 2009

Failed to build HDF4 with SZlib.

szip 2.1
hdf 4.2r4

OS: RHEL5_x64/PCSol10_x64

To compile szlib 2.1:
./configure --prefix=/usr/local/szlib CC=icc F77=ifort CXX=icpc
make
make install

To compile HDF4.2r4:
./configure --prefix=/usr/local/hdf4 --with-szlib=/usr/local/szlib CC=icc CXX=icpc F77=ifort

The error message is:
checking szlib.h usability... yes
checking szlib.h presence... yes
checking for szlib.h... yes
checking for SZ_BufftoBuffCompress in -lsz... yes
checking for szlib encoder... checking for xdr library support... yes
checking for ANSI C header files... (cached) yes
checking whether cc understands -c and -o together... yes
checking how to run the C++ preprocessor... CC -E
checking whether f77 understands -c and -o together... yes
checking for int*... yes
checking size of int*... configure: error: cannot compute sizeof (int*)
See `config.log' for more details.


I cannot figure out what happened.