First I tried with binaries from the site (1.8.4, compiled with the
support for gfortran 4.1.2). My fortran programs did not compile, with
gfortran complaining about "Reading module hdf5 at line ... column ...
: Expected string"
I have found something on the web about a recent module format change
for gfortran, so I decided to get the source and compile it manually.
This, however did not work either.
The configuration command was:
./configure --prefix=somedir --enable-fortran
I also have tried with --disable-shared, just in case. No difference.
make returns errors of the following form:
......
fflush2.o: In function `MAIN__':
fflush2.f90:(.text+0x68): undefined reference to
`__h5global_MOD_h5p_default_f'
fflush2.f90:(.text+0x19f): undefined reference to
`__h5global_MOD_h5f_acc_rdonly_f'
fflush2.f90:(.text+0x44b): undefined reference to
`__h5global_MOD_h5p_default_f'
.........
Does anybody have an idea how to compile it succesfully?
Alternatively, how to fool gfortran 4.3.2 into treating properly hdf5
module from the binary distro from the website?
Todor,
The problem is that version of gfortran (4.3.2). I had the same problem on my fedora system with gfortran 4.3. Now, gfortran 4.4 works correctly.
Allen
ยทยทยท
Dear all,
First I tried with binaries from the site (1.8.4, compiled with the
support for gfortran 4.1.2). My fortran programs did not compile, with
gfortran complaining about "Reading module hdf5 at line ... column ...
: Expected string"
I have found something on the web about a recent module format change
for gfortran, so I decided to get the source and compile it manually.
This, however did not work either.
The configuration command was:
./configure --prefix=somedir --enable-fortran
I also have tried with --disable-shared, just in case. No difference.
make returns errors of the following form:
......
fflush2.o: In function `MAIN__':
fflush2.f90:(.text+0x68): undefined reference to
`__h5global_MOD_h5p_default_f'
fflush2.f90:(.text+0x19f): undefined reference to
`__h5global_MOD_h5f_acc_rdonly_f'
fflush2.f90:(.text+0x44b): undefined reference to
`__h5global_MOD_h5p_default_f'
.........
Does anybody have an idea how to compile it succesfully?
Alternatively, how to fool gfortran 4.3.2 into treating properly hdf5
module from the binary distro from the website?