LinuxSir.cn,穿越时空的Linuxsir!

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

你们的 /lib/tls 里边是什么?

[复制链接]
发表于 2006-2-24 02:42:51 | 显示全部楼层 |阅读模式
有这个目录么?里边都有什么文件?或者 /usr/lib/tls 里边有什么?

谢谢。
发表于 2006-2-24 05:16:31 | 显示全部楼层
ls /lib/tls/ -lrt
total 1984
-rwxr-xr-x  1 root root   38247 Nov 12 22:37 libthread_db-1.0.so
-rwxr-xr-x  1 root root   38424 Nov 12 22:37 librt-2.3.5.so
-rwxr-xr-x  1 root root  116362 Nov 12 22:37 libpthread-2.3.5.so
-rwxr-xr-x  1 root root  570832 Nov 12 22:37 libm-2.3.5.so
-rwxr-xr-x  1 root root 1255872 Nov 12 22:37 libc-2.3.5.so
lrwxrwxrwx  1 root root      14 Nov 12 22:37 librt.so.1 -> librt-2.3.5.so
lrwxrwxrwx  1 root root      19 Nov 12 22:37 libpthread.so.0 -> libpthread-2.3.5.so
lrwxrwxrwx  1 root root      19 Nov 12 22:37 libthread_db.so.1 -> libthread_db-1.0.so
lrwxrwxrwx  1 root root      13 Nov 12 22:37 libm.so.6 -> libm-2.3.5.so
lrwxrwxrwx  1 root root      13 Nov 12 22:37 libc.so.6 -> libc-2.3.5.so
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-24 05:37:29 | 显示全部楼层
谢谢。
/lib/tls/libc.so.6 运行结果是什么?
/lib/libc.so.6 这个文件是否存在?

我还想问,如果把这个目录改名了,那系统还能用不?
[color="Red"]不确定的话,别尝试!系统出错我不负责。
回复 支持 反对

使用道具 举报

发表于 2006-2-24 08:42:26 | 显示全部楼层
/lib/tls/libc.so.6
GNU C Library stable release version 2.3.5, 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 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8).
Compiled on a Linux 2.6.11 system on 2005-11-12.
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>.
ls -l /lib
lrwxrwxrwx  1 root root 5 Aug 31 14:43 /lib -> lib64
如果把/lib/tls/ move掉,系统会报错,系统好像可以运行。以前我升级的时候,系统没有了nptl了,运行的时候,软件会出错的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-24 09:50:59 | 显示全部楼层
谢谢你的回帖。

再问一下:就是说 /lib/ 下还有一个 libc.so.6 文件?
回复 支持 反对

使用道具 举报

发表于 2006-2-24 11:43:40 | 显示全部楼层
我没有/lib/tls
估计可能是这样的
如果用了nptl nptlonly
就没有/lib/tls了

谁同时有/lib/tls/libc.so.6
和/lib/libc.so.6
贴一下/lib/libc.so.6的执行结果
可能里面是LinuxThreads
回复 支持 反对

使用道具 举报

发表于 2006-2-24 13:49:14 | 显示全部楼层
我也没有/lib/tls,有/lib/libc.so.6
但我只用了nptl
回复 支持 反对

使用道具 举报

发表于 2006-2-24 13:51:51 | 显示全部楼层
我的[php]# /lib/libc.so.6
GNU C Library stable release version 2.3.6, 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.3 20060212 (prerelease) (Debian 4.0.2-9).
Compiled on a Linux 2.6.13 system on 2006-02-12.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        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>.
[/php][php]
# /lib/tls/libc.so.6
GNU C Library stable release version 2.3.6, 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.3 20060212 (prerelease) (Debian 4.0.2-9).
Compiled on a Linux 2.6.13 system on 2006-02-12.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        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>.[/php]
当你用ldd看一个程序所需库的时候会发现用的是/lib/tls/里面的东西,如果把/tls改名的话他就会用/lib里面的东西,所以将/lib/tls改名系统一样会用只是没有nptl罢了。
回复 支持 反对

使用道具 举报

发表于 2006-2-24 14:05:27 | 显示全部楼层
to zlbruce:
看来和我想的是一致的

to kohno:
可不可以贴贴emerge -pv glibc
回复 支持 反对

使用道具 举报

发表于 2006-2-24 14:35:39 | 显示全部楼层
# emerge -pv glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5-r2  -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls (-multilib) +nls +nptl -nptlonly -pic -profile (-selinux) +userlocales 0 kB
回复 支持 反对

使用道具 举报

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

本版积分规则

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