Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Install expect -5.43 on redhat AS 3 when "make" appear "exp_main_exp.c:32: error"

58 views
Skip to first unread message

tobetcl

unread,
Mar 30, 2009, 10:20:55 PM3/30/09
to
I want to install expect on my old pc

My os type:
-------------------------------
Linux localhost.localdomain 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27
EDT 2005 i686 i686 i386 GNU/Linux
-----------------------------

first:
install ActiveTcl8.6.0.0b1.289006-linux-ix86-threaded.tar.gz

next:
install expect-5.43

./configure --with-tclconfig=/opt/ActiveTcl-8.6/lib/ --with-tkconfig=/
opt/ActiveTcl-8.6/lib/ --with-tclinclude=/opt/ActiveTcl-8.6/include/

when make,it appears :
[root@localhost expect-5.43]# make
gcc -c -I. -I. -I/opt/ActiveTcl-8.6/include -I/usr/X11R6/include -
DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/usr/local/lib/expect5.43\" -
DEXECSCRIPTDIR=\"/usr/local/lib/expect5.43\" -DTCL_DEBUGGER -
DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\""
exp_main_exp.c
exp_main_exp.c: In function `main':
exp_main_exp.c:27: error: structure has no member named `result'
exp_main_exp.c:32: error: structure has no member named `result'
make: *** [exp_main_exp.o] error 1

i google the web,find nothing,
Tanks for any suggestion.

Larry W. Virden

unread,
Mar 31, 2009, 7:02:52 AM3/31/09
to
On Mar 30, 10:20 pm, tobetcl <leader...@gmail.com> wrote:
> I want to install expect on my old pc

I've not seen that error before. What _I_ would do in your situation,
unless there is an urgent need to deal with expect source, is to just
run

teacup install Expect

Do you have to use the older version of Expect? If not, by using that
teacup command, you'll get the latest version.

Mark Janssen

unread,
Mar 31, 2009, 7:39:49 AM3/31/09
to

The error you are getting is very likely introduced by the removal of
direct access to the result field in a Tcl_Interp (http://www.tcl.tk/
cgi-bin/tct/tip/330.html).
If you must compile from sources you could try the CVS version of
Expect from http://expect.sourceforge.net/ otherwise the other
suggestion in this thread to use teacup to install expect is the
easiest course of action.

Mark

0 new messages