[GRASS5] compiling on solaris

Markus Neteler neteler at geog.uni-hannover.de
Wed Mar 21 04:28:41 EST 2001


Helena,

this is a specific Solaris2.8 problem. On Solaris2.6 the
  __builtin_va_alist
was defined here:
src/include/varargs.h

What you can do:

cd src/libes/gis/
edit error.c

add:

#ifdef sun
#include <varargs.h>
#endif

I have applied this change to CVS, it should not cause problems on
other platforms (tested on Solaris2.6 and Linux).

Hope this helps,

 Markus


On Tue, Mar 20, 2001 at 02:00:32PM -0600, Helena wrote:
> Markus,
> this is the error message for the Solaris8 compile
> 
> Helena
> 
> -----------------------------------------------------------
> I did what was suggested, here is the error messages
> SKAGIT>gmake5
>   SRC     = /home2/usr/local/grass/src
>   CMD     = /home2/usr/local/grass/src/CMD
>   HEADER  = head.sparc-sun-solaris2.8
>   ARCH    = sparc-sun-solaris2.8
>   GISBASE = /home2/usr/local/grass/dist.sparc-sun-solaris2.8
>   VERSION = 5.0beta12 February 2001
> #################################################################
> /home2/usr/local/grass/src/libes/gis
>   make -f OBJ.sparc-sun-solaris2.8/make.rules
> 
> gcc -g -O2 -I/home2/usr/local/grass/src/include  -I/usr/include  -c error.c -o
> OBJ.sparc-sun-solaris2.8/error.o
> error.c: In function `G_fatal_error':
> error.c:72: `__builtin_va_alist' undeclared (first use in this function)
> error.c:72: (Each undeclared identifier is reported only once
> error.c:72: for each function it appears in.)
> error.c: In function `G_warning':
> error.c:87: `__builtin_va_alist' undeclared (first use in this function)
> *** Error code 1
> make: Fatal error: Command failed for target `OBJ.sparc-sun-solaris2.8/error.o'
> 
> Dave
> 
> Markus Neteler wrote:
> 
> > Helena,
> >
> > On Tue, Mar 20, 2001 at 11:58:17AM -0500, Helena Mitasova wrote:
> > > We have tried to compile the latest CVS snapshot (March 19) on
> > > Sun Ultra 10 with Solaris 8 and we got lot of errors - mostly
> > > due to the following:
> > > gcc: /home2/usr/local/grass/src/libes/LIB.sparc-sun-solaris2.8/libgis.a:
> >
> > could you try
> >
> > cd grass/src/libes/gis
> > gmake5
> >
> > and tell me the error? I am quite sure that flate.c breaks (this indicates
> > that zlib/headers are not found.
> >
> > Just a guess
> >
> >  Markus
> >
> > PS: I'm back here...
> >
> > ----------------------------------------
> > If you want to unsubscribe from GRASS Development Team mailing list write to:
> > minordomo at geog.uni-hannover.de with
> > subject 'unsubscribe grass5'
> 
> 
> ---------------------------------------- 
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'
> 

-- 
Markus Neteler *  University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494  Fax: -3984

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list