kluft@hpcuhb.HP.COM (Ian Kluft) (06/16/88)
I have spacewars running now on an HP9000/825 with HP-UX. HP-UX is a System V with almost all the BSD features as well so I had the dbm library most SysV users are missing. However, there are a few things I had to do to get it to work. All the System V people will be interested to know that swcomm in the spacewar directory must be a named pipe (if you didn't have BSD or VMS compiling options on). Type mknod swcomm p and set its ownership and permissions so spacewar can use it. Also, possibly of interest to everyone, the bcopy() in spacewar's bfuncs.c has two arguments TRANSPOSED from BSD 4.2's libdbm bcopy(). I got this info from exchanging e-mail with another spacewar user. The proposed solution, which worked fine on my system here, was to change all occurrences of bcopy with bycopy in spacewar so it uses it's own function and doesn't fool ld. I changed all the occurrences with this command (though simpler ways to do it probably exist and would be welcomed) using the Bourne or Korn shell: for file in *.c *.h do echo '1,$s/bcopy/bycopy\nw\nq' | ed $file >/dev/null echo $file done Make sure to pick a directory for all the spacewar data files to exist (which may or may not be the same place as the source). Be sure to adjust all the pathnames in spacewar.h and anywhere else they may be found (sorry, can't remember them all). And when all that's done... look through your docs because it isn't all that user-friendly yet. Hmmm... maybe I need to make some help files... ------------------------------------------------------------ Ian Kluft RAS Lab hplabs!hprasor!kluft HP Network Systems Group kluft@hpda.hp.com Cupertino, CA ------------------------------------------------------------