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

20051229: 20051229: GEMPAK5.9.1 Build Problem



Tom,

You could try the following:

1) line 30:
   const int    numparts = 3; 

If that doesn't make a difference:

2) comment out line 30:
   /* int    numparts = 3; */

   Add on Line 4: #define numparts 3

if that doesn't change anything:

3) on line 31, change definition:
   *cdef="\0"
to
   cdef[]="\0"

As you said, there's not much else going on, unless
something is getting clobbered in the header includes.

If thats the case, you could change the includes at the beginning to:

4)
#include "geminc.h"
#include "gemprm.h"
#include "gdgrib2.h"
#include "ctbcmn.h"


Steve Chiswell
Unidata User SUpport


>From: Tom McDermott <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200512292213.jBTMDR7s011605

>
>On Thu, 29 Dec 2005, Unidata Support wrote:
>
>> I built the package here under a Solaris 5.8 system:
>> SunOS gilda.unidata.ucar.edu 5.8 Generic_117350-30 sun4u sparc SUNW,Sun-Blad
> e-1000
>>
>> What C compiler are you using?
>>
>> My SUNSwpro reports:
>> chiz on gilda --> cc -V
>> cc: Sun C 5.7 2005/01/07
>
>[501] cyclone% cc -V
>cc: Sun WorkShop 6 update 1 C 5.2 Patch 109513-11 2002/12/20
>
>I think it's several years old.
>
>Tom
>
>
>>
>> Since the error message is evoked twice, my first guess is that is 
>> doesn't like int numparts = 3; being declared above, and used in the 
>> char declaration.
>>
>> Steve Chiswell
>> Unidata User Support
>>
>>
>>
>>
>>
>>
>>> From: Tom McDermott <address@hidden>
>>> Organization: UCAR/Unidata
>>> Keywords: 200512292150.jBTLoq7s009419
>>
>>> Steve,
>>>
>>> I ran into a little problem when building gempak 5.9.1 on Sparc Solaris
>>> 5.8 system.  Here is the relevant excerpt from the make output:
>>>
>>> -n making in
>>> /weather/GEMPAK5.9.1/gempak/source/programs/gd/gdgrib2
>>> cc -DUNDERSCORE -DNO_NANOSLEEP -DSunOS
>>> -I/weather/GEMPAK5.9.1/gempak/include -I/weather/GEMPAK5.
>>> 9.1/os/sol/include -I/usr/dt/include -I/usr/openwin/include -O -c gdg2in.c
>>> cc -DUNDERSCORE -DNO_NANOSLEEP -DSunOS
>>> -I/weather/GEMPAK5.9.1/gempak/include -I/weather/GEMPAK5.
>>> 9.1/os/sol/include -I/usr/dt/include -I/usr/openwin/include -O -c
>>> gdgetgrid.c
>>> cc -DUNDERSCORE -DNO_NANOSLEEP -DSunOS
>>> -I/weather/GEMPAK5.9.1/gempak/include -I/weather/GEMPAK5.
>>> 9.1/os/sol/include -I/usr/dt/include -I/usr/openwin/include -O -c
>>> gdmakeg2.c
>>> cc -DUNDERSCORE -DNO_NANOSLEEP -DSunOS
>>> -I/weather/GEMPAK5.9.1/gempak/include -I/weather/GEMPAK5.
>>> 9.1/os/sol/include -I/usr/dt/include -I/usr/openwin/include -O -c
>>> gdmakepdt.c
>>> cc -DUNDERSCORE -DNO_NANOSLEEP -DSunOS
>>> -I/weather/GEMPAK5.9.1/gempak/include -I/weather/GEMPAK5.
>>> 9.1/os/sol/include -I/usr/dt/include -I/usr/openwin/include -O -c
>>> gdmakwmo.c
>>> "gdmakwmo.c", line 31: integral constant expression expected
>>> "gdmakwmo.c", line 31: integral constant expression expected
>>> cc: acomp failed for gdmakwmo.c
>>> *** Error code 2
>>> make: Fatal error: Command failed for target
>>> `/weather/GEMPAK5.9.1/os/sol/lib/gdgrib2.a(gdmakwmo
>>> .o)'
>>> Current working directory
>>> /weather/GEMPAK5.9.1/gempak/source/programs/gd/gdgrib2
>>> *** Error code 1
>>> make: Fatal error: Command failed for target `all'
>>> Current working directory /weather/GEMPAK5.9.1/gempak/source/programs/gd
>>> *** Error code 1
>>> make: Fatal error: Command failed for target `all'
>>> Current working directory /weather/GEMPAK5.9.1/gempak/source/programs
>>> *** Error code 1
>>> make: Fatal error: Command failed for target `all'
>>> Current working directory /weather/GEMPAK5.9.1/gempak/source
>>> *** Error code 1
>>> make: Fatal error: Command failed for target `all'
>>> Current working directory /weather/GEMPAK5.9.1/gempak
>>> *** Error code 1
>>> make: Fatal error: Command failed for target `all'
>>>
>>> After looking at the 'gdmakwmo.c' file, it's not obvious to me where the
>>> problem lies, so I thought I would see if you have any ideas about it.
>>> Thanks.
>>>
>>> Tom
>>> ---------------------------------------------------------------------------
> --
>>> Tom McDermott                               305 Lennon Hall
>>> Systems Administrator                       Email: address@hidden
> u
>>> Earth Sciences Dept.                        Phone: (585) 395-5718
>>> SUNY College at Brockport           Fax: (585) 395-2416
>>>
>> --
>> ****************************************************************************
>> Unidata User Support                                    UCAR Unidata Program
>> (303)497-8643                                                  P.O. Box 3000
>> address@hidden                                   Boulder, CO 80307
>> ----------------------------------------------------------------------------
>> Unidata WWW Service              http://my.unidata.ucar.edu/content/support 
>> ----------------------------------------------------------------------------
>> NOTE: All email exchanges with Unidata User Support are recorded in the
>> Unidata inquiry tracking system and then made publicly available
>> through the web.  If you do not want to have your interactions made
>> available in this way, you must let us know in each email you send to us.
>>
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.