I looked at the output at the link you sent. It appears that your C compiler is a C++ compiler…??
I see that you set CC to gcc:
$ export CC=gcc
However, then I see this in the SUMMARY OF THE HDF5 CONFIGURATION:
C Compiler: /usr/bin/g++
There are also many warnings that indicate that options are “valid for C/ObjC but not for C++”, and then it fails with an issue with the H5Cpp.h C++ include file.
Do you have access to or can you find a C compiler?
Can you build as follows?
Set the CC and CXX environment variables, by specifying the path to the compiler and compiler (once you have found a C compiler):
setenv CC /path-to-compiler/Ccompiler
setenv CXX /path-to-compiler/C++compiler
In the HDF5 source code directory run:
./configure --enable-cxx >& configure.output
make >& make.output
make check >& check.output
If this is successful, then the built HDF5 binaries will be found in the hdf5/ directory in the top HDF5 source code directory.
If it is not successful, please send the output files (above) and the config.log file to the HDF Helpdesk: