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.
NOTE: The decoders
mailing list is no longer active. The list archives are made available for historical reasons.
============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ============================================================================== ---------- Forwarded message ---------- Date: Fri, 28 Feb 2003 10:08:00 -0700 (MST) From: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> To: rkambic@xxxxxxxxxxxxxxxx Subject: grib2nc worked! Hi, Robb, I just found that 'gribtocdl' is required to convert grib into cdl before 'grib2nc'. Now it worked! THANKS VERY MUCH! Wanli
Return-Path: <rkambic@xxxxxxxxxxxxxxxxxxxxxxxx> Organization: UCAR/Unidata Keywords: 200302272203.h1RM3EE23184 X-Authentication-Warning: wcfields.unidata.ucar.edu: rkambic owned process
doing -bs
To: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> cc: decoders <support-decoders@xxxxxxxxxxxxxxxxxxxxxxxx> Subject: Re: 20030226: install udunit (fwd) In-Reply-To: <200302271855.LAA27257@xxxxxxxxxxxxxxxxxx> References: <200302271855.LAA27257@xxxxxxxxxxxxxxxxxx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Wanli, I discovered you were probably using an ANSI C compiler but IBM compilers have some quirks that make it look like STD C compilers. I did some tests on our IBM machine and discovered these problems and fixed them. I usually don't use IBM machines so I was unaware of these problems. I created a new decoders package decoders-2.4.4.tar.Z with the fixes. The new tar file is locate in the pub/decoders/ directory. There were 5 files that needed modification. I "believe" it should now compile using your regular compiler or the gcc one too. Let me know if you still have problems. Robb... On Thu, 27 Feb 2003, Wanli Wu wrote:Thanks, Robb. There is gcc located at /usr/local/bin, but after 'make distclean", "setenv
CC
/usr/local/bin/gcc", the "make" still could not went through. I also tried to install udunits on linux (portland group compilers) and my sunworkstation, it all failed. I'm going to send SCD a message,and see if they're interested in installing. Wanli >Return-Path: <rkambic@xxxxxxxxxxxxxxxxxxxxxxxx> >Organization: UCAR/Unidata >Keywords: 200302271816.h1RIGGu10786 >X-Authentication-Warning: wcfields.unidata.ucar.edu: rkambic owned process doing -bs >To: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >cc: decoders <support-decoders@xxxxxxxxxxxxxxxxxxxxxxxx> >Subject: Re: 20030226: install udunit (fwd) >In-Reply-To: <200302271742.KAA27099@xxxxxxxxxxxxxxxxxx> >References: <200302271742.KAA27099@xxxxxxxxxxxxxxxxxx> >MIME-Version: 1.0 >Content-Type: TEXT/PLAIN; charset=US-ASCII > >On Thu, 27 Feb 2003, Wanli Wu wrote: > >> Thanks, Robb. I am trying the grib2nc on bluesky since the grib data are
in
NCAR >> MSS. "uname -a" displays the following info. >> AIX bs1201en 1 5 0023F7EA4C00 >> >> Could you help me to locate ANSI C? > > >Wanli, > >There's probably not a AIX ANSI compiler on the machine, you need to use >gcc. That's the GNU compiler, it's ANSI. It's usually located at: > >/usr/local/gnu/bin/gcc check if this is correct. > >You need to start over with the build > >% make distclean > >% setenv CC /usr/local/gnu/bin/gcc >% ./configure >% make install > >Hopefully this solves your problem. > >> >> BTW, I was wondering if it is possible to have SCD personnel to install udunits >> and this decoder packages as stardard tools for NCAR mechines (like
bluesky,
>> blackforest). If so, it would save many NCAR users a lot of time. >> > >I have no control over SCD, you need to make the request to SCD to have >them do it. > >Robb... > > > >> >> Wanli >> >> >Return-Path: <rkambic@xxxxxxxxxxxxxxxxxxxxxxxx> >> >Organization: UCAR/Unidata >> >Keywords: 200302271734.h1RHYFT08657 >> >X-Authentication-Warning: wcfields.unidata.ucar.edu: rkambic owned
process
>> doing -bs >> >To: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >> >cc: decoders <support-decoders@xxxxxxxxxxxxxxxxxxxxxxxx> >> >Subject: Re: 20030226: install udunit (fwd) >> >In-Reply-To: <200302271611.JAA27013@xxxxxxxxxxxxxxxxxx> >> >References: <200302271611.JAA27013@xxxxxxxxxxxxxxxxxx> >> >MIME-Version: 1.0 >> >Content-Type: TEXT/PLAIN; charset=US-ASCII >> > >> >Wanli, >> > >> >The basic problem with the compilation is that you are using a STD C >> >compiler. The code would compile w/o changes if you use a ANSI C >> >compiler, which most compilers are today. If your using a SUN it is >> >located at: >> >/opt/SUNWspro/bin/cc to get the correct compiler : >> > >> >% setenv CC /opt/SUNWspro/bin/cc >> > >> >If you are still having trouble finding the ANSI C compiler on your >> >machine, I can help you locate it. You will need to send me the type of >> >machine and the OS version >> > >> >Robb... >> > >> > >> >On Thu, 27 Feb 2003, Wanli Wu wrote: >> > >> >> Robb, >> >> >> >> Thanks for the revised gdes.c. Now 'make' passed 'gdes.c', but stopped
at
>> >> inetutil.c. Error message is as follows: >> >> cc -c -g "-I/usr/local/include" -I/home/bluesky/wanliwu/include >> >> -D_ALL_SOURCE inetutil.c >> >> "inetutil.c", line 24.17: 1506-275 (S) Unexpected text 'int'
encountered.
>> >> "inetutil.c", line 24.17: 1506-275 (S) Unexpected text ')' encountered. >> >> "inetutil.c", line 24.24: 1506-276 (S) Syntax error: possible missing
')'?
>> >> "inetutil.c", line 24.17: 1506-343 (S) Redeclaration of h_errno_which differs >> >> from previous declaration on line 42 of "/usr/include/netdb.h". >> >> "inetutil.c", line 24.17: 1506-050 (I) Return type "int**" in redeclaration >> is >> >> not compatible with the previous return type "void*". >> >> make: 1254-004 The error code from the last command is 1 >> >> >> >> >> >> Would you please give it a check? >> >> >> >> Thanks, >> >> >> >> Wanli >> >> >> >> >Return-Path: <rkambic@xxxxxxxxxxxxxxxxxxxxxxxx> >> >> >Organization: UCAR/Unidata >> >> >Keywords: 200302262337.h1QNb7A18540 >> >> >X-Authentication-Warning: wcfields.unidata.ucar.edu: rkambic owned process >> >> doing -bs >> >> >To: wanli@xxxxxxxxxxxxxxxxxx >> >> >cc: decoders <support-decoders@xxxxxxxxxxxxxxxxxxxxxxxx> >> >> >Subject: Re: 20030226: install udunit (fwd) >> >> >MIME-Version: 1.0 >> >> >Content-Type: MULTIPART/MIXED; >> >> BOUNDARY="-559023410-758783491-1046302627=:16380" >> >> > >> >> >Wanli, >> >> > >> >> >I believe the problem is how standard C needs to have procdures
declared.
>> >> >I moved the problem procedures up higher in the code. The new gdes.c
file
>> >> >is attached to this message. Let me know if this solves your >> >> >problem so I can checkin the changes. >> >> > >> >> >Robb... >> >> > >> >> >>==============================================================================>> >> >Robb Kambic Unidata Program Center >> >> >Software Engineer III Univ. Corp for Atmospheric >> Research >> >> >rkambic@xxxxxxxxxxxxxxxx WWW:
http://www.unidata.ucar.edu/
>> >> >>==============================================================================>> >> > >> >> >------- Forwarded Message >> >> > >> >> >Return-Path: wanli@xxxxxxxxxxxxxxxxxx >> >> >Delivery-Date: Wed Feb 26 11:44:36 2003 >> >> >Received: from kobuk.colorado.edu (kobuk.Colorado.EDU
[128.138.136.245])
>> >> > by unidata.ucar.edu (UCAR/Unidata) with ESMTP id h1QIiZt08775 >> >> > for <steve@xxxxxxxxxxxxxxxx>; Wed, 26 Feb 2003 11:44:35 -0700
(MST)
>> >> >Organization: UCAR/Unidata >> >> >Keywords: 200302261844.h1QIiZt08775 >> >> >Received: from kobuk.colorado.edu (kobuk.Colorado.EDU
[128.138.136.245])
>> >> > by kobuk.colorado.edu (8.9.1a/8.9.1/ITS-5.0/standard) with SMTP
id
>> >> LAA26288 >> >> > for <steve@xxxxxxxxxxxxxxxx>; Wed, 26 Feb 2003 11:44:31 -0700
(MST)
>> >> >Message-Id: <200302261844.LAA26288@xxxxxxxxxxxxxxxxxx> >> >> >Date: Wed, 26 Feb 2003 11:44:31 -0700 (MST) >> >> >From: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >> >> >Reply-To: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >> >> >Subject: Re: 20030226: install udunit >> >> >To: steve@xxxxxxxxxxxxxxxx >> >> >MIME-Version: 1.0 >> >> >Content-Type: TEXT/plain; charset=us-ascii >> >> >Content-MD5: iheKeRut0S36+/9o2CiRDg= >> >> >X-Mailer: dtmail 1.3.0 CDE Version 1.3 SunOS 5.7 sun4u sparc >> >> >X-Spam-Status: No, hits=-0.1 required=5.0 >> >> > tests=AWL,NOSPAM_INC,QUOTED_EMAIL_TEXT,SPAM_PHRASE_00_01 >> >> > version=2.43 >> >> >X-Spam-Level: >> >> > >> >> >Steve, >> >> > >> >> >Thanks. Actually, the 'make install' indeed installed those files on
my
home >> >> >directory (though some error meesage at the end of installation). >> >> > >> >> >Now I tried to install decoders-2.4.3 that has grib2nc. What I did was >> >> > >> >> >./configure --prefix=$HOME >> >> > >> >> >The configure did ask where netcdf lib/include are, I given as >> >> >"-L/usr/local/lib32/r4i3 -lnetcdf" for the netcdf library >> >> >"-I/usr/local/include" for netcdf include files >> >> > >> >> >The config.log file has few error message like: >> >> >configure:1070: cc -E -traditional-cpp -D_ALL_SOURCE conftest.c >/dev/null >> >> 2>co >> >> >nftest.out >> >> >cc: 1501-210 command option t contains an incorrect subargument >> >> >1506-173 (W) Option lm is not valid. Enter xlc for list of valid
options.
>> >> >configure: failed program was: >> >> >#line 1064 "configure" >> >> >#include "confdefs.h" >> >> >#include <assert.h> >> >> >Syntax Error >> >> >configure:1087: cc -nologo -E -D_ALL_SOURCE conftest.c >/dev/null >> >> 2>conftest.ou >> >> >t >> >> >1506-173 (W) Option lm is not valid. Enter xlc for list of valid
options.
>> >> >configure: failed program was: >> >> >#line 1081 "configure" >> >> >#include "confdefs.h" >> >> >#include <assert.h> >> >> >Syntax Error >> >> > >> >> > >> >> >Then I invoked 'make', it stoped with error: >> >> >"gdes.c", line 2688.13: 1506-343 (S) Redeclaration of copy_gdes_ll differs >> from >> >> >previous declaration on line 2604 of "gdes.c". >> >> >"gdes.c", line 2688.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >"gdes.c", line 2705.13: 1506-343 (S) Redeclaration of copy_gdes_gau differs >> >> from >> >> >previous declaration on line 2612 of "gdes.c". >> >> >"gdes.c", line 2705.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >"gdes.c", line 2722.13: 1506-343 (S) Redeclaration of copy_gdes_sph differs >> >> from >> >> >previous declaration on line 2620 of "gdes.c". >> >> >"gdes.c", line 2722.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >"gdes.c", line 2740.13: 1506-343 (S) Redeclaration of copy_gdes_mercat >> differs >> >> >from previous declaration on line 2626 of "gdes.c". >> >> >"gdes.c", line 2740.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >"gdes.c", line 2745.13: 1506-343 (S) Redeclaration of copy_gdes_polars >> differs >> >> >from previous declaration on line 2632 of "gdes.c". >> >> >"gdes.c", line 2745.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >"gdes.c", line 2750.13: 1506-343 (S) Redeclaration of
copy_gdes_lambert
>> differs >> >> >from previous declaration on line 2637 of "gdes.c". >> >> >"gdes.c", line 2750.13: 1506-050 (I) Return type "void" in
redeclaration
is >> not >> >> >compatible with the previous return type "int". >> >> >make: 1254-004 The error code from the last command is 1. >> >> > >> >> > >> >> >Stop. >> >> >make: 1254-004 The error code from the last command is 1. >> >> > >> >> > >> >> >What can I do or what I did wrong? (of course, 'make install' could
not
go). >> >> > >> >> > >> >> >Thanks, >> >> > >> >> >Wanli >> >> > >> >> >>Return-Path: <steve@xxxxxxxxxxxxxxxx> >> >> >>Organization: UCAR/Unidata >> >> >>To: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >> >> >>cc: support-udunits@xxxxxxxxxxxxxxxx >> >> >>Subject: 20030226: install udunit >> >> >>In-reply-to: Your message of "Wed, 26 Feb 2003 11:11:52 MST." >> >> ><200302261811.LAA26262@xxxxxxxxxxxxxxxxxx> >> >> >>Keywords: 200302261811.h1QIBut15714 >> >> >> >> >> >>Wanli Wu, >> >> >> >> >> >>>Date: Wed, 26 Feb 2003 11:11:52 -0700 (MST) >> >> >>>From: Wanli Wu <wanli@xxxxxxxxxxxxxxxxxx> >> >> >>>Organization: University of Colorado >> >> >>>To: steve@xxxxxxxxxxxxxxxx >> >> >>>Subject: Re: 20030226: install udunit >> >> >> >> >> >>The above message contained the following: >> >> >> >> >> >>> Thanks for the quick response. I didn't 'make' before 'make >> >> >>> install'. So I made a clean install again. At the end, I saw
message
>> >> >>> like below though I intended to install it at my home directory >> >> >>> (./configure --prefix=$HOME). Will it work if I manually copy the >> >> >>> following files to $HOME: >> >> >> >> >> >>You should allow the package to install itself by executing the
command
>> >> >>"make install" (after the command "make") rather than try to install >> >> >>the package manually. >> >> >> >> >> >>Regards, >> >> >>Steve Emmerson <http://www.unidata.ucar.edu> >> >> > >> >> > <> +++++++ Wanli Wu +++++++ <> >> >> > <> CIRES, University of Colorado <> >> >> > <> Boulder, Colorado <> >> >> > <> (303) 492-0281 (O) <> >> >> > <> wanli@xxxxxxxxxxxxxxxxxx <> >> >> > <> http://cires.colorado.edu/~wwu <> >> >> > >> >> >------- End of Forwarded Message >> >> >> >> <> +++++++ Wanli Wu +++++++ <> >> >> <> CIRES, University of Colorado <> >> >> <> Boulder, Colorado <> >> >> <> (303) 492-0281 (O) <> >> >> <> wanli@xxxxxxxxxxxxxxxxxx <> >> >> <> http://cires.colorado.edu/~wwu <> >> >> >> >> >> > >>==============================================================================>> >Robb Kambic Unidata Program Center >> >Software Engineer III Univ. Corp for Atmospheric Research >> >rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ >>==============================================================================>> >> <> +++++++ Wanli Wu +++++++ <> >> <> CIRES, University of Colorado <> >> <> Boulder, Colorado <> >> <> (303) 492-0281 (O) <> >> <> wanli@xxxxxxxxxxxxxxxxxx <> >> <> http://cires.colorado.edu/~wwu <> >> >> >==============================================================================>Robb Kambic Unidata Program Center >Software Engineer III Univ. Corp for Atmospheric
Research
>rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/==============================================================================<> +++++++ Wanli Wu +++++++ <> <> CIRES, University of Colorado <> <> Boulder, Colorado <> <> (303) 492-0281 (O) <> <> wanli@xxxxxxxxxxxxxxxxxx <> <> http://cires.colorado.edu/~wwu <>============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ==============================================================================
<> +++++++ Wanli Wu +++++++ <> <> CIRES, University of Colorado <> <> Boulder, Colorado <> <> (303) 492-0281 (O) <> <> wanli@xxxxxxxxxxxxxxxxxx <> <> http://cires.colorado.edu/~wwu <>
decoders
archives: