... and I've just found the 'rm -f libexpect5.45.so' line above that
DJ Lucas mentioned was needed. So here's the necessary output:
rm -f libexpect5.45.so
i686-lfs-linux-gnu-gcc -B/tools/lib/ -shared -pipe -O2
-fomit-frame-pointer -Wall -fPIC -Wl,--export-dynamic -o
libexpect5.45.so exp_command.o expect.o exp_inter.o exp_regexp.o
exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_strf.o
exp_console.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o
exp_memmove.o exp_tty_comm.o exp_chan.o Dbg.o pty_termios.o
exp_select.o exp_event.o -lutil -lieee -lm -Wl,-rpath,/tools/lib
-L/tools/lib -ltclstub8.5
: libexpect5.45.so
i686-lfs-linux-gnu-gcc -B/tools/lib/ -DPACKAGE_NAME=\"expect\"
-DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\"
-DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\"
-DBUILD_expect= -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1
-D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\
__attribute__\(\(__visibility__\(\"hidden\"\)\)\)
-D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long
-DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1
-DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_STROPTS_H=1
-DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1
-DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1
-DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1
-DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1
-DSELECT_MASK_TYPE=fd_set -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1
-DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1
-DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST
-DSCRIPTDIR=\"/tools/lib/expect5.45\"
-DEXECSCRIPTDIR=\"/tools/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\"
-DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools/include" -pipe -O2
-fomit-frame-pointer -Wall -fPIC -c `echo exp_main_exp.c` -o
exp_main_exp.o
i686-lfs-linux-gnu-gcc -B/tools/lib/ \
-pipe -O2 -fomit-frame-pointer -Wall -fPIC \
-Wl,--export-dynamic \
-o expect exp_main_exp.o \
-L/mnt/lfs/sources/expect5.45 -lexpect5.45 \
-L/tools/lib -ltcl8.5 \
-ldl -lieee -lm \
-Wl,-rpath,/tools/lib \
-Wl,-rpath,/tools/lib/expect5.45
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.5.2/../../../../i686-lfs-linux-gnu/bin/ld:
warning: libutil.so.1, needed by
/mnt/lfs/sources/expect5.45/libexpect5.45.so, not found (try using
-rpath or -rpath-link)
/mnt/lfs/sources/expect5.45/libexpect5.45.so: undefined reference to
`openpty@GLIBC_2.0'
collect2: ld returned 1 exit status
make: *** [expect] Error 1
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page