LinuxSir.cn,穿越时空的Linuxsir!

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

(lfs)帮助,在安装glibc-2.3.2时,configure 出错(redhat9, p2 233)

[复制链接]
发表于 2003-11-25 16:41:57 | 显示全部楼层 |阅读模式
安装 Binutils-2.14 - 第一遍 :没问题
安装 GCC-3.3.1 - 第一遍 :没问题
安装 Linux-2.4.22 头文件 :没问题
安装 Glibc-2.3.2 时出错

../glibc-2.3.2/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--with-headers=/tools/include \
--with-binutils=/tools/bin \
--without-gd
后,出错如下:
running configure fragment for ../glibc-2.3.2/sysdeps/i386/elf
running configure fragment for ../glibc-2.3.2/sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.

明明是有--enable-add-ons 啊,为什么还有这个错误呢?
不管三七二十一,先加上`--disable-sanity-checks',configure 通过,可是
在make的时候,出现error,错误如下:
gcc -B/tools/bin/ ../sysdeps/unix/sysv/linux/i386/system.c -c -std=gnu99 -O2 -Wo
In file included from ../sysdeps/unix/sysv/linux/i386/system.c:50:
../sysdeps/posix/system.c: In function `do_system':
../sysdeps/posix/system.c:78: warning: statement with no effect
../sysdeps/posix/system.c:84: warning: statement with no effect
../sysdeps/unix/sysv/linux/i386/system.c: In function `cancel_handler':
../sysdeps/unix/sysv/linux/i386/system.c:68: error: `quit' undeclared (first us)
../sysdeps/unix/sysv/linux/i386/system.c:68: error: (Each undeclared identifiere
../sysdeps/unix/sysv/linux/i386/system.c:68: error: for each function it appear)
../sysdeps/unix/sysv/linux/i386/system.c:69: error: `intr' undeclared (first us)
make[2]: *** [/mnt/lfs/sources/glibc-bulid/stdlib/system.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
make: *** [all] Error 2

请问是什么原因呢?
发表于 2003-11-25 22:42:46 | 显示全部楼层
linuxthreads
解压到正确的目录.
--disable-sanity-checks
这个不好吧.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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