[GRASSLIST:2065] Re: Compiling grass5.0.0pre1 under Solaris 8???

Lawrence Houston grass at boyd.geog.mcgill.ca
Thu Jul 5 08:05:20 EDT 2001


On Thu, 5 Jul 2001, it was written:

> > Having troubles compiling grass5.0.0pre1 under Solaris 8 (Intel) using
> > SUN's Companion (04/01).  LIBGIS fails within error.c:
> >
> > --------------------------------------------------------------------------------
> > gcc -g -O2  -I/opt/sfw/include -I/opt/grass5/grass5.0.0pre1/src/include  -I/usr/include  -c error.c -o OBJ.i386-pc-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.i386-pc-solaris2.8/error.o'
> > --------------------------------------------------------------------------------
>
> Apparently this can occur when gcc tries to use vendor-supplied
> headers in preference to its own (typically in the directory
> /usr/lib/gcc-lib/<platform>/<version>/include).
>
> Try removing all occurrences of -I/usr/include from the file
> src/CMD/head/head.<platform>

Glynn:

Thanks very much since removing all occurrences of -I/usr/include from
head.i386-pc-solaris2.8 has done the trick, I now have grass5.0.0pre1
built under Solaris 8 (Intel)!  There were also warnings about conflicts
between the System TERMLIB and NCURSES, although I those may NOT be
critical since full-screen cursor movement appears to "work"?

I thought using the gcc (2.95.2) included in SUN's Companion would be an
quick way to build GRASS under Solaris 8, did NOT anticipate conflicts
with the existing System "stuff"???

Lawrence Houston  -  (grass at boyd.geog.mcgill.ca)



More information about the grass-user mailing list