Hi kjordan,
Quote:
The reason the mount points didn't show is because you're in the chroot environment, so your / for that environment would be equivalent to /mnt/lfs in your regular environment
|
Noted with tks.
Quote:
My guess would be that localedef isn't in /usr/bin in your chroot environment because your make install wasn't successful.
|
Repeated 6.11. Glibc-2.3.4
http://www.linuxfromscratch.org/lfs/...r06/glibc.html
After booting up the PC, performed following steps
- Removed both "glibc-2.3.4" and "glibc-build" on Konqueror as Root
Starting Console
[satimis@localhost ~]$ su
Password:
[root@localhost satimis]# export LFS=/mnt/lfs
[root@localhost satimis]# mount /dev/hda6 /mnt/lfs
[root@localhost satimis]# mkdir -p $LFS
[root@localhost satimis]# echo $LFS
/mnt/lfs
[root@localhost satimis]# mkdir -p $LFS/{proc,sys}
[root@localhost satimis]# mount -t proc proc $LFS/proc
[root@localhost satimis]# mount -t sysfs sysfs $LFS/sys
[root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev
[root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev/shm
[root@localhost satimis]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
[root@localhost satimis]# /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h
I have no name!:/#
I have no name!:/# exec /tools/bin/bash --login +h
root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts
Code:
mount: mount point /dev/pts does not exist
root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts
Code:
mount: mount point /dev/pts does not exist
root:/# mount -t tmpfs none /dev/shm
Code:
mount: mount point /dev/shm does not exist
Remark: -
Yesterday this part also having problem as follows; (referred to Notes)
- Notes -
root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts
Code:
warning: can't open /etc/fstab: No such file or directory
root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts
Code:
mount: none already mounted or /dev/pts busy
mount: according to mtab, none is already mounted on /dev/pts
root:/# mount -t tmpfs none /dev/shm
The last command went through without complaint.
- END -
Furthermore whether I need to repeat these 3 commands each time when booting up the PC ???
root:/# ls
Code:
bin boot dev etc home lib media mnt opt proc root sbin sources srv sys tmp tools usr var
Continued
root:/# cd sources/
root:/sources# ls | grep glibc
Code:
glibc-2.3.4-fix_test-1.patch glibc-2.3.4-fix_test-1.patch.rej glibc-2.3.4.tar.bz2.orig
glibc-2.3.4-fix_test-1.patch.orig glibc-2.3.4.tar.bz2 glibc-2.3.4.tar.bz2.rej
Remark:
I re-downloaded both "glibc-2.3.4-fix_test-1.patch" and "glibc-2.3.4.tar.bz2"
Re-named the old ones as .orig
glibc-2.3.4-fix_test-1.patch.rej
glibc-2.3.4.tar.bz2.rej
I have no idea how these files coming to existence. I left them there.
root:/sources# tar xjf glibc-2.3.4.tar.bz2
root:/sources# cd glibc-2.3.4
root:/sources/glibc-2.3.4# patch -Np1 -i ../glibc-2.3.4-fix_test-1.patch
Code:
patching file nptl/tst-cancel17.c
root:/sources/glibc-2.3.4# mkdir ../glibc-build
root:/sources/glibc-2.3.4# cd ../glibc-build
root:/sources/glibc-build# ../glibc-2.3.4/configure --prefix=/usr \
> --disable-profile --enable-add-ons \
> --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
root:/sources/glibc-build# make
Code:
....
make[2]: Leaving directory `/sources/glibc-2.3.4/elf'
make[1]: Leaving directory `/sources/glibc-2.3.4'
root:/sources/glibc-build# make check
Code:
...
....
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: `-x c++' after last input file has no effect
g++: no input files
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1
make[1]: Leaving directory `/sources/glibc-2.3.4'
make: *** [check] Error 2
Warning popup as before. Referring to the Notes
Code:
root:/sources/glibc-build# make check
....
.....
......
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.3.4'
make[1]: Entering directory `/sources/glibc-2.3.4'
make -C csu tests
make[2]: Entering directory `/sources/glibc-2.3.4/csu'
make[2]: *** No rule to make target `/sources/glibc-build/csu/tst-empty.out', needed by `tests'. Stop.
make[2]: Leaving directory `/sources/glibc-2.3.4/csu'
make[1]: *** [csu/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.4'
make: *** [check] Error 2
Stopped here.
B.R.
satimis