This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Malcolm, [Sorry for taking so long to respond. For some unknown reason, my user mail agent decided that your email was spam.] > To: <address@hidden> > From: Malcolm Scully <address@hidden> > Subject: NETCDF install > Organization: UCAR/Unidata The above message contained the following: > Hello, I am trying to install NETCDF on my Macintosh computer (OSX 10.2.6), > on which I am running Absoft Fortran 8.0. I am encountering errors when I > run the "make test." The error is as follows: > > + /Applications/Absoft/bin/f90 -c -YEXT_NAMES=LCS -YEXT_SFX=_ -YCFRL=1 > ftest.F > make[2]: *** [ftest] Error 1 > make[1]: *** [subdir_target] Error 1 > make: *** [fortran/test] Error 2 > > > I have included the following files, as indicated on the web site: > > VERSION > Macros.make > Configure.log > Config.log > Make.log > Test.log > > The output from the "uname -a" command is: > > Darwin V17126.vims.EDU 6.6 Darwin Kernel Version 6.6: Thu May 1 21:48:54 > PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power Macintosh powerpc > > Any help you can provide would be greatly appreciated. ... > Making `test' in directory /usr/local/netcdf-3.5.0/src/fortran > > ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o > fort-genatt. > o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o fort-v2compat.o > fort-vario. > o fort-var1io.o fort-varaio.o fort-varmio.o fort-varsio.o > ranlib ../libsrc/libnetcdf.a > /Applications/Absoft/bin/f90 -o ftest -YEXT_NAMES=LCS -YEXT_SFX=_ -YCFRL=1 > ftes > t.o ../libsrc/libnetcdf.a > ld: Undefined symbols: > _ncacpy_ > _ncadel_ ... The above indicates that the netCDF version 2 Fortran-77 interface can't be found in the netCDF library "libnetcdf.a". This is inconsistent to the earlier indication that that interface was successfully added to the library: > Making `all' in directory /usr/local/netcdf-3.5.0/src/fortran > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-attio.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-control.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-dim.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-genatt.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-geninq.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-genvar.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-lib.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-misc.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-v2compat.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-vario.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-var1io.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-varaio.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-varmio.c > /usr/bin/cc -c -I../libsrc -DAbsoftProFortran fort-varsio.c > ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o > fort-genatt. > o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o fort-v2compat.o > fort-vario. > o fort-var1io.o fort-varaio.o fort-varmio.o fort-varsio.o > ranlib ../libsrc/libnetcdf.a What does the netCDF library contain? What is the output of the following command nm -g libnetcdf.a | grep ncacpy (You might have to modify this command for your system.) > Malcolm Scully > > > > ################################################################## > Malcolm Scully > Virginia Institute of Marine Science > P.O. Box 1346 (mail) > 1208 Greate Rd. (deliveries) > Gloucester Point, VA 23062 > (ph) 804.684.7217 (fax) 804.684.7198 > http://www.vims.edu/~mscully > ################################################################### Regards, Steve Emmerson