etsf-io configuration fails
Posted: Wed Sep 07, 2011 8:29 pm
Trying to build the prereqs, already have netcdf-4.1.1(including hdf5-1.8.5) built and tested.
I run configure for etsf-io and it fails:
./configure --with-netcdf-module-path=/share/apps/netcdf/4.1.1-gcc-4.6.1/include --with-netcdf-ldflags="`/share/apps/netcdf/4.1.1-gcc-4.6.1/bin/nc-config --libs`"
Where nc-config --libs returns
-L/share/apps/netcdf/4.1.1-gcc-4.6.1/lib -lnetcdf -L/share/apps/hdf5/1.8.5-gcc-4.6.1//lib -lhdf5_hl -lhdf5 -lz -lm
Along with the following environment variables set:
export PATH=/share/apps/gcc/4.6.1/bin:/share/apps/openmpi/1.4.3-gcc-4.6.1/bin:$PATH
export LD_LIBRARY_PATH=/share/apps/gcc/4.6.1/lib64:/share/apps/gmp/5.0.2/lib:/share/apps/mpfr/3.0.1/lib:/share/apps/mpc/0.9/lib:/share/apps/openmpi/1.4.3-gcc-4.6.1/lib:/share/apps/gsl/1.15/lib:$LD_LIBRARY_PATH
This fails and the following is in config.log:
configure:3748: checking for netcdf library
configure:3765: gfortran -o conftest -g -O2 -I/share/apps/netcdf/4.1.1-gcc-4.6.1/include -L/share/apps/netcdf/4.1.1-gcc-4.6.1/lib -lnetcdf -L/share/apps/hdf5/1.8.5-gcc-4.6.1//lib -lhdf5_hl -lhdf5 -lz -lm conftest.f90 -lnetcdf >&5
/share/apps/netcdf/4.1.1-gcc-4.6.1/lib/libnetcdf.a(nc4var.o): In function `nc4_reopen_dataset':
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5open'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5P_CLS_DATASET_ACCESS_g'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5Pcreate'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:56: undefined reference to `H5Pset_chunk_cache'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:60: undefined reference to `H5Dclose'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:62: undefined reference to `H5Dopen2'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:65: undefined reference to `H5Pclose'
........
Any ideas?
David
I run configure for etsf-io and it fails:
./configure --with-netcdf-module-path=/share/apps/netcdf/4.1.1-gcc-4.6.1/include --with-netcdf-ldflags="`/share/apps/netcdf/4.1.1-gcc-4.6.1/bin/nc-config --libs`"
Where nc-config --libs returns
-L/share/apps/netcdf/4.1.1-gcc-4.6.1/lib -lnetcdf -L/share/apps/hdf5/1.8.5-gcc-4.6.1//lib -lhdf5_hl -lhdf5 -lz -lm
Along with the following environment variables set:
export PATH=/share/apps/gcc/4.6.1/bin:/share/apps/openmpi/1.4.3-gcc-4.6.1/bin:$PATH
export LD_LIBRARY_PATH=/share/apps/gcc/4.6.1/lib64:/share/apps/gmp/5.0.2/lib:/share/apps/mpfr/3.0.1/lib:/share/apps/mpc/0.9/lib:/share/apps/openmpi/1.4.3-gcc-4.6.1/lib:/share/apps/gsl/1.15/lib:$LD_LIBRARY_PATH
This fails and the following is in config.log:
configure:3748: checking for netcdf library
configure:3765: gfortran -o conftest -g -O2 -I/share/apps/netcdf/4.1.1-gcc-4.6.1/include -L/share/apps/netcdf/4.1.1-gcc-4.6.1/lib -lnetcdf -L/share/apps/hdf5/1.8.5-gcc-4.6.1//lib -lhdf5_hl -lhdf5 -lz -lm conftest.f90 -lnetcdf >&5
/share/apps/netcdf/4.1.1-gcc-4.6.1/lib/libnetcdf.a(nc4var.o): In function `nc4_reopen_dataset':
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5open'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5P_CLS_DATASET_ACCESS_g'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:51: undefined reference to `H5Pcreate'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:56: undefined reference to `H5Pset_chunk_cache'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:60: undefined reference to `H5Dclose'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:62: undefined reference to `H5Dopen2'
/root/workspace/netcdf-4.1.1/libsrc4/nc4var.c:65: undefined reference to `H5Pclose'
........
Any ideas?
David