[GRASS5] grass-5.0.0 on SGI IRIX 6.5

Andreas Lange Andreas.C.Lange at GMX.de
Mon Dec 9 11:40:57 EST 2002


Hi,

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)
I can not build PNGdriver with latest GD lib, as i am unable to compile
GD myself on IRIX (the freeware version from SGI is 1.8.4).

- 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"
togl.c: In function `SetupOverlay':
togl.c:1261: `TkWindow' undeclared (first use in this function)
togl.c:1261: (Each undeclared identifier is reported only once
togl.c:1261: for each function it appears in.)
togl.c:1261: `winPtr' undeclared (first use in this function)
togl.c:1261: parse error before ')' token
togl.c: In function `Togl_MakeWindowExist':
togl.c:1382: `TkWindow' undeclared (first use in this function)
togl.c:1382: `winPtr' undeclared (first use in this function)
togl.c:1382: parse error before ')' token
togl.c:1383: `winPtr2' undeclared (first use in this function)
togl.c: In function `ToglCmdDeletedProc':
togl.c:1899: `TkWindow' undeclared (first use in this function)
togl.c:1899: `winPtr' undeclared (first use in this function)
togl.c:1899: parse error before ')' token

IMHO somehow the including of the header tkInt.h is broken, i have
installed Tcl 8.0.4 and Tk 8.0.4 (both from SGI IRIX freeware, there is
no newer version). 

my configure line:
./configure --prefix=/opt --with-libs=/usr/freeware/lib32 \
--with-includes=/usr/freeware/include --with-odbc=no --with-motif=yes \
--with-tcltk-libs=/usr/freeware/lib32 \
--with-tcltk-includes=/usr/freeware/include

If i get nviz to compile, i'll prepare a binary package and upload. 

Andreas
-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850




More information about the grass-dev mailing list