NOTE: The netcdf-porting
mailing list is no longer active. The list archives are made available for historical reasons.
Samrat Rao <samrat.rao@xxxxxxxxx> writes: > Hi Ed, > ÃÂÂÃÂÂ Thanks. I think that your suggestion has worked as far as netcdf is > concerned. I have compiled both 3.6.2 and 4.0.1. But when i compile an > application (a climate model CAM3) using the 3.6.2 or 4.0.1 library i get > the error: > > ld: 0711-317 ERROR: Undefined symbol: .nf_create > > I have tried using xlf, xlc, xlC, xlf90 compilers as well. > This is the script i am using and the logfile for 4.0.1 is also attached. > Is there anything that catches your attention? > > #!/usr/bin/bash -f > > gmake uninstall > gmake distclean > rm makelog.* > > LOG=makelog.$$ > export CC=xlc_r > export CXX=xlC_r > export F77=xlf_r > export FC=xlf90_r > CFLAGS="-q64 -qarch=auto -O3" > CXXFLAGS="-q64 -qarch=auto -O3" > FFLAGS="-q64 -qarch=auto -O3" > FCFLAGS="-q64 -qarch=auto -O3" > #F77FLAGS="-q64" > #export CPPFLAGS="-DIBMR2Fortran" > export SED=/usr/bin/sed > export AWK=/usr/bin/awk > #export ARFLAGS="-X64" > #export NMFLAGS="-X64" > #export MAKE=/usr/bin/make > > ./configure --prefix=/home/caos1/mecsmrao/netcdf/netcdf_4.0.1 --enable-f90 > 2>&1 | tee $LOG > gmake 2>&1 | tee -a $LOG > gmake check 2>&1 | tee -a $LOG > gmake install > When you build netCDF, did you successfully run "make check?" If not, please do so and see if you get the same error. You must build netCDF with the same fortran compiler that you compile your model with. Did you do that? Look in the config.log file in your netCDF build directory and find out which fortran compiler it used. Is it the same? Thanks, Ed -- Ed Hartnett -- ed@xxxxxxxxxxxxxxxx
netcdf-porting
archives: