Help on definition of NGCALLF in c.h file

From: Liang, Jinyou_at_nyahnyahspammersnyahnyah <Jinyou_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 27 2011 - 10:49:38 MST

Dear NCL expert,

Could you please help me out on the following installation problem with NCL?

While installing ncl_ncarg-5.2.1 on a Linux computer running Redhat Enterprise Linux OS version 5.4 using pgfortran (v10.5) and gcc (4.1.2 20080704 [Red Hat 4.1.2-48]), I encountered an error in subdirectory "common/src/libncarg_c". The use of c.h (a copy of c.h.sed) yielded duplicate definition of SED_NGCALLF due to dozens of functions named

NGCALLF(lowercase, uppercase) (char*, int*)

In files logic32.c and trnspprt.c, etc.

The complete compiler options are as follow:

gcc -O2 -m64 -fPIC -O -I../../.././include -I/usr/X11R6/include -I/usr/local/include/freetype2 -DLinux -DIBM -DNGVERSION='"5.2.1"' -DNCLVERSION='"5.2.1"' -DNCARGURL='"ngurl"' -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -DNDEBUG -c -o rwchinfl.o rwchinfl.c

Did I miss anything in compiler options (I compiled the same package successfully using earlier version of gcc/RHEL and gfortran), or do I have to insert unique definitions in the c.h file for each complaint from the compiler?

Your response will be greatly appreciated.

Jinyou (Paul) Liang, Ph.D.
Staff Air Pollution Specialist
California Air Resources Board
Sacramento, CA 95812
Phone: (916) 327-8543

ncl-install mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Jan 27 10:53:53 2011

This archive was generated by hypermail 2.1.8 : Mon Jan 31 2011 - 11:17:53 MST