Hello. My attempts to compile "expect5.45.4" in Chapter 5.12, LFS 8.2-systemd fail repeatedly with errors as shown below. Everything in the stable LFS 8.2-systemd book appears to compile smoothly, up to the point where expect5.45.4's configure is looking for a file "install-sh" in its $LFS/sources/expect5.45.4 directory. (An "install-sh" exists in the expect5.45.4/tclconfig subdirectory, but not in the expect5.45.4 directory.) So far, I don't understand the configure procedure regarding this file (ie, how it's created, since it's not in the source tarball), so I'm stumped. This prevents the build from creating the "expect" program required later on.
I am using a default install of Linux Mint 18.3 Cinnamon, linux kernel 4.13.0-37 on an Intel i5-2500 CPU @ 3.30GHz with 8Gb RAM and have a 100Gb ext4 partition set up for lfs. Version-check.sh reports all is well. While I try to learn the reason for failure, I will also try building lfs in a clean VirtualBox of another distro. I would appreciate any suggestions. configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: executing default commands chmod: cannot access './install-sh': No such file or directory === configuring in testsuite (/mnt/lfs/sources/expect5.45.4/testsuite) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/tools' '--with-tcl=/tools/lib' '--with-tclinclude=/tools/include' --cache-file=/dev/null --srcdir=. checking for correct TEA configuration... ok (TEA 3.9) et cetera....then at the end: gcc \ -pipe -O2 -fomit-frame-pointer -Wall -fPIC \ -Wl,--export-dynamic \ -o expect exp_main_exp.o \ -L/mnt/lfs/sources/expect5.45.4 -lexpect5.45.4 \ -L/tools/lib -ltcl8.6 \ -ldl -lm \ -Wl,-rpath,/tools/lib \ -Wl,-rpath,/tools/lib/expect5.45.4 /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libutil.so.1, needed by /mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so, not found (try using -rpath or -rpath-link) /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /tools/lib/libtcl8.6.so, not found (try using -rpath or -rpath-link) /tools/lib/libtcl8.6.so: undefined reference to `pthread_setspecific@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_getspecific@GLIBC_2.2.5' /mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `openpty@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_key_delete@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_key_create@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_create@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_join@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_attr_setstacksize@GLIBC_2.2.5' collect2: error: ld returned 1 exit status Makefile:391: recipe for target 'expect' failed make: *** [expect] Error 1 gcc \ -pipe -O2 -fomit-frame-pointer -Wall -fPIC \ -Wl,--export-dynamic \ -o expect exp_main_exp.o \ -L/mnt/lfs/sources/expect5.45.4 -lexpect5.45.4 \ -L/tools/lib -ltcl8.6 \ -ldl -lm \ -Wl,-rpath,/tools/lib \ -Wl,-rpath,/tools/lib/expect5.45.4 /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libutil.so.1, needed by /mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so, not found (try using -rpath or -rpath-link) /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /tools/lib/libtcl8.6.so, not found (try using -rpath or -rpath-link) /tools/lib/libtcl8.6.so: undefined reference to `pthread_setspecific@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_getspecific@GLIBC_2.2.5' /mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `openpty@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_key_delete@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_key_create@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_create@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_join@GLIBC_2.2.5' /tools/lib/libtcl8.6.so: undefined reference to `pthread_attr_setstacksize@GLIBC_2.2.5' collect2: error: ld returned 1 exit status Makefile:391: recipe for target 'expect' failed make: *** [expect] Error 1
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style