Xgrass compile problem

Scott Olt scott at ux1.cso.uiuc.edu
Fri Jun 4 19:27:11 EDT 1993


I'm trying to install GRASS 4.1 on a Decstation 5000 model 240 running
Ultrix 4.2A.  Everything compiled with no problems until this point:

cc -O     -I/pc/grass41/src/include  -c editor.c
ccom: Error: editor.c, line 142: W_OK undefined
          if ( access(directory, W_OK) == -1 ) {
      -------------------------------^
ccom: Error: editor.c, line 148: F_OK undefined
          if ( access(file, F_OK) != -1 ) {
      --------------------------^
ccom: Error: editor.c, line 233: R_OK undefined
          if ( stat(file, &sbuf) == -1 || (acstat = access(file, R_OK)) == -1 ) {
      ---------------------------------------------------------------^
ccom: Error: editor.c, line 310: R_OK undefined
          if ( stat(file, &sbuf) == -1 || (acstat = access(file, R_OK)) == -1 ) {
      ---------------------------------------------------------------^
make[1]: *** [OBJ.dec/editor.o] Error 1
make[1]: Leaving directory `/pc/grass41/src/xgrass/libes/Xgi'
make: *** [all] Error 1
GISGEN failure at STEP: src/xgrass/libes

Has anyone else encountered this problem?  Where are W_OK, F_OK and R_OK
supposed to be defined?

Thanks in advance...

--
Scott Olt                                               scott at ux1.cso.uiuc.edu  
Illinois State Geological Survey                      olt at elwood.isgs.uiuc.edu



More information about the grass-user mailing list