LinuxSir.cn,穿越时空的Linuxsir!

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

用户lfs在第一遍编译Glibc-2.3.2出错,请帮忙!

[复制链接]
发表于 2003-11-26 22:34:06 | 显示全部楼层 |阅读模式
执行命令:

../glibc-2.3.2/configure --prefix=/tools     --disable-profile --enable-add-ons     --with-headers=/tools/include     --with-binutils=/tools/bin     --without-gd

错误信息如下:

checking for long double... yes
checking size of long double... 12
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'.

查看当前目录,只有一个文件:

lfs@debian:/mnt/lfs/sources/lfs-packages/glibc-build$ ls
config.log

按提示增加参数“--disable-sanity-checks”:

../glibc-2.3.2/configure --prefix=/tools     --disable-profile --enable-add-ons     --with-headers=/tools/include     --with-binutils=/tools/bin     --without-gd  --disable-sanity-checks

结果如下:

checking installed Linux kernel header files... 2.0.10 or later
*** WARNING: Are you sure you do not want to use the `linuxthreads'
*** add-on?
checking for symlinks in /tools/include... ok
running configure fragment for ../glibc-2.3.2/sysdeps/unix/common
running configure fragment for ../glibc-2.3.2/sysdeps/unix
running configure fragment for ../glibc-2.3.2/sysdeps/generic
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating glibcbug
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands

当前目录生成如下文件:

$ ls -F
Makefile  bits/  config.h  config.log  config.make  config.status  glibcbug

并没有文章所说的“在这个阶段你可能会看到下面的警告:”:

configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.

不知错误在哪里?
 楼主| 发表于 2003-11-26 22:44:14 | 显示全部楼层

这是增加参数--disable-sanity-checks之后,make遇到的错误信息

../sysdeps/unix/sysv/linux/i386/system.c:69: error: `intr' undeclared (first use in this function)
make[2]: *** [/mnt/lfs/sources/lfs-packages/glibc-build/stdlib/system.o] Error 1make[2]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2'
make: *** [all] Error 2

请问错在哪里了?
 楼主| 发表于 2003-11-26 22:45:54 | 显示全部楼层

make check之后的错误如下:

make[2]: *** No rule to make target `/mnt/lfs/sources/lfs-packages/glibc-build/elf/soinit.os', needed by `/mnt/lfs/sources/lfs-packages/glibc-build/libc.so'.  Stop.
make[2]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2/iconv'
make[1]: *** [iconv/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2'
make: *** [check] Error 2
发表于 2003-11-26 22:49:18 | 显示全部楼层

linuxthreads解压缩到编译目录了吗

lfs文档
在安装glibc前,你必须用 cd 命令进入 glibc-2.3.2 目录然后解压 glibc-linuxthreads 压缩包,别把 glibc-linuxthreads 解压到通常的 /usr/src 目录下了。
 楼主| 发表于 2003-11-26 22:49:18 | 显示全部楼层

config.log文件

请大家帮忙看看!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2003-11-26 22:50:40 | 显示全部楼层

先谢谢home_king兄!

完了。。。你这么一提醒。。。我检查一下先!
 楼主| 发表于 2003-11-26 22:53:46 | 显示全部楼层

请问

glibc-linuxthreads包必须解到glibc-2.3.2目录下吗?
发表于 2003-11-26 22:56:22 | 显示全部楼层

当然

configure的--enable-add-ons正是检测编译目录下的linuxthreads。
 楼主| 发表于 2003-11-26 23:02:25 | 显示全部楼层

我把linuxthreads解到glibc-2.3.2目录了

我原来把它解到上级目录了,重新解压到glibc-2.3.2,进入glibc-build,执行./config没有错误,但是运行make之后还是有错误,如下:

make[2]: *** [/mnt/lfs/sources/lfs-packages/glibc-build/stdlib/system.o] Error 1make[2]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/lfs-packages/glibc-2.3.2'
make: *** [all] Error 2

请问是怎么回事?
发表于 2003-11-26 23:11:23 | 显示全部楼层

错误提示就这些啦

错误提示尽量给得完整点。还有,你之前有把linux内核头文件正确地安置好吗?拷贝命令以防手误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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