[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20030226: install udunit (fwd)



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: <address@hidden>
> >Organization: UCAR/Unidata
> >Keywords: 200302262337.h1QNb7A18540
> >X-Authentication-Warning: wcfields.unidata.ucar.edu: rkambic owned process
> doing -bs
> >To: address@hidden
> >cc: decoders <address@hidden>
> >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
> >address@hidden                  WWW: http://www.unidata.ucar.edu/
> >===============================================================================
> >
> >------- Forwarded Message
> >
> >Return-Path: address@hidden
> >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 <address@hidden>; 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 <address@hidden>; Wed, 26 Feb 2003 11:44:31 -0700 (MST)
> >Message-Id: <address@hidden>
> >Date: Wed, 26 Feb 2003 11:44:31 -0700 (MST)
> >From: Wanli Wu <address@hidden>
> >Reply-To: Wanli Wu <address@hidden>
> >Subject: Re: 20030226: install udunit
> >To: address@hidden
> >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: <address@hidden>
> >>Organization: UCAR/Unidata
> >>To: Wanli Wu <address@hidden>
> >>cc: address@hidden
> >>Subject: 20030226: install udunit
> >>In-reply-to: Your message of "Wed, 26 Feb 2003 11:11:52 MST."
> ><address@hidden>
> >>Keywords: 200302261811.h1QIBut15714
> >>
> >>Wanli Wu,
> >>
> >>>Date: Wed, 26 Feb 2003 11:11:52 -0700 (MST)
> >>>From: Wanli Wu <address@hidden>
> >>>Organization: University of Colorado
> >>>To: address@hidden
> >>>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)  <>
> >   <>       address@hidden   <>
> >   <>   http://cires.colorado.edu/~wwu <>
> >
> >------- End of Forwarded Message
>
>    <>  +++++++    Wanli Wu    +++++++  <>
>    <>  CIRES, University of Colorado   <>
>    <>         Boulder, Colorado        <>
>    <>           (303) 492-0281    (O)  <>
>    <>       address@hidden   <>
>    <>   http://cires.colorado.edu/~wwu <>
>
>

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================