[GRASSLIST:2057] Re: Compiling grass5.0.0pre1 under Solaris 8???
Glynn Clements
glynn.clements at virgin.net
Wed Jul 4 21:56:14 EDT 2001
Lawrence Houston wrote:
> 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>
If that doesn't work: have you upgraded or re-installed
vendor-supplied headers since installing gcc? If so, try re-installing
gcc.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list