Hi,
I am in Chapter 9 of the CLFS Guide (SVN-20070911-x86) and I am having
trouble building expect-5.43.0.
I've attached a file containing the entire dump from the build process, and
below is the specific error:
gcc -Wl,--export-dynamic -o expect_installed exp_main_exp.o -L -
lexpect5.43 -L/lib -ltcl8.4 -ldl -lieee -lm -lutil -Wl,-rpath,/lib:/lib
exp_main_exp.o: In function `main':
exp_main_exp.c:(.text+0x78): undefined reference to `Expect_Init'
exp_main_exp.c:(.text+0xbd): undefined reference to `exp_parse_argv'
exp_main_exp.c:(.text+0xc5): undefined reference to `exp_interactive'
exp_main_exp.c:(.text+0xd6): undefined reference to `exp_interpreter'
exp_main_exp.c:(.text+0xe0): undefined reference to `exp_cmdfile'
exp_main_exp.c:(.text+0xe9): undefined reference to `exp_cmdfile'
exp_main_exp.c:(.text+0xf5): undefined reference to `exp_interpret_cmdfile'
exp_main_exp.c:(.text+0x102): undefined reference to `exp_cmdfilename'
exp_main_exp.c:(.text+0x10b): undefined reference to `exp_cmdfilename'
exp_main_exp.c:(.text+0x117): undefined reference to
`exp_interpret_cmdfilename'
collect2: ld returned 1 exit status
make[1]: *** [expect_installed] Error 1
Can anyone help explain the -L above (with no path), and also let me know if
/tools/bin/gcc "knows" how to find libdl.a, libieee.a, etc.?
I do not know if this matters, but here are the current contents of the /lib
directory:
expect5.43/ libexpect5.43.a libtcl8.4.so* libtclstub8.4.a tcl8.4/
tclConfig.sh
Dave
rm -rf expect-5.43.0
Extracting expect-5.43.0.tar.gz
tar xzf expect-5.43.0.tar.gz
touch expect-5.43.0.extract
cd expect-5.43; sed -i '/EXP_LIB_SPEC=/s@/lib@@' configure
cd expect-5.43; for a in ../*.patch; do patch -p1 < $a; done
patching file exp_chan.c
patching file exp_command.h
patching file expect.c
touch expect-5.43.0.patched
cd expect-5.43; ./configure --prefix= --with-tcl=/lib --with-tclinclude=/include
configuring Expect 5.43.0
checking for autoconf... no
checking configure up to date... yes
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking build system type... i586-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 /lib/tclConfig.sh
checking Tcl build library... -L/sources/build-clfs/tcl/tcl8.4.15/unix -ltcl8.4
-ldl -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) actually works... yes
checking for a BSD compatible install... /tools/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -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 /include
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 /lib/tclConfig.sh
checking Tcl build library... -L/sources/build-clfs/tcl/tcl8.4.15/unix -ltcl8.4
-ldl -lieee -lm
checking for Tcl_CreateCommand... yes
checking if Tcl library build specification is valid... yes
checking whether the compiler (gcc) actually works... yes
checking for a BSD compatible install... /tools/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking if running LynxOS... no
checking for Tcl private headers... found in /include
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
configure: warning: No X based programs will be built
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 --prefix= --with-tcl=/lib
--with-tclinclude=/include --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for Tcl configuration... (cached) found /lib/tclConfig.sh
checking Tcl build library... -L/sources/build-clfs/tcl/tcl8.4.15/unix -ltcl8.4
-ldl -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 -E
checking if running LynxOS... (cached) no
checking for Tcl private headers... (cached) found in /include
updating cache .././config.cache
creating ./config.status
creating Makefile
touch expect-5.43.0.configure
cd expect-5.43; make
make[1]: Entering directory `/sources/build-clfs/expect/expect-5.43'
gcc -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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:355: 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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/lib/expect5.43\"
-DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\"
-DDFLT_STTY="\"sane\"" expect.c -o shared/expect.o ; \
fi
gcc -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -c -I. -I. -I/include -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/lib/expect5.43\" -DEXECSCRIPTDIR=\"/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 -Wl,--export-dynamic -o expect exp_main_exp.o libexpect5.43.a
-L/sources/build-clfs/tcl/tcl8.4.15/unix -ltcl8.4 -ldl -lieee -lm -lutil
-Wl,-rpath,/lib:/lib
: expect
make[2]: Entering directory `/sources/build-clfs/expect/expect-5.43'
Making binaries in testsuite...
make[3]: Entering directory `/sources/build-clfs/expect/expect-5.43/testsuite'
make[3]: Nothing to be done for `binaries'.
make[3]: Leaving directory `/sources/build-clfs/expect/expect-5.43/testsuite'
make[2]: Leaving directory `/sources/build-clfs/expect/expect-5.43'
make[1]: Leaving directory `/sources/build-clfs/expect/expect-5.43'
touch expect-5.43.0.make
cd expect-5.43; make SCRIPTS="" install
make[1]: Entering directory `/sources/build-clfs/expect/expect-5.43'
make[2]: Entering directory `/sources/build-clfs/expect/expect-5.43'
Making binaries in testsuite...
make[3]: Entering directory `/sources/build-clfs/expect/expect-5.43/testsuite'
make[3]: Nothing to be done for `binaries'.
make[3]: Leaving directory `/sources/build-clfs/expect/expect-5.43/testsuite'
make[2]: Leaving directory `/sources/build-clfs/expect/expect-5.43'
./mkinstalldirs /lib/expect5.43
if [ -s libexpect5.43.a ] ; then \
/tools/bin/install -c -m 644 libexpect5.43.a
/lib/expect5.43/libexpect5.43.a ; \
ranlib /lib/expect5.43/libexpect5.43.a ; \
/tools/bin/install -c -m 644 libexpect5.43.a /lib/libexpect5.43.a ; \
ranlib /lib/libexpect5.43.a ; \
else true; fi
if [ -s reconfigure_Tcl_for_shared_library ] ; then \
/tools/bin/install -c reconfigure_Tcl_for_shared_library
/lib/reconfigure_Tcl_for_shared_library ; \
/tools/bin/install -c pkgIndex /lib/expect5.43/pkgIndex.tcl ; \
else true; fi
gcc -Wl,--export-dynamic -o expect_installed exp_main_exp.o -L -lexpect5.43
-L/lib -ltcl8.4 -ldl -lieee -lm -lutil -Wl,-rpath,/lib:/lib
exp_main_exp.o: In function `main':
exp_main_exp.c:(.text+0x78): undefined reference to `Expect_Init'
exp_main_exp.c:(.text+0xbd): undefined reference to `exp_parse_argv'
exp_main_exp.c:(.text+0xc5): undefined reference to `exp_interactive'
exp_main_exp.c:(.text+0xd6): undefined reference to `exp_interpreter'
exp_main_exp.c:(.text+0xe0): undefined reference to `exp_cmdfile'
exp_main_exp.c:(.text+0xe9): undefined reference to `exp_cmdfile'
exp_main_exp.c:(.text+0xf5): undefined reference to `exp_interpret_cmdfile'
exp_main_exp.c:(.text+0x102): undefined reference to `exp_cmdfilename'
exp_main_exp.c:(.text+0x10b): undefined reference to `exp_cmdfilename'
exp_main_exp.c:(.text+0x117): undefined reference to `exp_interpret_cmdfilename'
collect2: ld returned 1 exit status
make[1]: *** [expect_installed] Error 1
make[1]: Leaving directory `/sources/build-clfs/expect/expect-5.43'
make: *** [expect-5.43.0.install.real] Error 2
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support