Hello,
I'm trying to build h5pfc for hdf5-1.8.5-patch1 using the Intel 11.1
compilers (specifically for intel 11.1 20091130 with mpich2 1.2.1).
My configure line looks like 'CC=mpicc FC=mpif90 ./configure
--enable-shared --enable-fortran --enable-parallel'
I see a problem within fortran/src when running make. Specifically
this libtool command
/bin/bash ../../libtool --tag=FC --mode=link mpif90 -fPIC -O3
-I../../src -I../../fortran/src -version-info 6:4:0 -o
libhdf5_fortran.la -rpath
/org/centers/pecos/LIBRARIES/HDF5/hdf5-1.8.5-p1-intel-11.1-mpich2-1.2.1/lib
H5f90global.lo H5fortran_types.lo H5_ff.lo H5Aff.lo H5Dff.lo H5Eff.lo
H5Fff.lo H5Gff.lo H5Iff.lo H5Lff.lo H5Off.lo H5Pff.lo H5Rff.lo
H5Sff.lo H5Tff.lo H5Zff.lo H5_DBLE_InterfaceInclude.lo H5f90kit.lo
H5_f.lo H5Af.lo H5Df.lo H5Ef.lo H5Ff.lo H5Gf.lo H5If.lo H5Lf.lo
H5Of.lo H5Pf.lo H5Rf.lo H5Sf.lo H5Tf.lo H5Zf.lo H5FDmpiof.lo
HDF5mpio.lo H5FDmpioff.lo -lz -lm
generates this link line
libtool: link: mpif90 -shared .libs/H5f90global.o
.libs/H5fortran_types.o .libs/H5_ff.o .libs/H5Aff.o .libs/H5Dff.o
.libs/H5Eff.o .libs/H5Fff.o .libs/H5Gff.o .libs/H5Iff.o .libs/H5Lff.o
.libs/H5Off.o .libs/H5Pff.o .libs/H5Rff.o .libs/H5Sff.o .libs/H5Tff.o
.libs/H5Zff.o .libs/H5_DBLE_InterfaceInclude.o .libs/H5f90kit.o
.libs/H5_f.o .libs/H5Af.o .libs/H5Df.o .libs/H5Ef.o .libs/H5Ff.o
.libs/H5Gf.o .libs/H5If.o .libs/H5Lf.o .libs/H5Of.o .libs/H5Pf.o
.libs/H5Rf.o .libs/H5Sf.o .libs/H5Tf.o .libs/H5Zf.o .libs/H5FDmpiof.o
.libs/HDF5mpio.o .libs/H5FDmpioff.o -lz -lm -soname
libhdf5_fortran.so.6 -o .libs/libhdf5_fortran.so.6.0.4
ifort: command line warning #10156: ignoring option '-s'; no argument required
ifort: error #10236: File not found: 'libhdf5_fortran.so.6'
which then bombs out.
From some digging, it appears the problem is an Intel 11.1-ism around
-soname (http://software.intel.com/en-us/articles/intel-compiler-error-10236-with-soname-corrupts-shared-library-on-linux/)
where an -Xlinker argument should be present near -soname. This seems
to be libtool's job. I noticed that HDF5 1.8.5-patch1 ships with
libtool 2.2.6b, which seems to be a bit stale relative to the current
2.4 version.
Would someone please point me to how to upgrade libtool within the
HDF5 source tree? I have grepped around but cannot seem to find the
usual 'bootstrap' or 'autogen.sh' script that pulls in a new libtool
version. I'd like to confirm or deny that upgrading libtool fixes
this linker error.
Thanks for your time,
Rhys