红联Linux门户
Linux帮助

Redhat 5.4 server上的 expect 安装问题

发布时间:2010-11-08 19:43:35来源:红联作者:没窝的老鼠
我从网站上查找了不少资料,大体都是大同小异,这个不做累赘叙述。
首先,我检查了tcl安装情况,如下
[root@laserver base]# rpm -qa | grep tcl
tclx-8.4.0-5.fc6
tcl-devel-8.4.13-4.el5
tcl-8.4.13-4.el5
[root@laserver base]# ls
expect-5.43.0-5.1.src.rpm tcl-devel-8.4.13-4.el5.i386.rpm
[root@laserver base]# ls -l tcl-devel-8.4.13-4.el5.i386.rpm
-rwxr--r-- 311 root root 1040855 Apr 7 2009 tcl-devel-8.4.13-4.el5.i386.rpm
接着我定位tcl开发包的安装的位置,如下(命令显示内容太长省略了)
[root@laserver base]# rpm -qpl tcl-devel-8.4.13-4.el5.i386.rpm | more
然后rpm释放出来expect的源码包
[root@laserver base]# rpm -ivh expect-5.43.0-5.1.src.rpm
找到它释放出来的 *.tar.gz源码包
[root@laserver base]# cd /usr/src/redhat/SOURCES/
解压源码包
[root@laserver SOURCES]# tar expect-5.43.0.tar.gz
[root@laserver SOURCES]# ls
expect-5.32.2-fixcat.patch expect-5.43
expect-5.32.2-random.patch expect-5.43.0-cfg-setpgrp.patch
expect-5.38.0-lib-spec.patch expect-5.43.0-log_file.patch
expect-5.38.0-spawn-43310.patch expect-5.43.0.tar.gz
expect-5.39.0-libdir.patch unbuffer-child-flush-143963.patch
进入expect-5.43目录进行make的时候出了很多错误。
然后从网上看说需要提前打补丁,而且我发现本来就出现了很多patch文件,于是我挨个把上边的几个patch文件都给安装了。
安装expect-5.38.0-spawn-43310.patch的时候出现了一个问题:
[root@laserver expect-5.43]# patch -Np1 -i ../expect-5.38.0-spawn-43310.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- tcltk-8.3.1/expect5.31/exp_chan.c.read Fri Nov 16 00:14:15 2001
|+++ tcltk-8.3.1/expect5.31/exp_chan.c Fri Nov 16 00:14:15 2001
--------------------------
File to patch:
问题1:这个File to patch我用来写什么?我原来没有安装任何的expect5.31啊?
于是我跳过了这一步。进行如下操作:
[root@laserver base]# cd expect-5.43 /*进入源码目录
运行命令(tcl的头文件和安装路径我核实是正确的)
[root@laserver expect-5.43]# ./configure --with-tcl=/usr/lib --with-tclinclude=/usr/include/tcl-private/generic
configuring Expect 5.43.0
checking for autoconf... yes
checking configure up to date... yes
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking shell to use within Make...
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking Tcl build library... -L/usr/lib -ltcl8.4 -ldl -lpthread -lieee -lm
checking for Tcl_CreateCommand... yes
checking if Tcl library build specification is valid... yes
checking for Tk configuration... configure: warning: Can't find Tk configuration definitions
checking for Tk_Init... no
checking if Tk library build specification is valid... no
checking whether the compiler (gcc -pipe) actually works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -pipe -E
checking if running LynxOS... no
checking for ANSI C header files... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking if running Mach... no
checking if running MachTen... no
checking if on Pyramid... no
checking if on Apollo... no
checking if on Interactive... no
checking stty to use... /bin/stty
checking if stty reads stdout... no
checking if running Solaris... no
checking for sin... no
checking for Tcl private headers... found in /usr/include/tcl-private/generic
checking type of library to build... unshared
creating cache .././config.cache
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking Tcl build library... -L/usr/lib -ltcl8.4 -ldl -lpthread -lieee -lm
checking for Tcl_CreateCommand... yes
checking if Tcl library build specification is valid... yes
checking whether the compiler (gcc -pipe) actually works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -pipe -E
checking if running LynxOS... no
checking for Tcl private headers... found in /usr/include/tcl-private/generic
checking if we are running Linux... yes
checking for strchr... yes
checking for stdlib.h... yes
checking type of library to build... both shared and unshared
updating cache .././config.cache
creating ./config.status
creating Makefile
creating pkgIndex
creating tcldbgcf.h
Begin tests for function/library dependencies. Tests may be repeated
up to three times. First test is for building Expect's shared library.
Second set is for building with Tcl. Third is for building with Tk.
checking for gethostname... yes
checking for gethostname... yes
checking for gethostname... yes
checking for socket... yes
checking for socket... yes
checking for socket... yes
checking for select... yes
checking for select... yes
checking for select... yes
checking for getpseudotty... no
checking for getpseudotty in -lseq... no
checking for getpseudotty... no
checking for getpseudotty in -lseq... no
checking for getpseudotty... no
checking for getpseudotty in -lseq... no
checking for openpty... no
checking for openpty in -lutil... yes
checking for openpty... no
checking for openpty in -lutil... yes
checking for openpty... no
checking for openpty in -lutil... yes
checking if running Sequent running SVR4... no
checking for sys/sysmacros.h... yes
checking for stdlib.h... yes
checking for inttypes.h... yes
checking for varargs.h... no
checking for unistd.h... yes
checking for sys/stropts.h... yes
checking for sys/sysconfig.h... no
checking for sys/fcntl.h... yes
checking for sys/select.h... yes
checking for sys/time.h... yes
checking for sys/ptem.h... no
checking for sys/strredir.h... no
checking for sys/strpty.h... no
checking for sys/bsdtypes.h... no
checking for memmove... yes
checking for sysconf... yes
checking for strftime... yes
checking for strchr... yes
checking for timezone... yes
checking for siglongjmp... yes
checking for memcpy... yes
checking if WNOHANG requires _POSIX_SOURCE... no
checking if any value exists for WNOHANG... yes
checking union wait... yes
checking mask type of select... none
checking if signals need to be re-armed... no
checking if on Convex... no
checking if on NeXT... no
checking if on HP... no
checking sane default stty arguments...
checking for HP style pty allocation... no
checking for HP style pty trapping... no
checking for AIX new-style pty allocation... no
checking for SGI old-style pty allocation... no
checking for SCO style pty allocation... no
checking for SVR4 style pty allocation... yes
checking for libpts=-lpt in -lpt... no
checking for ptsname... yes
checking for ptsname... (cached) yes
checking for ptsname... (cached) yes
checking for OSF/1 style pty allocation... no
checking for tcgetattr... yes
checking for tcsetattr... yes
checking for struct sgttyb... no
checking for struct termio... yes
checking for struct termios... yes
checking if TCGETS or TCGETA in termios.h... no
checking if TIOCGWINSZ in termios.h... no
checking for Cray-style ptys... no
checking for select... yes
checking for poll... yes
checking event handling... via select
checking for _getpty... no
checking for getpty... no
checking whether setpgrp takes no argument... yes
checking for SV-style timezone... yes
checking for Tk private headers... checking for tk.h... no
configure: warning: Can't find Tk private headers /*由于我没有安装Tk(Tcl的GUI组件)包,
configure: warning: No X based programs will be built /*我的系统没有X窗口系统库,这些都没有影响
WARNING: Can't find Tk headers or library. You can still
build expect, but not expectk. See Expect's README for
information on how to obtain Tk. If Tk is installed, see
Expect's INSTALL on how to tell configure where Tk is
installed.
checking for long file names... yes
checking for type of library to build... unshared
creating ./config.status
creating Makefile
creating pkgIndex
creating expect_cf.h
configuring in testsuite
running /bin/sh ./configure --with-tcl=/usr/lib --with-tclinclude=/usr/include/tcl-private/generic --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for Tcl configuration... (cached) found /usr/lib/tclConfig.sh
checking Tcl build library... -L/usr/lib -ltcl8.4 -ldl -lpthread -lieee -lm
checking for Tcl_CreateCommand... (cached) yes
checking if Tcl library build specification is valid... yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... yes
checking whether the compiler (gcc) actually works... yes
checking how to run the C preprocessor... (cached) gcc -pipe -E
checking if running LynxOS... (cached) no
checking for Tcl private headers... (cached) found in /usr/include/tcl-private/generic
updating cache .././config.cache
creating ./config.status
creating Makefile
直接make 还是出现了很多如下错误:
[root@laserver expect-5.43]# make
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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:28: warning: incompatible implicit declaration of built-in function âexitâ
exp_main_exp.c:33: warning: incompatible implicit declaration of built-in function âexitâ
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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 -o shared/exp_main_exp.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_command.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_command.c -o shared/exp_command.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" expect.c
expect.c: In function âexp_eval_with_one_argâ:
expect.c:346: warning: assignment discards qualifiers from pointer target type
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" expect.c -o shared/expect.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" pty_termios.c
pty_termios.c: In function âexp_getptymasterâ:
pty_termios.c:475: warning: incompatible implicit declaration of built-in function âstrcpyâ
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" pty_termios.c -o shared/pty_termios.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_inter.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_inter.c -o shared/exp_inter.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_regexp.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_regexp.c -o shared/exp_regexp.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_tty.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_tty.c -o shared/exp_tty.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_log.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_log.c -o shared/exp_log.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_sub.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_sub.c -o shared/exp_main_sub.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_pty.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_pty.c -o shared/exp_pty.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_trap.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_trap.c -o shared/exp_trap.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_console.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_console.c -o shared/exp_console.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_strf.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_strf.c -o shared/exp_strf.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_glob.c
exp_glob.c: In function âExp_StringCaseMatch2â:
exp_glob.c:113: warning: incompatible implicit declaration of built-in function âstrlenâ
exp_glob.c:117: warning: incompatible implicit declaration of built-in function âstrlenâ
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_glob.c -o shared/exp_glob.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_win.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_win.c -o shared/exp_win.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_clib.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_clib.c -o shared/exp_clib.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_closetcl.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_closetcl.c -o shared/exp_closetcl.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_memmove.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_memmove.c -o shared/exp_memmove.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_tty_comm.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_tty_comm.c -o shared/exp_tty_comm.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_select.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_select.c -o shared/exp_select.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_event.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_event.c -o shared/exp_event.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_chan.c
exp_chan.c: In function âexpWaitOnAnyâ:
exp_chan.c:526: warning: passing argument 2 of âwaitpidâ from incompatible pointer type
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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_chan.c -o shared/exp_chan.o ; \
fi
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" Dbg.c
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
if [ ! -d shared ] ; then \
mkdir shared ; \
else true; fi ; \
gcc -pipe -c -I. -I. -I/usr/include/tcl-private/generic -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\"" Dbg.c -o shared/Dbg.o ; \
fi
rm -f libexpect5.43.a
ar cr libexpect5.43.a exp_command.o expect.o pty_termios.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_console.o exp_strf.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_select.o exp_event.o exp_chan.o Dbg.o
ranlib libexpect5.43.a
gcc -pipe -Wl,--export-dynamic -o expect exp_main_exp.o libexpect5.43.a -L/usr/lib -ltcl8.4 -ldl -lpthread -lieee -lm -lutil
: expect
make[1]: Entering directory `/software/base/expect-5.43'
Making binaries in testsuite...
make[2]: Entering directory `/software/base/expect-5.43/testsuite'
make[2]: Nothing to be done for `binaries'.
make[2]: Leaving directory `/software/base/expect-5.43/testsuite'
make[1]: Leaving directory `/software/base/expect-5.43'
文章评论

共有 2 条评论

  1. 没窝的老鼠 于 2010-11-09 10:31:43发表:

    有没有人帮忙看一下啊,我上边发了那么多操作的信息,其实就是expect安装的时候,编译不过去,但是看运行configure脚本他的makefile等已经生成了阿,然后运行configure的其他信息我很多看不懂,只是发现没有error information. 求高手解答!!!1(5ty(

  2. Qnoer 于 2010-11-09 07:36:20发表:

    帮顶