[gradsusr] Grads 2.0.1 Compilation Problem

Jeff Lake admin at michiganwxsystem.com
Tue Feb 28 15:09:27 EST 2012


4.1.3 is latest ..
works fine with 2.0.1
http://www.unidata.ucar.edu/downloads/netcdf/netcdf-4_1_3/index.jsp

-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com


On 2/28/2012 2:54 PM, Jennifer Adams wrote:
> I am building with netcdf 4.1.2. This page has more info about the 
> supplibs: http://iges.org/grads/gadoc/supplibs.html
> --Jennifer
>
> On Feb 28, 2012, at 2:38 PM, Spencer Ogden wrote:
>
>> Hi Jennifer,
>>
>> Thanks for your response. I have checked versions 3.6.3, 4.1.1 and 
>> 3.5.1 (which is the oldest available) of netcdf, and I haven't found 
>> this definition. Do you know what version of netcdf GraDS requires?
>>
>> Thanks,
>>
>> Spencer
>>
>> On 2/28/2012 2:08 PM, Jennifer Adams wrote:
>>> Hi, Spencer --
>>> You are correct, you must not have the right version of netcdf.h in 
>>> your supplibs (or wherever your netcdf4 build is located). This is 
>>> where NC_CHUNKED is defined:
>>>
>>> > grep NC_CHUNKED ~/supplibs/include/netcdf/netcdf.h
>>> #define NC_CHUNKED    0
>>>
>>> --Jennifer
>>>
>>>
>>> On Feb 24, 2012, at 12:51 PM, Spencer Ogden wrote:
>>>
>>>> I'm trying to get into grads for the analysis of ocean wind patterns.
>>>> I've worked through a few compilation problems, but have hit a road
>>>> block and I wasn't able to turn up any similar problems on Google.
>>>>
>>>> I'm running on Gentoo and I have manually installed libpng 1.2.34 and
>>>> g2clib 1.2.3. This has allowed configure to enable grib2 and 
>>>> netcdf. I'm
>>>> running in to a problem with the compile though. When compiling 
>>>> gaio.c,
>>>> NC_CHUNKED throws an error as an undeclared symbol. Seems like this
>>>> could be a case of having the wrong version of a header, but I haven't
>>>> been able to track down where I should start looking.
>>>>
>>>> Thanks for any advice,
>>>>
>>>> Spencer
>>>>
>>>> Here's the last bit of ./configure:
>>>> +=========================================================================+
>>>>    GrADS 2.0.1 : Built Fri Feb 24 11:52:02 EST 2012 for 
>>>> i686-pc-linux-gnu
>>>>
>>>> +=========================================================================+
>>>>
>>>>   +-------------------------------+
>>>>   |                               |
>>>>   |  GrADS will be built with:    |
>>>>   |                               |
>>>>   |  - GUI disabled               |
>>>>   |  + readline enabled           |
>>>>   |  + geotiff enabled            |
>>>>   |  - shapefile disabled         |
>>>>   |  + printim enabled            |
>>>>   |  + grib2 enabled              |
>>>>   |  - hdf4 disabled              |
>>>>   |  + hdf5 enabled               |
>>>>   |  + netcdf-4 enabled           |
>>>>   |  - OPeNDAP disabled           |
>>>>   |                               |
>>>>   +-------------------------------+
>>>>
>>>> `make` ouput:
>>>> gcc -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include      -I/usr/include
>>>> -I/usr/include -I/usr/include/hdf    -g -O2 -rdynamic -c gaio.c
>>>> gaio.c: In function 'garead':
>>>> gaio.c:753:3: warning: format '%ld' expects type 'long int', but
>>>> argument 4 has type 'size_t'
>>>> gaio.c:753:3: warning: format '%ld' expects type 'long int', but
>>>> argument 4 has type 'size_t'
>>>> gaio.c: In function 'gancsetup':
>>>> gaio.c:2446:17: error: 'NC_CHUNKED' undeclared (first use in this 
>>>> function)
>>>> gaio.c:2446:17: note: each undeclared identifier is reported only once
>>>> for each function it appears in
>>>> gaio.c:2462:3: warning: format '%ld' expects type 'long int', but
>>>> argument 4 has type 'size_t'
>>>> gaio.c:2462:3: warning: format '%ld' expects type 'long int', but
>>>> argument 4 has type 'size_t'
>>>> make[2]: *** [gaio.o] Error 1
>>>> make[2]: Leaving directory `/home/spencer/grads-2.0.1/src'
>>>> make[1]: *** [all] Error 2
>>>> make[1]: Leaving directory `/home/spencer/grads-2.0.1/src'
>>>> make: *** [all-recursive] Error 1
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>> --
>>> Jennifer M. Adams
>>> IGES/COLA
>>> 4041 Powder Mill Road, Suite 302
>>> Calverton, MD 20705
>>> jma at cola.iges.org <mailto:jma at cola.iges.org>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120228/1bb5cfad/attachment-0003.html 


More information about the gradsusr mailing list