LinuxSir.cn,穿越时空的Linuxsir!

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

求助:编译glibc打开ntpl问题

[复制链接]
发表于 2004-10-30 09:31:57 | 显示全部楼层 |阅读模式
我昨日重新构造一个新的gentoo,在tar xvjf portage-xxxxx.tar.bz2 -C usr/后,开始进入新的系统环境,设置好时区、时间、hostname及dnsdomainname等事项;接着emerge linux-headers-2.6.8.1.ebuild,成功后在/etc/make.conf中加入USE=“...... ntpl ntplonly ...”和执行env-update && source /etc/profile,继续emerge glibc-20041021.ebuild,按以前的经验在emerge glibc后将成功完成打开ntpl,可是这次完成后只显示如下内容:

GNU C Library 20041021 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.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.6.8 system on 2004-10-30.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        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>.

请各位帮我看看,另外新的glibc该增加哪些参数?
:help :help :help
发表于 2004-10-30 11:42:29 | 显示全部楼层
ldd -v 现看看你的ldd的搜索路径。 看看是不是在/lib目录里还有别的libc.so.6
 楼主| 发表于 2004-10-30 14:36:59 | 显示全部楼层
我运行后显示如下:

gentoo2 / # ldd -v
ldd: missing file arguments
Try `ldd --help' for more information.
 楼主| 发表于 2004-10-30 19:46:06 | 显示全部楼层
update!
发表于 2004-10-31 01:07:33 | 显示全部楼层
-_-000

sorry. ldconfig. 可以用ldd看看执行文件连接到哪个so了。
发表于 2004-10-31 01:22:50 | 显示全部楼层

回复: 求助:编译glibc打开ntpl问题

最初由 ldh168 发表
接着emerge linux-headers-2.6.8.1.ebuild,成功后在/etc/make.conf中加入USE=“...... ntpl ntplonly ...”和执行env-update && source /etc/profile,继续emerge glibc-20041021.ebuild,

怎么都喜欢直接emerge ebuild?不好的习惯,这样emerge的包是不会被记录到world file里的。
发表于 2004-10-31 11:52:54 | 显示全部楼层
/lib/libc.so.6
看看我的,你现在应该是打开了nptl了。

[PHP]
debentoogao@finalbaby ~ $ /lib/libc.so.6
GNU C Library 20041006 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.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.6.8 system on 2004-10-12.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Glibc-2.0 compatibility add-on by Cristian Gafton
        GNU Libidn by Simon Josefsson
        libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[/PHP]
发表于 2004-10-31 12:09:40 | 显示全部楼层
我的是这样的:
  1. $ /lib/libc.so.6
  2. GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al.
  3. Copyright (C) 2004 Free Software Foundation, Inc.
  4. This is free software; see the source for copying conditions.
  5. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  6. PARTICULAR PURPOSE.
  7. Compiled by GNU CC version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6).
  8. Compiled on a Linux 2.6.7 system on 2004-10-21.
  9. Available extensions:
  10.         GNU libio by Per Bothner
  11.         crypt add-on version 2.1 by Michael Glad and others
  12.         [color=orangered]Native POSIX Threads Library by Ulrich Drepper et al[/color]
  13.         BIND-8.2.3-T5B
  14.         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
  15. Thread-local storage support included.
  16. For bug reporting instructions, please see:
  17. <[url]http://www.gnu.org/software/libc/bugs.html[/url]>.
复制代码
 楼主| 发表于 2004-10-31 21:33:34 | 显示全部楼层
我重新energe glibc了,执行/lib/libc.so.6输出如下 :

GNU C Library 20040808 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.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.6.8 system on 2004-10-31.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        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>.

用ldconfig -v查看,libc.so.6是连接到libc-2.3.4.so的库文件上了,下来怎么弄?
发表于 2004-10-31 21:54:38 | 显示全部楼层
重新emerge linux26-headers和glibc,不要直接emerge ebuild,用/etc/portage/package.keywords解决~x86的问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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