carroll@sunc7.cs.uiuc.edu (Alan M. Carroll) (09/22/90)
Has anyone gotten ksh88d to work on an HP 9000/300 series running HPUX 7.0 and YP? I had to make a number of code fixes to get it to compile, but it ran fine initially. After actually enabling YP and running the servers, ksh would immediately lock up after starting, into an unkillable process. Debugging attempts led to a completely hung system. My best guess is that it is failing in trying to get a lock on the history file, but why YP should affect that, I don't know. Compiling with YELLOWP undefined gives the same symptoms. Source Fixes: + Removed #define setpgid. HPUX has setpgid, but not getpgid. The #define collides with a function prototype in unistd.h + Removed #define for waitpid for the same reason. + Undefined SA_NOCLDSTOP, since HPUX has that but not SA_NOCLDWAIT. sigflag() doesn't exist either. + Added define for PATH_MAX. Although present in the include files, it is under conditionals and isn't actually defined for the ksh compilation. + Defined TCSADFLUSH to be TCSAFLUSH. HPUX has the latter, but not the former. + Changed the definition of HZ to be 50 instead of CLK_TCK. This is defined in time.h, but for other reasons ksh includes times.h instead.