LinuxSir.cn,穿越时空的Linuxsir!

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

glibc 2.4已进~x86!2006-03-11

[复制链接]
发表于 2006-3-11 11:53:04 | 显示全部楼层 |阅读模式
应该是最先使用glibc 2.4的发行版.
[ebuild     U ] sys-libs/glibc-2.4 [2.3.6-r3] USE="nls nptl nptlonly userlocales -build -erandom -glibc-omitfp -hardened -pic -profile" 15,334 kB
glibc 2.4发布了,这个版本的glibc正式采用NTPL作为pthread实现,并且要求2.6以上的内核。

http://sourceware.org/ml/libc-alpha/2006-03/msg00050.html
GNU C Library version 2.4 release

* From: Roland McGrath <roland at gnu dot org>
* To: info-gnu at gnu dot org
* Cc: libc-announce at sources dot redhat dot com, libc-alpha at sources dot redhat dot com
* Date: Mon, 6 Mar 2006 04:46:48 -0800 (PST)
* Subject: GNU C Library version 2.4 release

Version 2.4 of the GNU C Library is now available for download at:

http://ftp.gnu.org/gnu/glibc/
ftp://ftp.gnu.org/gnu/glibc/
ftp://sources.redhat.com/pub/glibc/releases/

Please see http://www.gnu.org/order/ftp.html and
http://sources.redhat.com/mirrors.html for mirror sites around the world.

Version 2.4 is the first release after a long period of development, and
introduces changes to the API and a new ABI for all configurations. The
NEWS file in the distribution lists major additions, and there are many
smaller changes along with innumerable bug fixes. This code has been
tested and deployed in new production systems, but should still be
considered somewhat experimental. The stable 2.3 release series
continues to be maintained, and implements a widely-deployed ABI.
Version 2.3.6 is available, and we will release 2.3.7 with more bug fixes.

Once you install version 2.4, most program binaries you compile will not
be able to run on older installations based on 2.3.6 or earlier versions.
Existing dynamically-linked program binaries built using older glibc
versions should continue to work if they make proper use of the library
interfaces as specified.

While the code in this release has received substantial testing and is
going into new production systems, we are already aware of a few issues
and have a backlog of problem reports awaiting investigation. We believe
this release marks a point of decent stability and substantial improvement
over version 2.3, and its ABI will remain stable for later 2.4 releases.
We hope that making this release now will lead to more strenuous testing.
We anticipate a 2.4.1 release in the not too distant future to tie up
loose ends and fold in more fixes and improvements made after the initial
deployments of systems based on the 2.4 ABI.

Be advised that updating the C library is no trivial task and it is very
easy to damage one's system. Unless you are participating in the
development and maintenance of the C library, you should use a binary
distribution instead. The code in this release has already been built
and tested by maintainers of binary distributions basing their systems
on it. If you are not already using a system based on the version 2.4
ABI, then you may wreak havoc by attempting to install this version.

We recommend using GCC 4.1 to build this version of the GNU C Library.
For the S/390 and 32-bit PowerPC architectures, GCC 4.1 is required.
For other architectures, GCC 3.4 or later will work but 4.0 and 4.1 are better.

The following files are available:

7e9a88dcd41fbc53801dbe5bdacaf245 glibc-2.4.tar.bz2 (15M)
e2d892b40d654c523ab26a26b7dd86a1 glibc-libidn-2.4.tar.bz2 (100K)
7bb1b35654e94994925e66676acabd4e glibc-ports-2.4.tar.bz2 (373K)
e262cc1dbf25533617346b1a02913de4 glibc-2.4.tar.gz (20M)
8c6fffec7a408d6e53ae2cd75a2cd603 glibc-libidn-2.4.tar.gz (124K)
40fa7d7e8417a8ae4051dff156c3bbbb glibc-ports-2.4.tar.gz (535K)

This release like all others was made possible by the contributions of many
people. We are very grateful to all of them, and chief among those are:

