Stéphane,
The undefined references seem to indicate it is looking for parallel
references? Maybe the fortran library failed to build properly, or didn't
include a parallel library? Is H5_HAVE_PARALLEL defined in the H5pubconf.h
file? h5pset_fapl_mpio_c is in the H5FDmpiof.c file which should be in the
libhdf5_f90cstub library.
Allen
> Allen,
>
> I will look into this HDF5-CMake issue a bit further: I think I can learn a
> lot from this investigation!
> But now I would like make some progress.
> Basically, my only problem is the linking of my code with the hdf5-vfd
> libraries. I can link my code with h5 libraries compiled with configure/make,
> with h5pfc (easy) but also without it. Actually, I already took care of those
> libraries explicitly/manually in my makefile. So I can link without h5pfc.
>
> With the CMake libraries (and thus without h5pfc), here is the kind of
> messages I get when I link my code with hdf5:
>
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5_ff.f90.o):
> In function `h5lib_mp_h5open_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5_ff.f90:(.text+0x2e):
> undefined reference to `h5init_types_c_'
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5_ff.f90:(.text+0xba):
> undefined reference to `h5init_flags_c_'
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5_ff.f90:(.text+0xc8):
> undefined reference to `h5init1_flags_c_'
> ...
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x17):
> undefined reference to `h5pset_fapl_mpio_c_'
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5FDmpioff.f90.o):
> In function `h5fdmpio_mp_h5pget_fapl_mpio_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x27):
> undefined reference to `h5pget_fapl_mpio_c_'
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5FDmpioff.f90.o):
> In function `h5fdmpio_mp_h5pset_dxpl_mpio_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x37):
> undefined reference to `h5pset_dxpl_mpio_c_'
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5FDmpioff.f90.o):
> In function `h5fdmpio_mp_h5pget_dxpl_mpio_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x47):
> undefined reference to `h5pget_dxpl_mpio_c_'
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5FDmpioff.f90.o):
> In function `h5fdmpio_mp_h5pset_fapl_mpiposix_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x74):
> undefined reference to `h5pset_fapl_mpiposix_c_'
> /home/ucl/tfl/sbackaer/local/stow/hdf5-vfd-1.8.8_cmake/lib/libhdf5_fortran.a(H5FDmpioff.f90.o):
> In function `h5fdmpio_mp_h5pget_fapl_mpiposix_f_':
> /home/ucl/tfl/sbackaer/local/build/hdf5-vfd-1.8.8/fortran/src/H5FDmpioff.f90:(.text+0x90):
> undefined reference to `h5pget_fapl_mpiposix_c_'
>
> There are hundreds of lines like those!! All messages are only related to
> libhdf5_fortran.a.
>
> I had to adapt my makefile because there are two new libraries:
> libhdf5_f90cstub and libhdf5_hl_f90cstub but it is the same explicit way of
> linking as "configure/make"!
>
> Is this mean something for anyone?? I know what a undefined reference means,
> why there??
>
> Best,
>
> Stephane
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org