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.
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.
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