NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
As part of trying to build ABINIT, I need to build etsf-io which requires netcdf. I've already compiled and tested netcdf-4.1.1 and hdf5-1.8.5. Passed all tests. 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 -l netcdf -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 -- Personally, I liked the university. They gave us money and facilities, we didn't have to produce anything! You've never been out of college! You don't know what it's like out there! I've worked in the private sector. They expect results. -Ray Ghostbusters
netcdfgroup
archives: