home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!news!marc
- From: marc@wrs.com (Marc Shepard)
- Subject: porting expect to an HP
- Message-ID: <Bs895J.9sJ@wrs.com>
- Summary: help...
- Sender: news@wrs.com (News Manager)
- Nntp-Posting-Host: ohio
- Organization: Wind River Systems, Inc.
- Distribution: usa
- Date: Fri, 31 Jul 1992 00:24:54 GMT
- Lines: 50
-
- If anyone could explain how to port expect to an HP, I'd appreciate it. I'm running
- HP-UX 8.0.7 on an HP9000/720.
-
- I tried to build expect from the files in sprite.berkeley.edu. At first
- tcl would not build. It complained that the line (632) in tclCmdAH.c which said
- if(!WIFEXITED(status))
- had incompatable pointer types.
-
- I finally gave up and got a newer release of tcl (version 6.3). This
- built just fine on the HP. So now I need just build expect. Unfortunatly
- when I try to build expect I get error messages:
- cc: "main.c", line 77: error 1574: Unknown size for "old_buf".
- cc: "main.c", line 77: error 1574: Unknown size for "new_buf".
- cc: "main.c", line 84: error 1588: "TIOCGETP" undefined.
- cc: "main.c", line 88: error 1549: Modifiable lvalue required for assignment operator.
- cc: "main.c", line 88: error 1530: Undefined struct or union.
- cc: "main.c", line 89: error 1530: Undefined struct or union.
- cc: "main.c", line 89: error 1530: Undefined struct or union.
- cc: "main.c", line 89: error 1588: "RAW" undefined.
- cc: "main.c", line 89: error 1588: "ECHO" undefined.
- cc: "main.c", line 89: error 1559: Complement operator takes integral operand.
- cc: "main.c", line 89: error 1549: Modifiable lvalue required for assignment operator.
- cc: "main.c", line 90: error 1588: "TIOCSETP" undefined.
- cc: "main.c", line 105: error 1588: "TIOCSETP" undefined.
-
- What is even more puzzling is that if I compile with -DSYSV3 (I assume this is incorrect
- since I'm running HP-UX) then it compiles main.c o.k. (well, at leat it doesn't complain),
- but I get the follwoing errors later:
- cc: "pty_bsd.c", line 106: error 1574: Unknown size for "b".
- cc: "pty_bsd.c", line 107: error 1574: Unknown size for "tc".
- cc: "pty_bsd.c", line 108: error 1574: Unknown size for "lc".
- cc: "pty_bsd.c", line 109: error 1574: Unknown size for "win".
- cc: "pty_bsd.c", line 116: error 1588: "TIOCGETP" undefined.
- cc: "pty_bsd.c", line 117: error 1588: "TIOCGETC" undefined.
- cc: "pty_bsd.c", line 118: error 1588: "TIOCGETD" undefined.
- cc: "pty_bsd.c", line 119: error 1588: "TIOCGLTC" undefined.
- cc: "pty_bsd.c", line 120: error 1588: "TIOCLGET" undefined.
- cc: "pty_bsd.c", line 121: error 1588: "TIOCGWINSZ" undefined.
- cc: "pty_bsd.c", line 126: error 1588: "TIOCSETP" undefined.
- cc: "pty_bsd.c", line 127: error 1588: "TIOCSETC" undefined.
- cc: "pty_bsd.c", line 128: error 1588: "TIOCSLTC" undefined.
- cc: "pty_bsd.c", line 129: error 1588: "TIOCLSET" undefined.
- cc: "pty_bsd.c", line 130: error 1588: "TIOCSETD" undefined.
- cc: "pty_bsd.c", line 131: error 1588: "TIOCSWINSZ" undefined.
-
- Any help would be greatly appreciated.
-
- Thanks in advance,
- Marc Shepard
- marc@wrs.com
-