Clyde McKenney
2018-03-18 12:00:56 UTC
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 `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@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 `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
Makefile:391: recipe for target 'expect' failed
make: *** [expect] Error 1
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 `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@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 `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
/tools/lib/libtcl8.6.so: undefined reference to `***@GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
Makefile:391: recipe for target 'expect' failed
make: *** [expect] Error 1