Did you "make clean" first?
-- Ted
On Sep 2, 2009, at 4:11 PM, Carlos Moffat wrote:
and now fails with (so it goes a bit farther):
mpif90 -DHAVE_CONFIG_H -I. -I.. -I../fortran   -DpgiFortran -I../ 
fortran    -I../libsrc4    -I../f90 -g -c -o ftst_vars.o ftst_vars.F
mpif90 -I../fortran    -I../libsrc4    -I../f90 -g -c -o  
handle_err.o handle_err.f
/bin/bash ../libtool --tag=F77   --mode=link mpif90 -I../fortran - 
I../libsrc4    -I../f90 -g        -o ftst_vars ftst_vars.o fortlib.o  
handle_err.o  ../libsrc4/libnetcdf.la   -lhdf5_hl -lhdf5    -lm -lz - 
lhdf5 -L/usr/local/bin/mpif90
libtool: link: mpif90 -I../fortran -I../libsrc4 -I../f90 -g -o  
ftst_vars ftst_vars.o fortlib.o handle_err.o  ../libsrc4/.libs/ 
libnetcdf.a -L/usr/local/bin/mpif90 -lhdf5_hl -lm -lz -lhdf5
ftst_vars.o: In function `ftst_vars':
/home/cmoffat/Sandbox/netcdf-4.0.1/nf_test/ftst_vars.F:57: undefined  
reference to `nf_set_chunk_cache_'
/home/cmoffat/Sandbox/netcdf-4.0.1/nf_test/ftst_vars.F:62: undefined  
reference to `nf_get_chunk_cache_'