GRASS on SGI

Jacques Bouchard bouchard at onera.fr
Mon Aug 3 04:44:45 EDT 1998


Hi,

I have compiled, on SGI IRIX 6.2 (I could do the same thing
under IRIX 5.3 or 6.4), all the modules of grass_src421v18b
distributed by Markus Neteler.

I had to correct a few things in the source files, and these
corrections could be incorporated in the future source
distribution of GRASS by Markus Neteler.
The correction listing is attached.

The result can be downloaded from:

ftp://ftp.onera.fr/incoming/xtmp/grass42_bin18b_sgi62.tar.gz

If someone wants to distribute it, he is welcome as it will be
removed in 7 days.

Bye

Jacques Bouchard




In src/imagery/i.points:
diff mark.c.orig mark.c
71c71
<     int screen();
---
>     int Screen();
78c78
<       OTHER (screen, &use),
---
>       OTHER (Screen, &use),
160c160
< screen (x,y,button)
---
> Screen (x,y,button)

In src.alpha/misc/m.in.stf1.db3:
diff m.in.stf1.db.c.orig m.in.stf1.db.c     
12a13
> #include <string.h>

In src.alpha/misc/m.in.pl94.db3:
diff m.in.pl94.db.c.orig m.in.pl94.db.c     
11a12
> #include <string.h>

In src.alpha/imagery/i.ortho.photo/photo.2target:
diff mark.c.orig mark.c     
93c93
<     int screen();
---
>     int Screen();
100c100
<       OTHER (screen, &use),
---
>       OTHER (Screen, &use),
211c211
< screen (x,y,button)
---
> Screen (x,y,button)

In src.alpha/imagery/i.vpoints:
diff mark.c.orig mark.c     
73c73
<     int screen();
---
>     int Screen();
80c80
<       OTHER (screen, &use),
---
>       OTHER (Screen, &use),
162c162
< screen (x,y,button)
---
> Screen (x,y,button)

In src.alpha/raster/r.affinity/inter:
diff classify.c.orig classify.c     
216c216
< //fprintf(stderr,"xx: %f",xx);
---
> /*fprintf(stderr,"xx: %f",xx);*/
221c221
< //fprintf(stderr,"PP: %lf",PP);
---
> /*fprintf(stderr,"PP: %lf",PP);*/

('//' is not a standard comment)

In src.alpha/raster/r.nntool:
diff nntool.c.orig nntool.c     
192,193d191
<    short *seed48();
<    long lrand();

In src.contrib/SDTS/mapdev/v.sdts.dq.cp/cmd:
diff main.c.orig main.c     
27a28
> #include <string.h>

In src.garden/answers/raster/r.fill.dir/cmd:
diff mp.h.orig mp.h     
95d94
< void pow ();

In src.garden/grass.rim/v.db.rim/cmd:
diff Gmakefile.orig Gmakefile     
3c3
< LDFLAGS = -Bstatic
---
> #LDFLAGS = -Bstatic

In src.garden/grass.rim/v.db.rim/inter:
diff Gmakefile.orig Gmakefile     
8c8
< LDFLAGS = -Bstatic
---
> #LDFLAGS = -Bstatic

In src/CMD/lists:
diff GRASS.orig GRASS
313,314c313,314
< src.alpha/raster/r.tiff
< ##src.alpha/raster/r.tiff.old - r.tiff.old uses local libtiff
---
> ##src.alpha/raster/r.tiff
> src.alpha/raster/r.tiff.old

In src.alpha/raster/r.nntool:
mistral 32# diff common.h.orig common.h
50,51c50,51
< #define UNIX_ATT         0
< #define UNIX_BER         1
---
> #define UNIX_ATT         1
> #define UNIX_BER         0

I used the GNU make and not the SGI make because at least one
makefile wouldn't work (unfortunately I can't remember which).

And in src/CMD/head, I didn't used the original "sgi" file,
but one that is not very different from "linux":

CC                  = cc
FC                  = f77
LEX                 = lex
YACC                = yacc
ARCH                = sgi
 
GISBASE             = /usr/local/grass42
UNIX_BIN            = /usr/local/bin
 
DEFAULT_DATABASE    = 
DEFAULT_LOCATION    = 
 
COMPILE_FLAGS       = -O2 -cckr
LDFLAGS             = -Wl,-s
 
XCFLAGS             = -D_NO_PROTO
XLDFLAGS            =
XINCPATH            = -I/usr/X11R6/include 
XMINCPATH           = -I/usr/X11R6/include
XLIBPATH            = -L/usr/X11R6/lib
XTLIBPATH           = -L/usr/lib
XMLIBPATH           = -L/usr/lib
XLIB                = -lX11
XTLIB               = -lXt
XMLIB               = -lXm
XEXTRALIBS          =
 
TERMLIB             =
CURSES              = -lcurses $(TERMLIB)
MATHLIB             = -lm
LIB_MALLOC          = -lmalloc
 
#                   LIBRULE = ar ruv $@ $?
#                   LIBRULE = ar ruv $@ $?; ranlib $@
#                   LIBRULE = ar ruv $@ $?; ar ts $@
#                   LIBRULE = ar rc $@ `lorder $(OBJ) | tsort`
LIBRULE             = ar ruv $@ $?
 
USE_TERMIO          = -DUSE_TERMIO
USE_MTIO            = -DUSE_MTIO
USE_FTIME           =
DIGITFLAGS          = -DUSE_SETREUID -DUSE_SETPRIORITY
VECTLIBFLAGS        =
GETHOSTNAME         = -DGETHOSTNAME_OK



More information about the grass-user mailing list