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.
Verena, >Date: Fri, 07 Dec 2001 12:49:43 +0100 >From: Verena Cals <address@hidden> >Organization: ? >To: Steve Emmerson <address@hidden> >Subject: Re: 20011206: Linux installation; NAG Fortran >Keywords: 200111260830.fAQ8UKN14318 The above message contained the following: > I've tried this and I've performed up to step 7 without problems. But > now I've got a failure by performing step 8. > I only send make.log and test.log, because the other files and > specifications didn't change. > > Regards, > Verena ... > Making `test' in directory > /home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/nf_test > > make[2]: Entering directory > `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/nf_test' > /usr/bin/gcc -c -O -DNDEBUG -DNAGf90Fortran fortlib.c > /usr/local/bin/f95 -o nf_test -O -mismatch -w test_get.o test_put.o > nf_error.o > nf_test.o test_read.o test_write.o util.o fortlib.o > ../libsrc/libnetcdf.a -lm > make[2]: Leaving directory > `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src/nf_test' > make[1]: Leaving directory > `/home1/icg152/Uebungen/NetCDF/netcdf-3.5.0/src' > n `main': > nf_test.o(.text+0x23b): undefined reference to `getarg_' > nf_test.o(.text+0x26f): undefined reference to `iargc_' > nf_test.o(.text+0x2b3): undefined reference to `getarg_' > nf_test.o(.text+0x425): undefined reference to `getarg_' > collect2: ld returned 1 exit status > make[2]: *** [nf_test] Error 1 > make[1]: *** [subdir_target] Error 1 > make: *** [nf_test/test] Error 2 I searched the netCDF support-email archive for "NAG;Fortran;getarg_" and found the following in <http://www.unidata.ucar.edu/glimpse/netcdf/3903>: It appears that the NAG f95 environment on your system doesn't support getopt(3f), which is the standard way of obtaining command-line arguments in a Unix environment. It could be that you need to add a particular library reference to the command that builds the test program "fortran/nf_test". I don't know what that referece might be (check with your documentation). If you can't find any support for getopt(3f), then I would complain to the vendor of the development environment for not supplying a complete environment. The "getarg_" and related routines are only needed to test the Fortran-90 interface; therefore, it could be that the Fortran-90 layer was successfully built (but can't be tested). You might ignore the testing and just install the package (step 9) and see if it works OK. In any case, you should complain loudly to NAG for not providing a proper runtime library. > Verena Cals > > ICG I: Stratosphäre > Forschungszentrum Jülich GmbH > EMail: address@hidden Regards, Steve Emmerson <http://www.unidata.ucar.edu>