Ulrich Drepper
Jakub Jelinek
Paul Eggert
H.J. Lu
Steven Munroe
Andreas Jaeger
Thorsten Kukuk
Richard Henderson
Daniel Jacobowitz
Andreas Schwab
GOTO Masanori
Kaz Kojima
Alan Modra
Thomas Schwinge
David S. Miller
Alfred M. Szmidt
Joseph S. Myers
Paolo Bonzini
Alexandre Oliva
Martin Schwidefsky


Enjoy!
Roland McGrath for the GNU C Library Developers

相对于上一版本的更新:

Version 2.4

* More overflow detection functions.

* New iconv converters for IBM1025, IBM1122, IBM1137, IBM1153,
IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158 contributed by Jiro Sekiba.

More converters for IBM803, IBM901, IBM902, IBM921, IBM1008, IBM1097,
IBM1112, IBM1123, IBM1130, IBM1140, IBM1141, IBM1142, IBM1143, IBM1144,
IBM1145, IBM1146, IBM1147, IBM1148, IBM1149, IBM1166, IBM1167, IBM4517,
IBM4899, IBM4909, IBM4971, IBM5347, IBM9030, IBM9066, IBM9448, IBM12712,
IBM16804, IBM1364, IBM1371, IBM1388, IBM1390, and IBM1399 contributed
by Masahide Washizawa.

* It is now possible to install audit libraries for the dynamic linker using
LD_AUDIT. Implemented by Ulrich Drepper.

* The LinuxThreads add-on, providing pthreads on Linux 2.4 kernels, is no
longer supported. The new NPTL implementation requires Linux 2.6 kernels.
For a libc and libpthread that works well on Linux 2.4 kernels, we
recommend using the stable 2.3 branch.

* The new function open_wmemstream acts like open_memstream,
but uses a wchar_t wide character buffer.

* The new function ppoll is an improved version of poll, similar to pselect.

* New interfaces: fdopendir, openat, fstatat, fchmodat, fchownat,
futimesat, faccessat, mkdirat, mkfifoat, mknodat,
renameat, unlinkat, linkat, symlinkat, readlinkat.

* New Linux kernel system calls: unshare,
inotify_init, inotify_add_watch, inotify_rm_watch.

* The euidaccess function is now also known by the alias eaccess,
for compatibility with some other systems.

