LinuxSir.cn,穿越时空的Linuxsir!

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

Help : CLFS紧急求助

[复制链接]
发表于 2006-2-18 03:07:59 | 显示全部楼层 |阅读模式
我现在是想按照 CLFS-SVN-20060214-x86 里面说明编译一套交叉编译器出来。我打算在vmWare中把III. Make the Cross-Compile

Tools 整个过程走完,编译出交叉编译环境,然后在将整个编译环境拷贝到windows的某个区中,然后用RH8的安装盘从rescue进入到

shell,再把windows区mount上来设法进行后续编译。可是我在最开始编译交叉便宜环境时,走到5.8. Glibc-20051107

http://www.linuxfromscratch.org/ ... 总出现如下错

误,链接不过,我无论是在gentoo (不支持nptl)为宿主机的环境下还是在lfs x86 liveCD1-1-3 (也不支持nptl)下编译都是到

这一步时出同样的错。在5.6. Glibc-20051107 Headers和5.8. Glibc-20051107中对于for NPTL enabled system 的
echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
都没加,错误如下:



/mnt/lfs/source/glibc-build/libc_pic.os(.text+0xb0f36): In function `*__GI___register_atfork':
../nptl/sysdeps/unix/sysv/linux/register-atfork.c:100: undefined reference to `__fork_handlers'
/mnt/lfs/source/glibc-build/libc_pic.os(.text+0xb0ffb): In function `__unregister_atfork':
../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:37: undefined reference to `__fork_handlers'
/mnt/lfs/source/glibc-build/libc_pic.os(.text+0xb1045):../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:64:

undefined reference to `__fork_handlers'
/mnt/lfs/source/glibc-build/libc_pic.os(.text+0xb115b): In function `__libc_pthread_init':
../nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c:43: undefined reference to `__fork_generation_pointer'
/mnt/lfs/source/glibc-build/libc_pic.os(__libc_freeres_fn+0xa01): In function `free_mem':
../nptl/sysdeps/unix/sysv/linux/register-atfork.c:118: undefined reference to `__fork_handlers'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/lfs/source/glibc-build/libc.so] Error 1
make: *** [all] Error 2


有哪位碰到过同样问题啊?
发表于 2006-2-18 13:51:17 | 显示全部楼层
因为我是加了的,所以很顺利通过,你为啥不加呢?做一次顺利的,再进行改动,也许比较好。(虽然这个错误也许跟那几句话没联系。)

还有,livecd 6.1.1 我记得是支持 NPTL 的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-18 20:32:16 | 显示全部楼层
这个是我在lfs x86 liveCD1-1-3 中运行/lib/libc.so.6的结果,里面没有提到nptl啊,意思就是host系统不支持nptl吧。然后我根据手册里面的指示,
For NPTL enabled systems the following lines need to be added to config.cache
我理解为如果host系统不支持nptl,则不加紧接着的两条,所有就没加。但链接失败,郁闷。
好象是fork.c中的`__fork_handlers' 没被编到一样....


GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3.
Compiled on a Linux 2.6.11 system on 2005-12-16.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
回复 支持 反对

使用道具 举报

发表于 2006-2-18 20:46:59 | 显示全部楼层
Post by popoCat
这个是我在lfs x86 liveCD1-1-3 中运行/lib/libc.so.6的结果,里面没有提到nptl啊,意思就是host系统不支持nptl吧。然后我根据手册里面的指示,
For NPTL enabled systems the following lines need to be added to config.cache
我理解为如果host系统不支持nptl,则不加紧接着的两条,所有就没加。但链接失败,郁闷。
好象是fork.c中的`__fork_handlers' 没被编到一样....


GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3.
Compiled on a Linux 2.6.11 system on 2005-12-16.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        [color="Red"]Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


这么大的 NPTL在上边,还说没有。。打你PP。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-18 21:00:08 | 显示全部楼层
昏,不好意思,我开始只是
/lib/libc.so.6 | grep nptl了一下,没有,就直接按不支持算了,居然把缩写展开了。
不好意思啊:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-18 22:56:24 | 显示全部楼层
加了这些还是有同样的问题

哪位用CLFS编译过啊?
回复 支持 反对

使用道具 举报

发表于 2006-2-18 23:09:28 | 显示全部楼层
我就通过了。你有什么问题呢?

你怎么设置 LFS_HOST 和 LFS_TARGET的呢?还有,你看的是什么book。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-18 23:51:53 | 显示全部楼层
我看的是Cross-Compiled Linux From Scratch
Version CLFS-SVN-20060214-x86

LFS_HOST = i486-cross-linux-gnu
LFS_TARGET = i686-pc-linux-gnu

是否有问题?
回复 支持 反对

使用道具 举报

发表于 2006-2-19 00:03:25 | 显示全部楼层
感觉没问题,不过这么新的版本,我没用过,不确定。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 00:14:59 | 显示全部楼层
那些包我都是2006年1月6日下完的,不知道是不是有变动。
难道是fork.c没编?
链接不过..........
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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