Iain McCracken wrote:
Here's the error I get:
lib/auto/POSIX/POSIX.a(POSIX.o): In function `XS_POSIX_tmpnam':
POSIX.c:(.text+0x3c14): warning: the use of `tmpnam' is dangerous, better
use `mkstemp'
Warnings are irrelevant.
//lib/x86_64-linux-gnu/libpthread.so.0: undefined reference to
`__libc_dl_error_tsd@GLIBC_PRIVATE'
This indicates that you have done something wrong earlier in the build.
The x86_64-linux-gnu/ directory should be in the /tools tree:
$ ls -l /mnt/lfs/tools/x86_64-pc-linux-gnu
total 8
drwxr-xr-x 2 root root 4096 Jul 13 20:45 bin
drwxr-xr-x 3 root root 4096 Jul 13 20:21 lib
What you should have in Chapter 5 is:
/mnt/lfs/tools/lib/libpthread-2.25.so
The best I can tell is that your tools are not salvageable and you need to
start over. Just 'rm -r /mnt/lfs/tools/*' and double check that the
environment of user lfs is correct:
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
Also make sure you have:
$ ls -l /tools
lrwxrwxrwx 1 root root 6 Jul 23 13:08 /tools -> /mnt/lfs/tools
This last issue is often missed because the Caution in Section 2.6 is not
fully understood by new users.
-- 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_style