LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: ldh168

求助:编译glibc打开ntpl问题

[复制链接]
 楼主| 发表于 2004-11-1 08:53:43 | 显示全部楼层
呵呵!应该是拼错的问题。ntpl应改为nptl,这是重新编译后执行/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-11-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
        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>.

麻烦各位了,谢谢!
发表于 2004-11-1 11:18:24 | 显示全部楼层
这不是成功了吗?呵呵。
发表于 2004-11-4 23:21:11 | 显示全部楼层
好象有些人的glibc是linuxthreads和nptl都有,为什么要搞成两个都有呢?这样的话系统会优先用哪一个呢?
发表于 2004-11-6 19:56:49 | 显示全部楼层
想知道,谁能告诉我啊?
发表于 2004-11-6 20:06:59 | 显示全部楼层
最初由 subltam 发表
好象有些人的glibc是linuxthreads和nptl都有,为什么要搞成两个都有呢?这样的话系统会优先用哪一个呢?

你在哪看到两个都有啊?照理应该只会有一个的。
发表于 2004-11-6 20:45:37 | 显示全部楼层
最初由 kohno 发表
你在哪看到两个都有啊?照理应该只会有一个的。

也许我说错了,应该是安装了两个glibc吧!
其实现在的glibc安装的时候一般是给你安装了两个版本,nptl的在/lib/tls目录下
你执行/lib/tls/libc.so.6就可以看到了
 楼主| 发表于 2004-11-7 13:36:21 | 显示全部楼层
现在最新的glibc有一个变量nptlonly,加入以后就只编译一个了。
发表于 2004-11-10 00:30:16 | 显示全部楼层
!nptlonly
* Warning! Gentoo's GLIBC with NPTL enabled now behaves like the
* glibc from almost every other distribution out there. This means
* that glibc is compiled -twice-, once with linuxthreads and once
* with nptl. The NPTL version is installed to lib/tls and is still
* used by default. If you do not need nor want the linuxthreads
* fallback, you can disable this behavior by adding nptlonly to
* USE to save yourself some compile time.
发表于 2004-11-10 01:24:53 | 显示全部楼层
当你想用 nptl 选项给你的系统的时候, 你的glibc 需要一般编译两次, 第一次编译是glibc 和linux26-headers的编译, 第二次编译是glibc 和nptl的编译. 只有编译了两次, 你的nptl 才起作用.
发表于 2004-11-10 07:13:37 | 显示全部楼层
现在我的是这样的了
  1. localhost portage # /lib/libc.so.6
  2. GNU C Library 20041102 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.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6).
  8. Compiled on a Linux 2.6.8 system on 2004-11-09.
  9. Available extensions:
  10.         GNU libio by Per Bothner
  11.         crypt add-on version 2.1 by Michael Glad and others
  12.         linuxthreads-0.10 by Xavier Leroy
  13.         The C stubs add-on version 2.1.2.
  14.         GNU Libidn by Simon Josefsson
  15.         BIND-8.2.3-T5B
  16.         libthread_db work sponsored by Alpha Processor Inc
  17.         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
  18. Thread-local storage support included.
复制代码
  1. localhost portage # /lib/tls/libc.so.6
  2. GNU C Library 20041102 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.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6).
  8. Compiled on a Linux 2.6.8 system on 2004-11-09.
  9. Available extensions:
  10.         GNU libio by Per Bothner
  11.         crypt add-on version 2.1 by Michael Glad and others
  12.         Native POSIX Threads Library by Ulrich Drepper et al
  13.         The C stubs add-on version 2.1.2.
  14.         GNU Libidn by Simon Josefsson
  15.         BIND-8.2.3-T5B
  16.         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
  17. Thread-local storage support included.
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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