|
|
刚开始安装LFS4.0,按文档上的步骤一步步做下来
安装Bash,装完后,在/mnt/lfs/static/bin下面只有bash和bashbug这两个程序,少了sh这个程序。安装完Binutils,少了gasp这个程序。装完Findutils,少了bigram,code和frcode这三个程序。装完Gawk,少了grcat和pwcat这两个程序。
在安装Gcc-3.2提示出错了。(上面那几项安装,没有发现有提示出错)
c++locale.cc:170: `__newlocale' undeclared (first use this function)
c++locale.cc: In static member function `static void
std::locale::facet::_S_destroy_c_locale(__locale_struct*&)':
c++locale.cc:180: `__freelocale' undeclared (first use this function)
c++locale.cc: In static member function `static __locale_struct*
std::locale::facet::_S_clone_c_locale(__locale_struct*&)':
c++locale.cc:184: `__duplocale' undeclared (first use this function)
make[4]: *** [c++locale.lo] Error 1
make[4]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/mnt/lfs/static/src/gcc-build'
make: *** [bootstrap] Error 2
不知道如何解决,请大虾们帮帮我。
这下面是安装Bash提示的一小段:
used for linking
./lib/sh/libsh.a(netopen.o)(.text+0x3a): In function `_netopen6':
/mnt/lfs/static/src/bash-2.05a/lib/sh/netopen.c:217: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ls -l bash
-rwxr-xr-x 1 lfs1 lfs1 910564 May 6 21:19 bash
size bash
text data bss dec hex filename
869971 28636 20420 919027 e05f3 bash
/usr/bin/install -c -m 0755 bash /mnt/lfs/static/bin/bash
/usr/bin/install -c -m 0555 bashbug /mnt/lfs/static/bin/bashbug
( cd ./doc ; make \
man1dir=/mnt/lfs/static/man/man1 man1ext=.1 \
man3dir=/mnt/lfs/static/man/man3 man3ext=.3 \
infodir=/mnt/lfs/static/info htmldir= DESTDIR= install )
make[1]: Entering directory `/mnt/lfs/static/src/bash-2.05a/doc'
test -d /mnt/lfs/static/man/man1 || /bin/sh ../support/mkdirs /mnt/lfs/static/man/man1
test -d /mnt/lfs/static/info || /bin/sh ../support/mkdirs /mnt/lfs/static/info
if test -n "" ; then \
test -d || /bin/sh ../support/mkdirs ; \
fi
/usr/bin/install -c -m 644 ./bash.1 /mnt/lfs/static/man/man1/bash.1
/usr/bin/install -c -m 644 ./bashbug.1 /mnt/lfs/static/man/man1/bashbug.1
/usr/bin/install -c -m 644 ./bashref.info /mnt/lfs/static/info/bash.info
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
install-info --dir-file=/mnt/lfs/static/info/dir /mnt/lfs/static/info/bash.info; \
else true; fi
if test -n "" ; then \
/usr/bin/install -c -m 644 ./bash.html ; \
/usr/bin/install -c -m 644 ./bashref.html ; \
fi
make[1]: Leaving directory `/mnt/lfs/static/src/bash-2.05a/doc' |
|