Installing GRASS4.0 on an SGI workstation?

Hello,

I am trying to install GRASS4.0 on an SGI 4D/35TG workstation. When I
run the "GISGEN" command, I get a lot of prototype errors that look like
this:

        cc -O -I/work/i1a/GRASS4.0/src/libes -DUSE_TERMIO -c V_tty.c
accom: Error: V_tty.c, line 39: prototype parameter 2 type must have all qualifiers of actual arg (except`outermost`) and pointed to types must be compatible (ANSI 3.3.2.2,3.3.16.1)
           tstp_old = (int (*)()) signal(21 , ((SIG_PF)1) ); signal(21 ,tstp_old) ;
       ------------------------------------------------------------------------------------------^
accom: Error: V_tty.c, line 39: Argument 2 Type Doesn't Match prototype description; prototype: pointer to function returning void is different from actual: pointer to function returning int
           tstp_old = (int (*)()) signal(21 , ((SIG_PF)1) ); signal(21 ,tstp_old) ;
       ------------------------------------------------------------------------------------------^

Assuming that GRASS4.0 is supposed to build properly on an SGI 4D workstation,
does anyone have the src/CMD/head/head file that contains the proper flags for
this?

Thanks.
--
      o o o o o o o . . . ________________________________ _____=======_T___
    o _____ ||Wes Barris | | wes@msc.edu |
  .][__n_n_|DD[ ====|____ |Research Equipment Inc. dba | |(612) 626-8090 |
>(________|__|_[___/_____]_|Minnesota_Supercomputer_Center|_|_FAX: 626-1596_|_
_/oo OOOOOO o` ooo ooo 'o^o^o o^o^o` 'o^o o^o`
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
A programming language is low-level when its programs require attention to the irrelevant.