I am currently working on installing NETCDF Version 3.6.3, which requires HDF5 version 1.6.5. I have installing zlib version 1.2.2.3 without any problems and its present in my /usr directory. I am currently running GCC version 7.5.0 and Gfortran version 7.5.0.
I am using the following commands to installing HDF5-1.6.5:
tar -xf hdf5-1.6.5.tar.gz
cd hdf5-1.6.5
./configure --with-zlib=/usr --prefix=/usr
make
make check
make install
I get the following errors when running make:
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,
from /usr/include/stdio.h:27,
from zip_perf.c:23:
/usr/include/features.h:184:3: warning: #warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE” [-Wcpp]
#warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE”
^~~~~~~
In file included from /usr/include/fcntl.h:290:0,
from zip_perf.c:28:
In function ‘open’,
inlined from ‘do_write_test’ at zip_perf.c:548:18,
inlined from ‘main’ at zip_perf.c:649:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
__open_missing_mode ();
^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [zip_perf.lo] Error 1
make[1]: *** [tests] Error 1
make: *** [all] Error 2
Unfortunately, I cannot attach the entire output from the make command because I am a new user.
Any idea what I am getting these errors?
Thanks in advance.