richard@neabbs.UUCP (RICHARD RONTELTAP) (09/22/88)
Can anyone send me part 2 of the Pcomm 1.1 release in comp.unix.sources? The orginal got lost due to an error of the moderator. I can vaguely remember somebody mentioning this. Anyway, how about it? PLEASE... Mail first. Richard (...!mcvax!neabbs!richard)
rossw@nezsupp.icl.co.nz (Ross Wakelin) (10/05/88)
> >Has anyone gotten pcomm v1.1 to run under Xenix yet? Lots of people are complaining about the typedef chtype in pcomm 1.1, especially in SCO Xenix machines. We compiled pcomm on a straight V.2 box, not a problem. We compiled pcomm on a V.2 on top of BSD box, compiles ok, crashes when running, something to do with incompatible wait routines (yet to be investigated). We tried to compile pcomm on a box running Uniplus+ V.2 (tm ?) and it gave the various chtype errors mentioned. We looked in curses.h (/usr/include) and found that on the straight V.2 box, chtype was already typedeffed as a short int, but on the Uniplus+ implementation it was a union of structures. Our fix follows for the file misc.h . . . #ifdef OLDCURSES typedef char chtype #endif /* OLDCURSES */ #ifdef UNIPLUS /* hack fix to get over chtype incompatibility in curses.h */ #define chtype chartype typedef char chartype; #endif . . . Also note that the OLDCURSES def above does not have a trailing semi colon on the typedef, which may (?) cause your compiler to barf. Also note that the makefile should have the above def (UNIPLUS) added, or changed to SCO or XENIX as appropriate. pcomm also has some problems in cursor handling, but I haven't got to those yet. This fixed our problem, hope it helps with yours. Good luck. -- Ross Wakelin uucp: uunet!vuwcomp!nezsupp!rossw Unix Support Consultant rossw@nezsupp.icl.co.nz ICL (NZ) Ltd audio: +64 4 724 884 Wellington, NEW ZEALAND PO Box 394, Wellington, New Zealand