热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

Redhat5.4server上的expect安装问题

Redhat5.4server上的expect安装问题--Linux通用技术-Linux技术与应用信息,下面是详情阅读。
我从网站上查找了不少资料,大体都是大同小异,这个不做累赘叙述。
首先,我检查了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'
推荐阅读
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • 本文讨论了如何优化解决hdu 1003 java题目的动态规划方法,通过分析加法规则和最大和的性质,提出了一种优化的思路。具体方法是,当从1加到n为负时,即sum(1,n)sum(n,s),可以继续加法计算。同时,还考虑了两种特殊情况:都是负数的情况和有0的情况。最后,通过使用Scanner类来获取输入数据。 ... [详细]
  • 本文介绍了C++中省略号类型和参数个数不确定函数参数的使用方法,并提供了一个范例。通过宏定义的方式,可以方便地处理不定参数的情况。文章中给出了具体的代码实现,并对代码进行了解释和说明。这对于需要处理不定参数的情况的程序员来说,是一个很有用的参考资料。 ... [详细]
  • 本文介绍了OC学习笔记中的@property和@synthesize,包括属性的定义和合成的使用方法。通过示例代码详细讲解了@property和@synthesize的作用和用法。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • Mac OS 升级到11.2.2 Eclipse打不开了,报错Failed to create the Java Virtual Machine
    本文介绍了在Mac OS升级到11.2.2版本后,使用Eclipse打开时出现报错Failed to create the Java Virtual Machine的问题,并提供了解决方法。 ... [详细]
  • 本文讨论了使用差分约束系统求解House Man跳跃问题的思路与方法。给定一组不同高度,要求从最低点跳跃到最高点,每次跳跃的距离不超过D,并且不能改变给定的顺序。通过建立差分约束系统,将问题转化为图的建立和查询距离的问题。文章详细介绍了建立约束条件的方法,并使用SPFA算法判环并输出结果。同时还讨论了建边方向和跳跃顺序的关系。 ... [详细]
  • 本文介绍了MyBioSource转甲状腺素蛋白定量检测ELISA试剂盒的应用方法及特点。ELISA法作为一项新技术在免疫诊断中的应用范围不断扩大,不仅适用于多种病原微生物引起的传染病、非传染病的免疫诊断,也可用于大/小分子抗原的定量检测。ELISA法具有灵敏、特异、简单、快速、稳定及易于自动化操作等特点,是一种早期诊断的良好方法,也可用于血清流行病学调查。MyBioSource转甲状腺素蛋白定量检测ELISA试剂盒使用方法包括对血清和血浆的操作要求。 ... [详细]
  • Android Studio Bumblebee | 2021.1.1(大黄蜂版本使用介绍)
    本文介绍了Android Studio Bumblebee | 2021.1.1(大黄蜂版本)的使用方法和相关知识,包括Gradle的介绍、设备管理器的配置、无线调试、新版本问题等内容。同时还提供了更新版本的下载地址和启动页面截图。 ... [详细]
  • 本文介绍了一种划分和计数油田地块的方法。根据给定的条件,通过遍历和DFS算法,将符合条件的地块标记为不符合条件的地块,并进行计数。同时,还介绍了如何判断点是否在给定范围内的方法。 ... [详细]
  • 本文讲述了作者通过点火测试男友的性格和承受能力,以考验婚姻问题。作者故意不安慰男友并再次点火,观察他的反应。这个行为是善意的玩人,旨在了解男友的性格和避免婚姻问题。 ... [详细]
  • 安卓select模态框样式改变_微软Office风格的多端(Web、安卓、iOS)组件库——Fabric UI...
    介绍FabricUI是微软开源的一套Office风格的多端组件库,共有三套针对性的组件,分别适用于web、android以及iOS,Fab ... [详细]
  • 本文介绍了多因子选股模型在实际中的构建步骤,包括风险源分析、因子筛选和体系构建,并进行了模拟实证回测。在风险源分析中,从宏观、行业、公司和特殊因素四个角度分析了影响资产价格的因素。具体包括宏观经济运行和宏经济政策对证券市场的影响,以及行业类型、行业生命周期和行业政策对股票价格的影响。 ... [详细]
  • 宁德时代与第四范式达成合作,将利用第四范式的AI技术,打造规模化的人工智能平台,并将AI技术融入电池生产线。通过全流程AI技术和低门槛的AI生产工具,宁德时代实现了对生产线数据的实时分析与决策。第四范式是一家人工智能技术与服务提供商,其先知平台降低了AI在各行业内的应用门槛。宁德时代是国内具备国际竞争力的动力电池制造商之一,专注于新能源汽车动力电池系统、储能系统的研发、生产和销售。 ... [详细]
  • 本文介绍了P1651题目的描述和要求,以及计算能搭建的塔的最大高度的方法。通过动态规划和状压技术,将问题转化为求解差值的问题,并定义了相应的状态。最终得出了计算最大高度的解法。 ... [详细]
author-avatar
手机用户2502880331
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有