[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020529: need some helps on compiling netcdf-3.5.0
- Subject: 20020529: need some helps on compiling netcdf-3.5.0
- Date: Wed, 29 May 2002 08:55:24 -0600
>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