LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 747|回复: 3

lfs编译groff有点问题

[复制链接]
发表于 2003-11-16 10:39:14 | 显示全部楼层 |阅读模式
我的lfs在编译到groff时有了问题:
root:/static/src/groff-1.18.1# ./configure --prefix=/usr
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking that C++ compiler can compile simple program...no
configure: error: a working C++ compiler is required
是不是我的gcc-3.2没有编译好原因?
发表于 2003-11-16 10:42:54 | 显示全部楼层
a working C++ compiler is required
少c++编译器
 楼主| 发表于 2003-11-16 20:38:51 | 显示全部楼层
我又重新装gcc-3.2,我把g++的包也解开的,可是一到make bootstrap时问题依旧是这样:
root:/static/src/gcc-3.2# make bootstrap
...
...
...
cp/typeck2.o differs
make[1]: *** [compare] Error 1
make[1]: Leaving directory `/static/src/gcc-build/gcc-3.2/gcc'
make: *** [bootstrap] Error 2

装bzip2-1.0.2时make也不行:
root:/static/src/bzip2-1.0.2# make -f Makefile-libbz2_so
gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.2
libbz2.so.1.0.2: undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status
make: *** [all] Error 1


在make  util-linux-2.11 出错:
root:/static/src/util-linux-2.11w# make HAVE_SLN=yes
make[1]: Entering directory `/static/src/util-linux-2.11w/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/static/src/util-linux-2.11w/po'
make[1]: Entering directory `/static/src/util-linux-2.11w/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/static/src/util-linux-2.11w/lib'
make[1]: Entering directory `/static/src/util-linux-2.11w/getopt-1.1.2'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/static/src/util-linux-2.11w/getopt-1.1.2'
make[1]: Entering directory `/static/src/util-linux-2.11w/disk-utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/static/src/util-linux-2.11w/disk-utils'
make[1]: Entering directory `/static/src/util-linux-2.11w/login-utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/static/src/util-linux-2.11w/login-utils'
make[1]: Entering directory `/static/src/util-linux-2.11w/misc-utils'
cc -s  write.o ../lib/carefulputc.o   -o write
../lib/carefulputc.o: In function `carefulputc':
../lib/carefulputc.o(.text+0x31): undefined reference to `__ctype_b_loc'
../lib/carefulputc.o(.text+0x5f): undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status
make[1]: *** [write] Error 1
make[1]: Leaving directory `/static/src/util-linux-2.11w/misc-utils'
make: *** [all] Error 1

我继续把其它的包都安装完,也没有出现什么错,编译好内核,设好grub后,一启动有好多问题:
这是出错的地方,出错时的一些说明都没写上,因为我只能在启动时用笔记下关键的:
Activating all swap files/partitions ...
  /etc/rc.d/rcsysinit.d/S10swap: swapon: command not found [FAILED]

Mounting proc file system ...
  /etc/rc.d/rcsysinit.d/S20mount proc: mount: command not found [FAILED]

Mounting root file system in read-only mode ...
/etc/rc.d/rcsysinit.d/S30checkfs: mount: command not found [FAILED]

一出错就提示按"enter"键才能继续,有的ok 可有的failed 到后来机器就不动了。。。
哪位帮忙讲一下原因,解决之道。。。。。。。
我的版本 20021030
发表于 2003-11-17 00:55:08 | 显示全部楼层
我回在另一个里面了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表