Help .. Problem in starting monitor

I am using GRASS4.0 on UNIX SVR 4.0 with X11R4 and OPENLOOK.
I downloaded the files from moon and have compiled them on this
system. The following changes were made during compilation.

* In directory display/devices/XDRIVER
   file Box-abs.c
   line no 60 /usr/include/X11/Xos.h
   Error Cannot find include file <strings.h>

   -DSYSV included at command line, to use SYSV header files

* In directory display/devices/XDRIVER
   Ld Error -lX11 not found

   - lX11 replaced by
  /usr/X/lib/libX11.so /usr/X/lib/Xol.so /usr/X/lib/libXt.so -lnsl -lc
   as suggested by X manual at our site.

I was able to execute the complete script, without any problem.
However i have not been able to use GRASS.

i am running it on a local-machine on which all the grass software, as
well as X software is residing. I am executing grass4.0 under X and
openlook.

Fifo's are all setup.

When i give d.mon command from grass4.0 prompt, and try to start
x0, it fails with the following message.

Error - Could not complete locking process for monitor <x0>
Lock file is

Some of the programmes, like g.help is executing fine.
Looking for help,
Thanks.

Prabhat

= = = = = = = = = = = = =

_________________________________________________________________________
/\ \
\_| _/_/ _/ _/_/_/ _/_/_/_/ Prabhat K Vaish |
  | _/ _/ _/ _/ _/ _/ National Informatics Centre |
  | _/ _/ _/ _/ _/ 'A' Block, CGO Complex |
  | _/ _/ _/ _/ _/ Lodi Road, New Delhi - 110003 |
  | _/ _/ _/ _/ _/ India |
  | _/ _/_/ _/ _/ _/ |
  | _/ _/ _/_/_/ _/_/_/_/ << I SPEAK FOR MYSELF >> |
  | |
  | Fax : 91-11-4362489 |
  | THE IT SUPPORT PROFESSIONALS Email : uunet!nicnet!GISD!pkv |
  | Voice : 91-011-4361133 |
  | _____________________________________________________________________|__
   \_/_______________________________________________________________________/