NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Mark, Well, it seems to be missing the definition of NC_CLASSIC_MODEL which is from netcdf.h. And this makes sense since you don't seem to be including the NetCDF C libraries. You'll need to pass into the configure script your NetCDF include directory and library strings which you can get from "nc-config --includedir" and "nc-config --libs". More info can be found here: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html I've usually built it with something like (this is from a big GNUmakefile that makes other libraries): export CPPFLAGS="$(CPPFLAGS) -I$(prefix)/include/netcdf <other includes>";\ export LIBS="-L$(prefix)/lib $(LIB_NETCDF) $(LIB_CURL)" ;\ ./configure --prefix=$(prefix) --includedir=$(prefix)/include/netcdf CC=... where I got LIB_NETCDF from nc-config, and LIB_CURL from curl-config (probably not necessary). For the "other" include directories (usually NetCDF's) you can try "nc-config --cflags" Matt On Mar 6, 2013, at 3:25 PM, Mark Tucker <mht06220@xxxxxxxxxxx<mailto:mht06220@xxxxxxxxxxx>> wrote: I'm trying to build the netcdf fortran release 4.2 using PGI 2012 on 64-bit Linux. So far I have not had any luck using the environment suggested on the Portland Group web site. Admittedly, their information is quite dated now. Does anyone have a working environment that they could share? Thanks . >From the tail of the "make" process. No errors appeared earlier. /bin/sh ../libtool --tag=CC --mode=compile pgcc -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -DNDEBUG -DpgiFortran -O2 -Msignextend -V -c -o fort-v2compat.lo fort-v2compat.c libtool: compile: pgcc -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -DNDEBUG -DpgiFortran -O2 -Msignextend -V -c fort-v2compat.c -fpic -DPIC -o .libs/fort-v2compat.o PGC/x86-64 Linux 12.10-0 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2012, STMicroelectronics, Inc. All Rights Reserved. PGC-S-0039-Use of undeclared variable NC_CLASSIC_MODEL (fort-v2compat.c: 274) PGC/x86-64 Linux 12.10-0: compilation completed with severe errors pgcc 12.10-0 64-bit target on x86-64 Linux -tp penryn Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2012, STMicroelectronics, Inc. All Rights Reserved. make[3]: *** [fort-v2compat.lo] Error 1 make[3]: Leaving directory `/home/mark/tmp/netcdf-fortran-4.2/fortran' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/mark/tmp/netcdf-fortran-4.2/fortran' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mark/tmp/netcdf-fortran-4.2' make: *** [all] Error 2 -- Mark Tucker Systems Administrator Dept. of Atmospheric Sciences Lyndon State College http://meteorology.lyndonstate.edu<http://meteorology.lyndonstate.edu/> mark.tucker@xxxxxxxxxxxxxxx<mailto:mark.tucker@xxxxxxxxxxxxxxx> (802)-626-6328 _______________________________________________ netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx<mailto:netcdfgroup@xxxxxxxxxxxxxxxx> For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/ -- Matt Thompson, PhD SSAI, Sr Software Test Engr NASA GSFC, Global Modeling and Assimilation Office Code 610.1, 8800 Greenbelt Rd, Greenbelt, MD 20771 Phone: 301-614-6712 Fax: 301-614-6246
netcdfgroup
archives: