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.
>From: duong hong son <address@hidden> >Organization: Institute of Meteorology and Hydrology, Vietnam >Keywords: 200205290827.g4T8R6p23895 netCDF 3.5.0 Portland Group Duong, >I'm going to run WRF Version 1.2 but My Redhat-linux 7.2 running PC could >not complete compilation of NETCDF3.5.0: > > - 'make' command was OK > - 'make test' had some problems like : >test_put.o(.text+0xffa1): undefined reference to `errore_' >test_put.o(.text+0xffd6): undefined reference to `errore_' >test_put.o(.text+0x1002b): undefined reference to `nf_close_' >test_put.o(.text+0x10053): undefined reference to `errore_' >test_put.o(.text+0x1007f): undefined reference to `nf_delete_' >test_put.o(.text+0x100b0): undefined reference to `errorc_' >....................................... > - 'make install' seemed OK > >I'm using Portland Group Fortran (It works well with MM5) and Perl5. > >Belows are contents of necessary files. Your listing of 'configure' shows that you set CPPFLAGS specifying -Df2cFortran: >CONTENT OF configure: >#! /bin/sh > > CC=gcc > FC=pgf77 > F90=pgf90 > CXX=c++ > > CFLAGS=-O > CPPFLAGS="-DNDEBUG -Df2cFortran" > FFLAGS="-O -w" # "-Nx400" permits many EXTERNAL statements Try changing the setting of CPPFLAGS and rerunning your build. Here is an example (Bourne shell syntax): CPPFLAGS='-DNDEBUG -DpgiFortran' export CPPFLAGS make distclean ./configure make make test The settings above for CPPFLAGS that match use of the Portland Group Fortran compiler come from: http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html >Many thanks You are welcome. >-- >Duong Hong Son, Dr >Water and Air Environmental Research Center, >Institute of Meteorology and Hydrology, >18, Nguyen Chi Thanh, Hanoi, VIETNAM Tom Yoksas