During hdf5 installation, I am experiencing 3 warnings and 1 error. Please check the error report below.
[manmeet@localhost hdf5-1.8.21]$ make
Making all in src
make[1]: Entering directory ‘/home/manmeet/softwares/hdf5-1.8.21/src’
make all-am
make[2]: Entering directory ‘/home/manmeet/softwares/hdf5-1.8.21/src’
CC H5Aint.lo
H5Aint.c:200:45: warning: passing ‘const H5T_t *’ (aka ‘const struct H5T_t *’) to parameter of type ‘H5T_t *’ (aka ‘struct H5T_t *’) discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
200 | if(NULL == (attr->shared->dt = H5T_copy(type, H5T_COPY_ALL)))
| ^~~~
./H5Tprivate.h:107:31: note: passing argument to parameter ‘old_dt’ here
107 | H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
| ^
H5Aint.c:532:62: warning: passing ‘const H5T_t *’ (aka ‘const struct H5T_t *’) to parameter of type ‘H5T_t *’ (aka ‘struct H5T_t *’) discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
532 | if((src_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0 ||
| ^~~~~~~~
./H5Tprivate.h:107:31: note: passing argument to parameter ‘old_dt’ here
107 | H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
| ^
H5Aint.c:649:71: warning: passing ‘const H5T_t *’ (aka ‘const struct H5T_t *’) to parameter of type ‘H5T_t *’ (aka ‘struct H5T_t *’) discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
649 | (dst_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0)
| ^~~~~~~~
./H5Tprivate.h:107:31: note: passing argument to parameter ‘old_dt’ here
107 | H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
| ^
H5Aint.c:2102:21: error: incompatible integer to pointer conversion assigning to ‘H5A_t *’ (aka ‘struct H5A_t *’) from ‘int’ [-Wint-conversion]
2102 | HGOTO_ERROR(H5E_ATTR, H5E_CANTALLOC, FAIL, “memory allocation failed”)
| ^ ~~~~
./H5Eprivate.h:67:4: note: expanded from macro ‘HGOTO_ERROR’
67 | HGOTO_DONE(ret_val)
| ^ ~~~~~~~
./H5Eprivate.h:76:40: note: expanded from macro ‘HGOTO_DONE’
76 | #define HGOTO_DONE(ret_val) {ret_value = ret_val; goto done;}
| ^ ~~~~~~~
3 warnings and 1 error generated.
make[2]: *** [Makefile:1242: H5Aint.lo] Error 1
make[2]: Leaving directory ‘/home/manmeet/softwares/hdf5-1.8.21/src’
make[1]: *** [Makefile:871: all] Error 2
make[1]: Leaving directory ‘/home/manmeet/softwares/hdf5-1.8.21/src’
make: *** [Makefile:586: all-recursive] Error 1