gen2 发表于 2004-6-24 23:36:06

用nptl后,使用Azureus[一个用java写的BT客户端,很不错的]快了不是一点点,轻松就产生出上百个连接。

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


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]>.


注意上面的NPTL 0.61 by Ulrich Drepper。

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

编辑 /etc/make.conf, 在USE中加入nptl

emerge linux-headers
emerge glibc
emerge gcc# 在emerge glibc 之后

winme 发表于 2004-6-25 08:37:56

哦,看来我也要弄个JAVA程序来试试效果 !

gen2 发表于 2004-6-25 09:17:15



emerge azureus-bin


这是个BT的客户端。

Amorous 发表于 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

linky_fan 发表于 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.

Amorous 发表于 2005-10-5 08:23:57


# /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.

我只有一个,没有那个/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.8).
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>.

这个有问题么??

Amorous 发表于 2005-10-5 08:28:42

刚刚eupdatedb 的slocate libc.so.6输出也只有一个。。。。是不是就没有问题了?

linky_fan 发表于 2005-10-5 17:56:08


Native POSIX Threads Library by Ulrich Drepper et al

这个不就是nptl吗 8)

linky_fan 发表于 2005-10-5 17:57:38

是你grep的问题啦, nptl=Native POSIX Threads Library:lol:

Amorous 发表于 2005-10-5 23:44:20

# /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

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

谢谢你:)
页: 1 [2]
查看完整版本: 在gentoo 20040204中使用nptl.