on my Ubuntu I have all netcdf packages installed, nc-config confirms it has gfortran installed, but still missing references of netcdf-fortran origin.
Maybe some wrong links generated by configure ?
time mpif90 -w -ffree-form -ffree-line-length-none -fconvert=big-endian...
I have similar problem, I specified export NETCDF="/usr"; export NETCDF_classic=1 and dmpar ;
But got missing libraries, looks like from netcdf-fortran, but nc-config says "--has-fortran -> yes --fc -> gfortran"
wrf_io.f:(.text+0x1c0f5): undefined reference to...