Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!vsi1!altnet!uunet!ispi!jbayer From: jbayer@ispi.UUCP (id for use with uunet/usenet) Newsgroups: comp.unix.xenix Subject: Re: pcomm 1.1 on SCO Xenix Summary: pcomm on xenix Message-ID: <204@ispi.UUCP> Date: 4 Oct 88 14:06:05 GMT References: <157@libove.UUCP> Organization: Intelligent Software Products, Inc. Lines: 234 In article <157@libove.UUCP>, root@libove.UUCP (Jay M. Libove) writes: > > I am trying to build pcomm 1.1 on SCO Xenix 286 v2.2.1 with Development > System v2.2.1, and when I start compiling as follows: > > cc -g -O -Ml2e -c chg_dir.c > chg_dir.c > chg_dir.c(10) : error 54: expected `(' to follow `chtype' > chg_dir.c(12) : error 59: syntax error : `{' > [ all the rest deleted ] > > > Now, the first occurrence I can find of chtype is in the header file > misc.h where there are defines: (I _do_ define OLDCURSES; SCO Xenix > terminfo has incompletenesses and conflicts...) The SCO Xenix terminfo is complete. You DO have to declare a manifest define in the compile line: -DM_TERMINFO as well as include the correct library: -ltinfo. Using these options I have had no problems compiling and executing pcomm. I have seen a number of messages from people trying to get pcomm to compile under SCO Xenix. I have therefore included below a shar file which contains a makefile and a config.h for pcomm, patch level 3. Unpack this file after unpacking the pcomm files. Then compile it. Jonathan Bayer Intelligent Software Products, Inc. - - - - - - - - - - - - - cut here - - - - - - - - - - - - - #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'Makefile' <<'END_OF_FILE' X# PCOMM X# for generic System V Unix X# X# for systems without getcwd(3) or getopt(3) X# X#GETCWD = getcwd.o X#GETOPT = getopt.o X XCFLAGS = -Ox -DM_TERMINFO X#CURSES = -ltermlib -lcurses XCURSES = -lcurses XLDFLAGS = -s -ltinfo -lx XSHAR = shar -a XBIN = /usr/local/bin XCC = mcc X XPCOMM = $(GETCWD) $(GETOPT) admin.o chg_dir.o curses.o d_delete.o \ X d_lib.o d_manual.o d_menu.o d_print.o d_prompt.o d_revise.o \ X data_log.o di_delay.o di_win.o dial.o expand.o help.o info.o \ X init.o line_set.o list_dir.o ls_menu.o m_lib.o macro.o main.o \ X n_shell.o p_lib.o passthru.o pexit.o port.o redial.o s_axfer.o \ X s_gen.o s_menu.o s_modem.o s_prompt.o s_term.o s_tty.o screen.o \ X st_line.o strings.o terminal.o x_ascii.o x_batch.o x_extrnl.o \ X x_menu.o x_rcv.o x_send.o x_win.o xmodem.o X XINPUT = input.o vcs.o X Xall: pcomm pcomm_input install X Xpcomm: $(PCOMM) X $(CC) $(LDFLAGS) $(PCOMM) -o pcomm $(CURSES) X Xpcomm_input: $(INPUT) X $(CC) $(LDFLAGS) $(INPUT) -o pcomm_input $(CURSES) X Xinstall: X cp pcomm $(BIN) X# rm pcomm X cp pcomm_input $(BIN) X# rm pcomm_input X Xlint: X lint -p -Dlint *.c X Xshar: X cat Doc > pcomm_sh.1 X $(SHAR) Readme Release.notes Makefile Pcomm.1 Pcomm.dial_dir \ X Pcomm.modem Pcomm.param Unixpc.shar config.h dial_dir.h misc.h \ X modem.h param.h status.h vcs.h xmodem.h > pcomm_sh.2 X $(SHAR) admin.c chg_dir.c curses.c d_delete.c d_lib.c d_manual.c \ X d_menu.c d_print.c d_prompt.c d_revise.c data_log.c di_delay.c \ X > pcomm_sh.3 X $(SHAR) di_win.c dial.c expand.c getcwd.c getopt.c help.c info.c \ X init.c input.c line_set.c list_dir.c ls_menu.c > pcomm_sh.4 X $(SHAR) m_lib.c macro.c main.c n_shell.c p_lib.c passthru.c \ X pexit.c port.c redial.c > pcomm_sh.5 X $(SHAR) s_axfer.c s_gen.c s_menu.c s_modem.c s_prompt.c s_term.c \ X s_tty.c screen.c st_line.c strings.c terminal.c > pcomm_sh.6 X $(SHAR) vcs.c x_ascii.c x_batch.c x_extrnl.c x_menu.c x_rcv.c \ X > pcomm_sh.7 X $(SHAR) x_send.c x_win.c xmodem.c > pcomm_sh.8 X Xadmin.o: config.h dial_dir.h param.h Xchg_dir.o: config.h misc.h Xcurses.o: config.h misc.h Xd_delete.o: config.h dial_dir.h misc.h param.h Xd_lib.o: dial_dir.h param.h Xd_manual.o: config.h misc.h dial_dir.h Xd_menu.o: config.h dial_dir.h misc.h param.h Xd_print.o: config.h dial_dir.h misc.h Xd_prompt.o: config.h dial_dir.h misc.h Xd_revise.o: config.h dial_dir.h misc.h param.h Xdata_log.o: config.h misc.h param.h status.h Xdi_delay.o: config.h misc.h param.h Xdi_win.o: config.h dial_dir.h misc.h modem.h param.h Xdial.o: config.h dial_dir.h misc.h modem.h param.h Xexpand.o: config.h Xhelp.o: config.h misc.h Xinit.o: config.h misc.h status.h Xinput.o: config.h misc.h status.h vcs.h Xline_set.o: dial_dir.h param.h Xlist_dir.o: config.h misc.h Xls_menu.o: config.h dial_dir.h misc.h param.h Xm_lib.o: modem.h Xmacro.o: config.h misc.h param.h Xmain.o: config.h dial_dir.h modem.h param.h status.h Xn_shell.o: config.h Xp_lib.o: param.h Xpassthru.o: config.h misc.h Xpexit.o: config.h dial_dir.h misc.h param.h status.h Xport.o: config.h dial_dir.h modem.h Xredial.o: config.h dial_dir.h misc.h Xs_axfer.o: config.h misc.h param.h Xs_gen.o: config.h misc.h param.h Xs_menu.o: config.h misc.h Xs_modem.o: config.h misc.h modem.h Xs_prompt.o: config.h misc.h Xs_term.o: config.h misc.h param.h status.h Xs_tty.o: config.h misc.h modem.h Xscreen.o: config.h param.h status.h Xst_line.o: config.h dial_dir.h misc.h modem.h param.h status.h Xterminal.o: config.h dial_dir.h misc.h modem.h param.h status.h Xvcs.o: config.h vcs.h Xx_ascii.o: config.h misc.h param.h Xx_batch.o: config.h misc.h xmodem.h Xx_extrnl.o: config.h Xx_menu.o: config.h misc.h xmodem.h Xx_rcv.o: config.h dial_dir.h misc.h xmodem.h Xx_send.o: config.h dial_dir.h misc.h xmodem.h Xx_win.o: config.h dial_dir.h misc.h xmodem.h Xxmodem.o: config.h misc.h param.h xmodem.h END_OF_FILE if test 3727 -ne `wc -c <'Makefile'`; then echo shar: \"'Makefile'\" unpacked with wrong size! fi # end of 'Makefile' fi if test -f 'config.h' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'config.h'\" else echo shar: Extracting \"'config.h'\" \(1634 characters\) sed "s/^X//" >'config.h' <<'END_OF_FILE' X/* X * Various tunable parameters. This should appear before any other local X * header file. X */ X X/* Use the dialing routines specific to the AT&T Unix PC 7300/3b1 */ X#undef UNIXPC X X/* Older versions of curses(3) use termcap in lieu of terminfo */ X#undef OLDCURSES X X/* Use shared memory in lieu of a file for the virtual screen */ X#define SHAREDMEM X X/* Should a missing video attribute be promoted to standout? */ X#undef NOPROMOTE X X/* Use extra precautions if Pcomm is set-user-id or set-group-id */ X/* #undef SETUGID */ X#define SETUGID X X/* Should Pcomm make a log of all phone calls? */ X#undef LOG_CALLS X/* #define LOG_CALLS */ X X/* The name of the log file (if used). */ X#define LOGFILE "/usr/adm/phone.calls" X X/* Should long distance (toll) calls be limited to a specific group? */ X#undef LIMIT_LD X X/* The name of the privileged group for limiting long distance calls */ X#define GROUP_NAME "uucp" X X/* The path to the line printer program */ X#define LPR "/usr/bin/lp" X X/* The path to the "pretty" printer program (if none, use same as LPR) */ X#define LPRINT "/usr/bin/lp" X X/* The path to the default directory containing the Pcomm support files */ X#define DEFAULT_DIR "/usr/local/lib/pcomm" X X/* The path to the directory where UUCP locks are found */ X#define LOCK_DIR "/usr/spool/uucp" X X/* Do the lock files use ASCII encoded PID's? */ X#undef ASCII_PID X X/* Should Pcomm optimize redialing by keeping the TTY port open */ X/* #define KEEP_PORT */ X X/* Does the status line scroll up on "magic cookie" terminals? */ X#undef XMC_BROKE X X/* Does the alarm() system call work correctly with the wgetch() function? */ X#undef WGETCH_BROKE END_OF_FILE if test 1634 -ne `wc -c <'config.h'`; then echo shar: \"'config.h'\" unpacked with wrong size! fi # end of 'config.h' fi echo shar: End of shell archive. exit 0