* Timezone data updated to 2006b version.
发表于 2006-3-11 12:12:52 | 显示全部楼层
不错
有几点要注意
使用了glibc 2.4编译出来的大多数程序不能在使用glibc 2.3的系统中运行,反过来应该是可以的
还有此版本推荐使用gcc 4.1来编译
此版本不再支持与2.4内核配套的LinuxThreads线程库,所以一定要使用2.6内核才能用这个版本
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-11 14:10:22 | 显示全部楼层
我在运行的系统上升级2.3.6到2.4.proftpd.ssh.apache.之类的好象都行--重起即可.以proftpd为例lsof主进程
COMMAND  PID   USER   FD   TYPE DEVICE   SIZE   NODE NAME
proftpd 4171 nobody  cwd    DIR    8,1    440      2 /
proftpd 4171 nobody  rtd    DIR    8,1    440      2 /
proftpd 4171 nobody  txt    REG    8,1 406200 620794 /usr/local/proftpd120/sbin/proftpd
proftpd 4171 nobody  mem    REG    0,0             0 [heap] (stat: No such file or directory)
proftpd 4171 nobody  DEL    REG    8,1        624183 /var/tmp/portage/glibc-2.3.6-r3/image/lib/libnss_files-2.3.6.so
proftpd 4171 nobody  DEL    REG    8,1        624194 /var/tmp/portage/glibc-2.3.6-r3/image/lib/libdl-2.3.6.so
proftpd 4171 nobody  DEL    REG    8,1        624193 /var/tmp/portage/glibc-2.3.6-r3/image/lib/libc-2.3.6.so
proftpd 4171 nobody  DEL    REG    8,1        634053 /var/tmp/portage/pam-0.78-r5/image/lib/libpam.so.0.78
proftpd 4171 nobody  DEL    REG    8,1        623561 /var/tmp/portage/glibc-2.3.6-r3/image/lib/libcrypt-2.3.6.so
proftpd 4171 nobody  DEL    REG    8,1        624212 /var/tmp/portage/glibc-2.3.6-r3/image/lib/ld-2.3.6.so
proftpd 4171 nobody    0u  IPv4   6296           TCP *:ftp (LISTEN)
proftpd 4171 nobody    4r   REG    8,1   1736 605154 /etc/passwd
proftpd 4171 nobody    5r   REG    8,1    745    594 /etc/group
重起后再lsof
COMMAND  PID   USER   FD   TYPE  DEVICE    SIZE   NODE NAME
proftpd 3259 nobody  cwd    DIR     8,1     440      2 /
proftpd 3259 nobody  rtd    DIR     8,1     440      2 /
proftpd 3259 nobody  txt    REG     8,1  406200 620794 /usr/local/proftpd120/sbin/proftpd
proftpd 3259 nobody  mem    REG     0,0              0 [heap] (stat: No such file or directory)
proftpd 3259 nobody  mem    REG     8,1   35292 727461 /lib/libnss_files-2.4.so
proftpd 3259 nobody  mem    REG     8,1   10596 728422 /lib/libdl-2.4.so
proftpd 3259 nobody  mem    REG     8,1 1234588 728225 /lib/libc-2.4.so
proftpd 3259 nobody  mem    REG     8,1   31680 699784 /lib/libpam.so.0.78
proftpd 3259 nobody  mem    REG     8,1   22456 728427 /lib/libcrypt-2.4.so
proftpd 3259 nobody  mem    REG     8,1  126559 728431 /lib/ld-2.4.so
proftpd 3259 nobody    0u  IPv4 1735448            TCP *:ftp (LISTEN)
proftpd 3259 nobody    4r   REG     8,1    1736 605154 /etc/passwd
proftpd 3259 nobody    5r   REG     8,1     745    594 /etc/group
再以sshd为例COMMAND   PID USER   FD   TYPE  DEVICE    SIZE   NODE NAME
sshd    28314 root  cwd    DIR     8,1     440      2 /
sshd    28314 root  rtd    DIR     8,1     440      2 /
sshd    28314 root  txt    REG     8,1  332116 647259 /usr/sbin/sshd
sshd    28314 root  mem    REG     0,0              0 [heap] (stat: No such file or directory)
sshd    28314 root  DEL    REG     8,1         689952 /lib/libnss_files-2.3.6.so
sshd    28314 root  DEL    REG     8,1         689956 /lib/libnss_nis-2.3.6.so
sshd    28314 root  DEL    REG     8,1         688922 /lib/libnss_compat-2.3.6.so
sshd    28314 root  DEL    REG     8,1         689965 /lib/libc-2.3.6.so
sshd    28314 root  DEL    REG     8,1         689155 /lib/libcrypt-2.3.6.so
sshd    28314 root  DEL    REG     8,1         689968 /lib/libnsl-2.3.6.so
sshd    28314 root  mem    REG     8,1   61372    616 /lib/libz.so.1.2.3
sshd    28314 root  DEL    REG     8,1         689961 /lib/libutil-2.3.6.so
sshd    28314 root  mem    REG     8,1 1107724 361867 /usr/lib/libcrypto.so.0.9.7
sshd    28314 root  DEL    REG     8,1         689967 /lib/libresolv-2.3.6.so
sshd    28314 root  DEL    REG     8,1         689966 /lib/libdl-2.3.6.so
sshd    28314 root  mem    REG     8,1   31680 699784 /lib/libpam.so.0.78
sshd    28314 root  mem    REG     8,1   26196    567 /lib/libwrap.so.0.7.6
sshd    28314 root  DEL    REG     8,1         689962 /lib/ld-2.3.6.so
sshd    28314 root    0u   CHR     1,3           1085 /dev/null
sshd    28314 root    1u   CHR     1,3           1085 /dev/null
sshd    28314 root    2u   CHR     1,3           1085 /dev/null
sshd    28314 root    3u  IPv4 1208121            TCP *:ssh (LISTEN)
重起后COMMAND  PID USER   FD   TYPE  DEVICE    SIZE   NODE NAME
sshd    3389 root  cwd    DIR     8,1     440      2 /
sshd    3389 root  rtd    DIR     8,1     440      2 /
sshd    3389 root  txt    REG     8,1  332116 647259 /usr/sbin/sshd
sshd    3389 root  mem    REG     0,0              0 [heap] (stat: No such file or directory)
sshd    3389 root  mem    REG     8,1   35292 727461 /lib/libnss_files-2.4.so
sshd    3389 root  mem    REG     8,1   35468 728426 /lib/libnss_nis-2.4.so
sshd    3389 root  mem    REG     8,1   30952 728277 /lib/libnss_compat-2.4.so
sshd    3389 root  mem    REG     8,1 1234588 728225 /lib/libc-2.4.so
sshd    3389 root  mem    REG     8,1   22456 728427 /lib/libcrypt-2.4.so
sshd    3389 root  mem    REG     8,1   74200 728429 /lib/libnsl-2.4.so
sshd    3389 root  mem    REG     8,1   61372    616 /lib/libz.so.1.2.3
sshd    3389 root  mem    REG     8,1   10308 728430 /lib/libutil-2.4.so
sshd    3389 root  mem    REG     8,1 1107724 361867 /usr/lib/libcrypto.so.0.9.7
sshd    3389 root  mem    REG     8,1   64600 728285 /lib/libresolv-2.4.so
sshd    3389 root  mem    REG     8,1   10596 728422 /lib/libdl-2.4.so
sshd    3389 root  mem    REG     8,1   31680 699784 /lib/libpam.so.0.78
sshd    3389 root  mem    REG     8,1   26196    567 /lib/libwrap.so.0.7.6
sshd    3389 root  mem    REG     8,1  126559 728431 /lib/ld-2.4.so
sshd    3389 root    0u   CHR     1,3           1085 /dev/null
sshd    3389 root    1u   CHR     1,3           1085 /dev/null
sshd    3389 root    2u   CHR     1,3           1085 /dev/null
sshd    3389 root    3u  IPv4 1735643            TCP *:ssh (LISTEN)
回复 支持 反对

