Discussion:
[lfs-support] expect5.45.4 error Ubuntu 16.04
Kovalsky RU
2018-03-18 12:44:56 UTC
Permalink
Help me please with compilling. All test wich in the lfs book 8.2
succsesfully. I have search in internet, but no results.

***@kos-HP-Elite-7500-Series-MT:/mnt/lfs/sources/expect5.45.4$ make
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
Ken Moffat
2018-03-18 12:56:39 UTC
Permalink
Post by Kovalsky RU
Help me please with compilling. All test wich in the lfs book 8.2
succsesfully. I have search in internet, but no results.
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
warning: libutil.so.1, needed by /mnt/lfs/sources/expect5.45.4/
Weird, I've just replied to somebody with the same problem (he's
using the systemd book), but I've never seen this issue reported
before.

Short answer : libutil and libpthread should have been installed by
glibc earlier in chapter 5.

ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
--
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/
Pierre Labastie
2018-03-18 13:27:25 UTC
Permalink
Post by Kovalsky RU
Help me please with compilling. All test wich in the lfs book 8.2
succsesfully. I have search in internet, but no results.
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
warning: libutil.so.1, needed by
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so <http://libexpect5.45.4.so>,
not found (try using -rpath or -rpath-link)
warning: libpthread.so.0, needed by /tools/lib/libtcl8.6.so
<http://libtcl8.6.so>, not found (try using -rpath or -rpath-link)
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
collect2: error: ld returned 1 exit status
Makefile:391: recipe for target 'expect' failed
make: *** [expect] Error 1
Looks like the same error as
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-March/051899.html.
See the answers by Ken and myself.

Pierre
--
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-
Hazel Russman
2018-03-18 14:21:50 UTC
Permalink
On Sun, 18 Mar 2018 14:27:25 +0100
Post by Pierre Labastie
Post by Kovalsky RU
Help me please with compilling. All test wich in the lfs book 8.2
succsesfully. I have search in internet, but no results.
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
warning: libutil.so.1, needed by
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so <http://libexpect5.45.4.so>,
not found (try using -rpath or -rpath-link)
warning: libpthread.so.0, needed by /tools/lib/libtcl8.6.so
<http://libtcl8.6.so>, not found (try using -rpath or -rpath-link)
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
collect2: error: ld returned 1 exit status
Makefile:391: recipe for target 'expect' failed
make: *** [expect] Error 1
Looks like the same error as
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-March/051899.html.
See the answers by Ken and myself.
Pierre
I've just found a third example on Linux Questions: https://www.linuxquestions.org/questions/linux-from-scratch-13/linux-from-scratch-8-2-package-expect5-45-4-did-not-making-4175625806/

It seems to be a widespread problem so it's probably not due to carelessness. I wonder if it's host-related. I notice that the first complainer was using Mint (an Ubuntu derivative) and the second was using Ubuntu itself. I don't know about the third one. But I seem to remember from some years back that Ubuntu was not then considered a good build host for LFS.
--
--
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?
chris
2018-03-18 16:28:38 UTC
Permalink
Post by Hazel Russman
It seems to be a widespread problem so it's probably not due to carelessness. I wonder if it's host-related. I notice that the first complainer was using Mint (an Ubuntu derivative) and the second was using Ubuntu itself. I don't know about the third one. But I seem to remember from some years back that Ubuntu was not then considered a good build host for LFS.
If so, then what is considered a good build host, as I am wishing to
build lfs myself soon.

Cheers Chris
--
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
Mark Pokorný
2018-03-18 17:14:07 UTC
Permalink
Just to chime in here, I am currently building from Ubuntu 14.04 and
have had no host-related issues so far. Just be sure to read §2
carefully as there are some things you need to do before starting the
build (installing host packages, changing symlinks, etc).

