QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: younker

在gentoo 20040204中使用nptl.

[复制链接]
发表于 2004-6-24 23:36:06 | 显示全部楼层
用nptl后,使用Azureus[一个用java写的BT客户端,很不错的]快了不是一点点,轻松就产生出上百个连接。

如果成功转换到nptl, 运行 /lib/libc.so.6 的输出差不多如下:

[code:1]
GNU C Library stable release version 2.3.3, 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.5-gentoo-r1 system on 2004-06-20.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        NPTL 0.61 by Ulrich Drepper
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <[email protected]>.
[/code:1]

注意上面的NPTL 0.61 by Ulrich Drepper。

emerge时最好不要用全路径,建议的次序是

编辑 /etc/make.conf, 在USE中加入nptl
[code:1]
emerge linux-headers
emerge glibc
emerge gcc  # 在emerge glibc 之后
[/code:1]
回复

使用道具 举报

发表于 2004-6-25 08:37:56 | 显示全部楼层
哦,看来我也要弄个JAVA程序来试试效果 !
回复

使用道具 举报

发表于 2004-6-25 09:17:15 | 显示全部楼层

[code:1]
emerge azureus-bin
[/code:1]

这是个BT的客户端。
回复

使用道具 举报

发表于 2005-10-1 08:34:54 | 显示全部楼层
# /lib/libc.so.6 |grep nptl
....(nothing)
and my X started without remerge nvidia-kernel,I think there must be somting wrong,
but I saw "Native Posix Thread Library " when I read the message again....hoho
回复

使用道具 举报

发表于 2005-10-2 11:58:36 | 显示全部楼层
# /lib/libc.so.6 |grep nptl
....(nothing)
and my X started without remerge nvidia-kernel,I think there must be somting wrong,
but I saw "Native Posix Thread Library " when I read the message again....hoho
_________________

再看看你/lib/tls/libc.so.6, 如果stage1时候用的只是nptl(没加上nptlonly), 那么在系统中实际上会存在两个libc, 一个是支持nptl, 另一个不支持nptl.

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2005-10-5 08:23:57 | 显示全部楼层
[quote:7134552568="linky_fan"]
# /lib/libc.so.6 |grep nptl
....(nothing)
and my X started without remerge nvidia-kernel,I think there must be somting wrong,
but I saw "Native Posix Thread Library " when I read the message again....hoho
_________________

再看看你/lib/tls/libc.so.6, 如果stage1时候用的只是nptl(没加上nptlonly), 那么在系统中实际上会存在两个libc, 一个是支持nptl, 另一个不支持nptl.[/quote]

我只有一个,没有那个/lib/tls/libc.so.6的。。。我的libc.so.6输出是

GNU C Library 20050421 release version 2.3.90, by Roland McGrath et al.
Copyright (C) 2005 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 4.0.2 (Gentoo 4.0.2, pie-8.7..
Compiled on a Linux 2.6.11 system on 2005-10-01.
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
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        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>.

这个有问题么??
回复

使用道具 举报

发表于 2005-10-5 08:28:42 | 显示全部楼层
刚刚eupdatedb 的slocate libc.so.6输出也只有一个。。。。是不是就没有问题了?
回复

使用道具 举报

发表于 2005-10-5 17:56:08 | 显示全部楼层
Native POSIX Threads Library by Ulrich Drepper et al

这个不就是nptl吗
回复

使用道具 举报

发表于 2005-10-5 17:57:38 | 显示全部楼层
是你grep的问题啦, nptl=Native POSIX Threads Library  
回复

使用道具 举报

发表于 2005-10-5 23:44:20 | 显示全部楼层
[quote:7c7c58854b="Amorous"]# /lib/libc.so.6 |grep nptl
....(nothing)
and my X started without remerge nvidia-kernel,I think there must be somting wrong,
but I saw "Native Posix Thread Library " when I read the message again....hoho[/quote]

是啊,呵呵,我也看到了,可是和上边的帖子不太一样,所以就有点怀疑:)可能是版本的缘故吧

谢谢你:)
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-2 03:35 , Processed in 0.107436 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

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