Re: missing include file ni/src/ncl/NclExitCode.h

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 08 2013 - 10:24:02 MST

Hi John,

Good catch on this! Thanks for letting us know.

I've renamed the variable "pgrids_var" on our end. This will be in the 6.1.1 release.

--Mary

On Jan 7, 2013, at 5:29 AM, John Donners wrote:

> Hallo Mary, Dave,
>
> I succeeded to compile ncl on our system, thank you for your help.
>
> However, I had to change one source file: $NCARG/ni/src/lib/nfp/wrfW.c.
> That file defines a routine called 'plotgrids_var', but it also uses an
> argument
> with the same name. This causes name clashes with the IBM and GNU compilers:
>
> xlc_r -q64 -qfullpath -qmaxmem=-1 -g -I../../ncl
> -I../../../.././include -I/usr/include/X11
> -I/sara/sw/netcdf/4.1.3/include -I/sara/sw/ncl/5.1.1-sles11/HDF4/include
> -I/usr/include/freetype2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
> -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64 -DNeedFuncProto -g -c
> wrfW.c
> "wrfW.c", line 10587.11: 1506-023 (S) Expecting function or pointer to
> function.
> make: *** [wrfW.o] Error 1
>
> gcc -g -I../../ncl -I../../../.././include -I/usr/include/X11
> -I/sara/sw/netcdf/4.1.3/include -I/sara/sw/ncl/5.1.1-sles11/HDF4/include
> -I/usr/include/freetype2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
> -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64 -DNeedFuncProto -g -c
> wrfW.c
> wrfW.c: In function 'wrf_wps_read_nml_W':
> wrfW.c:10589: error: called object 'plotgrids_var' is not a function
>
> so I renamed the argument to plotvar and everything seems to work ok.
> I guess that you're using a compiler that either adds underscores to the
> routine names,
> or uses uppercase routine names, so you may not have seen this error before.
>
> With regards,
> John
>
> On 01/04/2013 05:03 PM, Mary Haley wrote:
>> Hi John,
>>
>> Yes, you can certainly try removing the references to that file to see if it works. Once you do that, you will need to remake the
>> Makefile in that directory:
>>
>> cd $NCARG/ni/src/ncl
>> [edit the yMakefile and remove the references]
>> [save the file]
>> make me
>> make all install
>>
>> If this produces an executable called "ncl", then you are good to go, and you can finish the full installation by typing:
>>
>> cd $NCARG
>> make all install >&! make-output.2
>>
>> I'm using $NCARG to represent the top level of the NCL source tree.
>>
>> If this doesn't work, then Dave might be able to give you a fixed file.
>>
>> Good luck,
>>
>> --Mary
>>
>
> --
> John Donners
> Consultant
> OSD
> SURFsara
> Amsterdam
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue Jan 8 10:24:10 2013

This archive was generated by hypermail 2.1.8 : Mon Jan 14 2013 - 14:32:39 MST