→ Mark
Post by Hazel Russman
It seems to be a widespread problem so it's probably not due to
carelessness. I wonder if it's host-related. I notice that the first
complainer was using Mint (an Ubuntu derivative) and the second was using
Ubuntu itself. I don't know about the third one. But I seem to remember from
some years back that Ubuntu was not then considered a good build host for
LFS.
If so, then what is considered a good build host, as I am wishing to build
lfs myself soon.
Cheers Chris
--
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
--
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/P
chris
2018-03-18 17:33:04 UTC
Permalink
Post by Mark Pokorný
Just to chime in here, I am currently building from Ubuntu 14.04 and
have had no host-related issues so far. Just be sure to read §2
carefully as there are some things you need to do before starting the
build (installing host packages, changing symlinks, etc).
→ Mark
Thanks for your input
cheers Chris
--
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
Thomas Seeling
2018-03-19 09:26:21 UTC
Permalink
Hallo,
Post by Hazel Russman
carelessness. I wonder if it's host-related. I notice that the first
complainer was using Mint (an Ubuntu derivative) and the second was
using Ubuntu itself. I don't know about the third one. But I seem to
remember from some years back that Ubuntu was not then considered a
good build host for LFS.
I have built LFS with Mint Cinnamon successfully in the past, both i686
and x86_64.
For other reasons I've completely switched to Fedora last year and I've
also been successful in building LFS on FC 26 and 27 (32 and 64 bit).
You have to install some *-devel packages but the book explains that.

Tschau...Thomas
--
"Do you wanna be a legend or a passing footprint on the sands of time?"
Pierre Labastie
2018-03-18 17:36:13 UTC
Permalink
Post by Hazel Russman
On Sun, 18 Mar 2018 14:27:25 +0100
Post by Pierre Labastie
Post by Kovalsky RU
Help me please with compilling. All test wich in the lfs book 8.2
succsesfully. I have search in internet, but no results.
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
warning: libutil.so.1, needed by
/mnt/lfs/sources/expect5.45.4/libexpect5.45.4.so <http://libexpect5.45.4.so>,
not found (try using -rpath or -rpath-link)
warning: libpthread.so.0, needed by /tools/lib/libtcl8.6.so
<http://libtcl8.6.so>, not found (try using -rpath or -rpath-link)
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
/tools/lib/libtcl8.6.so <http://libtcl8.6.so>: undefined reference to
collect2: error: ld returned 1 exit status
Makefile:391: recipe for target 'expect' failed
make: *** [expect] Error 1
Looks like the same error as
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-March/051899.html.
See the answers by Ken and myself.
Pierre
I've just found a third example on Linux Questions: https://www.linuxquestions.org/questions/linux-from-scratch-13/linux-from-scratch-8-2-package-expect5-45-4-did-not-making-4175625806/
It seems to be a widespread problem so it's probably not due to carelessness. I wonder if it's host-related. I notice that the first complainer was using Mint (an Ubuntu derivative) and the second was using Ubuntu itself. I don't know about the third one. But I seem to remember from some years back that Ubuntu was not then considered a good build host for LFS.
Are you sure all three are different? Couldn't be Konstantin on linuxquestions
and Kovalsky the same person?

FWIW, I've built LFS on a debian host for years.

Pierre
--
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?

h
Ken Moffat
2018-03-18 17:51:41 UTC
Permalink
Post by Hazel Russman
I've just found a third example on Linux Questions: https://www.linuxquestions.org/questions/linux-from-scratch-13/linux-from-scratch-8-2-package-expect5-45-4-did-not-making-4175625806/
It seems to be a widespread problem so it's probably not due to carelessness. I wonder if it's host-related. I notice that the first complainer was using Mint (an Ubuntu derivative) and the second was using Ubuntu itself. I don't know about the third one. But I seem to remember from some years back that Ubuntu was not then considered a good build host for LFS.
Three in one day (or two, if Pierre is right), after nothing in the
past, is certainly odd.

What used to bite people on debian and its derivatives were /bin/sh
pointing to dash, and awk being (a very old version of) mawk.
The version-check.sh script should pick those problems up.

