[GRASS5] grass-5.0.0 on SGI IRIX 6.5

Glynn Clements glynn.clements at virgin.net
Mon Dec 9 16:50:23 EST 2002


Andreas Lange wrote:

> today i tried to recompile the grass source from september (5.0.0) on
> IRIX 6.5.17m.
> I experience two problems:
> - src/display/devices/PNGdriver/Gmakefile needs a $(MATHLIB) added to
> the LIBES line:
> LIBES = $(DRIVERLIB) $(GISLIB) $(MATHLIB)

Actually, $(MATHLIB) needs to be (conditionally) added to the
definition of GDLIB. The PNG driver doesn't use any math functions
directly; it's GD which uses them.

This change has recently been made to the CVS head version of
configure[.in].

> - nviz does not compile:
> (snippet from the output)
> gcc -I/opt/grass/grass-5.0.0/src/include -g -O2  
> -I/usr/freeware/include  -I/usr/freeware/include -I/usr/freeware/include
> -I/opt/grass/grass-5.0.0/src/libes/ogsf  -D_NO_PROTO -D__STDC__     -c
> togl.c -o OBJ.mips-sgi-irix6.5/togl.o
> <command line>: warning: "__STDC__" redefined
> <builtin>: warning: this is the location of the previous definition
> togl.c:163: parse error before "Sorry"
> togl.c:163: parse error before "will"

This is due to use of an unsupported Tcl/Tk version; however, someone
omitted the "#" from "#error", so the error message is unclear.

Try adding:

#elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==0 && TK_RELEASE_SERIAL==4
#  include "tkInt8.0.2.h"

at the top of togl.c.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list