使用道具 举报

发表于 2006-3-11 15:34:41 | 显示全部楼层
Post by zhllg
不错
有几点要注意
使用了glibc 2.4编译出来的大多数程序不能在使用glibc 2.3的系统中运行,反过来应该是可以的
还有此版本推荐使用gcc 4.1来编译
此版本不再支持与2.4内核配套的LinuxThreads线程库,所以一定要使用2.6内核才能用这个版本


如果要升级有没有什么升级建议。我上次把gcc升到4.1,也许升得有问题,系统中很多程序都用不料了。后来只好重新安装,一切使用“保守”配置,gcc只敢用3.4.5了。对于这些系统程序现在有点不敢胡乱动了。
这样下来感觉整个系统速度有点慢。
回复 支持 反对

使用道具 举报

发表于 2006-3-11 16:44:24 | 显示全部楼层
glibc升级应该问题不大, 我已经升级到gcc4.1了, 正在merge glibc 2.4.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-11 17:59:33 | 显示全部楼层
最好不要自己用gentoo不推荐的ebuild.只用x86最多用~x86
回复 支持 反对

使用道具 举报

发表于 2006-3-11 18:13:02 | 显示全部楼层
我现在正在从stage1编译,用的是gcc4.1和glibc2.4,但愿别闹出什么乱子。我现在系统上没有gcc3
回复 支持 反对

使用道具 举报

发表于 2006-3-11 18:35:10 | 显示全部楼层
好像还有不少包gcc 4.1编译不过去的。

正在用gcc-4.1 + glibc-2.4,感觉没什么问题。

还有,自从用了gcc-4.1以后,scim的qt immodule就不能用了。
回复 支持 反对

使用道具 举报

发表于 2006-3-11 19:29:53 | 显示全部楼层
merge成功了, 没有发现问题。
回复 支持 反对

使用道具 举报

发表于 2006-3-12 11:46:15 | 显示全部楼层
发布注意事项1
如果你曾经merge了ruby,那么在glibc升级到2.4之后, 你要重新merge ruby, 否则koffice等软件在编译的错误会出现错误。
回复 支持 反对

使用道具 举报

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

本版积分规则

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