Later, some distro had incomplete installs of gmp, mpfr, mpc
We used to have a separate script to check that, library-check.sh
with a note that the files listed should either all be present or
all absent. But we dropped that before 8.1.

In the absence of responses from any of the people affected by this,
I tend to believe it was probably caused by a problem with the host
requirements. On this list I've seen people who posted the output,
and thought it was fine when there were several differences from
what the text said.

If the host requiremements are ok, perhaps retry, but:

1. tee the output from glibc (stdout AND stderr) to a log for each
of configure, make, make install.
2. run the steps in the Caution box (those should always be run).
3. check the symlinks for libutil and libpthread in /tools/lib.

Oh, and re your reply on linuxquestions, I will be very surprised
if any of the editors builds from slackware - my normal procedure is
to build from LFS. But any recent distribution using glibc (i.e.
not anything using musl) should be able to build LFS once it has
been adjusted to meet the host requirements.

ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
--
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_sty
Hazel Russman
2018-03-18 18:16:24 UTC
Permalink
On Sun, 18 Mar 2018 17:51:41 +0000
Post by Ken Moffat
Oh, and re your reply on linuxquestions, I will be very surprised
if any of the editors builds from slackware - my normal procedure is
to build from LFS. But any recent distribution using glibc (i.e.
not anything using musl) should be able to build LFS once it has
been adjusted to meet the host requirements.
ĸen
Of course LFS is the ideal host, but you can't use it the first time
around! I've often seen Slackware recommended for that first build:
proper Slackware, I mean, not my one-time bodged up version.
--
If any members of GCHQ are reading this, shame on you! I fought for
your right to belong to a trade union and now you are taking away my
right to privacy?

Hazel Russman
--
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-
Bruce Dubbs
2018-03-18 18:41:41 UTC
Permalink
Post by Ken Moffat
Post by Hazel Russman
I've just found a third example on Linux Questions: https://www.linuxquestions.org/questions/linux-from-scratch-13/linux-from-scratch-8-2-package-expect5-45-4-did-not-making-4175625806/
It seems to be a widespread problem so it's probably not due to carelessness. I wonder if it's host-related. I notice that the first complainer was using Mint (an Ubuntu derivative) and the second was using Ubuntu itself. I don't know about the third one. But I seem to remember from some years back that Ubuntu was not then considered a good build host for LFS.
Three in one day (or two, if Pierre is right), after nothing in the
past, is certainly odd.
What used to bite people on debian and its derivatives were /bin/sh
pointing to dash, and awk being (a very old version of) mawk.
The version-check.sh script should pick those problems up.
Later, some distro had incomplete installs of gmp, mpfr, mpc
We used to have a separate script to check that, library-check.sh
with a note that the files listed should either all be present or
all absent. But we dropped that before 8.1.
In the absence of responses from any of the people affected by this,
I tend to believe it was probably caused by a problem with the host
requirements. On this list I've seen people who posted the output,
and thought it was fine when there were several differences from
what the text said.
1. tee the output from glibc (stdout AND stderr) to a log for each
of configure, make, make install.
2. run the steps in the Caution box (those should always be run).
3. check the symlinks for libutil and libpthread in /tools/lib.
Oh, and re your reply on linuxquestions, I will be very surprised
if any of the editors builds from slackware - my normal procedure is
to build from LFS. But any recent distribution using glibc (i.e.
not anything using musl) should be able to build LFS once it has
been adjusted to meet the host requirements.
I usually have my students build from Debian, but they sometimes use
other distros.

My experience is that this type of problem is a cascade from earlier
problems. Two major issues commonly occur. First, I would like to see
the output of the host system requirements script. A second common
error is not removing directories for gcc or binutils after the pass1
builds. A third possibiliy (less common) is to be building as some user
(e.g. root) other than user lfs in Chapter 5.

The solution for each problem is to (from the host) rm -rf
/mnt/lfs/tools/* and restart Chapter 5 after double checking the host
system requirements.

-- Bruce
--
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
Continue reading on narkive:
Loading...