由买买提看人间百态

topics

全部话题 - 话题: glibc
1 2 3 4 下页 末页 (共4页)
R******d
发帖数: 1436
1
来自主题: Linux版 - glibc版本过高怎么办?
现在装的是centos7,安装某个软件的时候提示:
系统是:readhat 5.2 64bit glibc 02.17
需要:readhat 6.1 64bit glibc 02.11.01 才能安装。
查了一下,02.17好像往下兼容02.11啊。请问有什么办法再装个低版本的glibc?现在
的环境软件安装不上了。
谢谢
rpm -q glibc,提示:
glibc-2.17-55.el7_0.1.x86_64
glibc-2.17-55.el7_0.1.i686
strings /lib/libc-2.17.so |grep GLIBC,提示:
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
... 阅读全帖
R******d
发帖数: 1436
2
来自主题: Linux版 - glibc版本过高怎么办?
现在装的是centos7,安装某个软件的时候提示:
系统是:readhat 5.2 64bit glibc 02.17
需要:readhat 6.1 64bit glibc 02.11.01 才能安装。
查了一下,02.17好像往下兼容02.11啊。请问有什么办法再装个低版本的glibc?现在
的环境软件安装不上了。
谢谢
rpm -q glibc,提示:
glibc-2.17-55.el7_0.1.x86_64
glibc-2.17-55.el7_0.1.i686
strings /lib/libc-2.17.so |grep GLIBC,提示:
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
... 阅读全帖
S*A
发帖数: 7142
3
来自主题: Linux版 - glibc和kernel的兼容性问题
应该没有问题的。glibc 几乎是一直向下兼容的。我还没有听说这个
interface 会让旧的 glibc 不能跑的变化。这就是 kernel 重来不
改变 system call API 的原因。例如新的 mmap 是加一个 mmap2 的
system call. 然后内部把旧的 mmap system call 翻译到等价的 mmap2
上面去。不会直接换 mmap system call 的。
kernel developer 非常注意不干这种 break glibc 向下兼容的事情的。
因为就 kernel developer 自己就很不方便,你要 bisect 一个 kernel
regression 还要换 glibc? Linus 那关肯定就过不了。
有其他的东西可能会导致换新 kernel 跑不起来,例如 udev, modprobe
这些东西。但是你什么时候注意到新 kernel 让旧的 libc 跑不起来的?
我是没有见过。
S*A
发帖数: 7142
4
来自主题: Linux版 - glibc和kernel的兼容性问题
比较孤陋寡闻,你说的是那个事情?
听上去很不解啊, 很难想象 kernel break glibc 的 memcpy.
glibc 的 memcpy 关 kernel 什么事呢?
如果说是在 kernel 引用 glibc 的 memcpy, 那完全是 kernel
内部的问题,和 LZ 关心的 kernel & glibc 兼容性是两回事。
S*A
发帖数: 7142
5
来自主题: Linux版 - glibc和kernel的兼容性问题
啊多谢 Link。这个就是我说的 memcpy vs memmove 的东西。
这个跟 kernel 完全没有关系,就是 glibc 和 flash 之间的
问题。完全是 user space, 不能因为 Linus 跳进来讨论就自
动变成 kernel 问题了。
而且 Linus 一再强调尽量保持 binary interface 的重要性。
这个和 kernel 不应该 break glibc 里讨论的原因是完全
一致的。非常典型的 Linus 的一贯立场啊。所以我相信破坏
glibc 兼容性的改动过不了 Linus 那一关的。
https://bugzilla.redhat.com/show_bug.cgi?id=638477#c222
什么时候变成 kernel vs glibc 的兼容性问题了?
d****n
发帖数: 1637
6
来自主题: Linux版 - glibc版本过高怎么办?
google is your good friend.
http://stackoverflow.com/questions/847179/multiple-glibc-librar
""""
It is very possible to have multiple versions of glibc on the same system (
we do that every day).
However, you need to know that glibc consists of many pieces (200+ shared
libraries) which all must match. One of the pieces is ld-linux.so.2, and it
must match libc.so.6, or you'll see the errors you are seeing.
The absolute path to ld-linux.so.2 is hard-coded into the executable at link
time, and can ... 阅读全帖
f**c
发帖数: 791
7
【 以下文字转载自 Linux 讨论区 】
发信人: ffgc (■■), 信区: Linux
标 题: about compiling new glibc/gcc in fc14
发信站: BBS 未名空间站 (Wed May 8 19:11:50 2013, 美东)
just curious: if i compile new versions of glibc (like 2.16) and gcc (like 4
.7) and override the default versions (glibc 2.13 and gcc 4.5) under fc14,
will programs compiles using old versions have problem?
do not want to upgrade to higher versions of fedora, but still need to use
some programs that require newer versions of glibc/gcc
thanks,
f**c
发帖数: 791
8
来自主题: Linux版 - about compiling new glibc/gcc in fc14
just curious: if i compile new versions of glibc (like 2.16) and gcc (like 4
.7) and override the default versions (glibc 2.13 and gcc 4.5) under fc14,
will programs compiles using old versions have problem?
do not want to upgrade to higher versions of fedora, but still need to use
some programs that require newer versions of glibc/gcc
thanks,
p******s
发帖数: 18
9
【 以下文字转载自 Linux 讨论区 】
发信人: progress (飞色精灵), 信区: Linux
标 题: 哪里能看一下fedora glibc 的 make configuration
发信站: BBS 未名空间站 (Sun Jun 14 11:54:48 2009, 美东)
机器上装了fedora10, download 了glibc的rpm source, 如果要make, 先要configure
, 怎么知道make机器上装的 (fedora10 release 的)glibc时,用的是什么
configuration呢
D********g
发帖数: 30
10
在CentOS 6.5下面安装Android NDK,结果发现安装文件需要glibc 2.14,而CentOS 6.
5的glibc是2.12,不想升级CentOS, 也不想去麻烦build libc, 那么哪个NDK的版本是
依赖于glibc 2.12?
p******s
发帖数: 18
11
机器上装了fedora10, download 了glibc的rpm source, 如果要make, 先要configure
, 怎么知道make机器上装的 (fedora10 release 的)glibc时,用的是什么
configuration呢
s****n
发帖数: 786
12
来自主题: Linux版 - glibc和kernel的兼容性问题
如果你编译的时候kernel-headers也是2.6.11,你还是需要重新编译glibc
否则glibc在新kernel下可能不工作,如果你用了更新的头文件,可能可以工作。
2.6.12以后变化很大
b****y
发帖数: 169
13
来自主题: Linux版 - glibc和kernel的兼容性问题
如果我冒死编译,安装2.6.30,之后能启动吗?
我这是一个embeded system。会不会dropbear都不工作了?
我是否还有机会通过串口登陆,编译,安装glibc?
还是说我一趟把kernel, glibc都编译安装好了再重启?然后祈祷...
多谢!
S*A
发帖数: 7142
14
来自主题: Linux版 - glibc和kernel的兼容性问题
如果有这么一个改动让旧的 glibc 不能用的话,
这就意味着你做 "git pull" 然后编译新的 kernel 之后
你的系统就起不来了。这个改动强制大家升级 glibc 会挨很多砖头的。
F*******i
发帖数: 190
15
来自主题: Programming版 - glibc question
I see,
you mean the current shell(assuming it was compiled by old glibc provided by
default installation) is not compatible with new glibc?
thanks,
h****r
发帖数: 2056
16
来自主题: Programming版 - 有谁对glibc的allocator有研究?
啥时候glibc的allocato自己call arena_get2 --》 mmap?
下面这个thread的stack显示出不属于任何applicaiton thread,应该是glibc的
allocator发现master arena没法用了,只好再建一个新的heap。
(gdb) c
Continuing.
[Switching to Thread 0xb53b4b90 (LWP 8084)]
Breakpoint 1, 0xb7f68b10 in mmap () from /lib/libc.so.6
(gdb) where
#0 0xb7f68b10 in mmap () from /lib/libc.so.6
#1 0xb7efff16 in new_heap () from /lib/libc.so.6
#2 0xb7f000b1 in _int_new_arena () from /lib/libc.so.6
#3 0xb4a00010 in ?? ()
#4 0xb4a00010 in ?? ()
#5 0xb53b4118 in ?? ()
#6 ... 阅读全帖
b****y
发帖数: 169
17
来自主题: Linux版 - glibc和kernel的兼容性问题
我的glibc2.5是在2.6.11下编译的。
如果我升级到2.6.30需要重新编译glibc吗?
谢谢!
s****n
发帖数: 786
18
来自主题: Linux版 - glibc和kernel的兼容性问题
glibc要是有问题根本启动不了,dropbear就别想了,不过你既然有串口,又是
embedded, 随时用bootloader重新烧不行吗?
不知道你是什么系统,最好交叉编译,直接在目标系统编译简直开玩笑。
s****n
发帖数: 786
19
来自主题: Linux版 - glibc和kernel的兼容性问题
kernel developer自己就和glibc developer打过架,这都很有名的公案。。。
lz用的是2.6.11,这个版本刚好有点尴尬。
S*A
发帖数: 7142
20
来自主题: Linux版 - glibc和kernel的兼容性问题
faint. 你是说 drepper 么,这家伙和谁不打架来着?我都
没法知道你想引用的是哪一个 case 了。再说了, kernel
developer 自己在 lkml 上面掐架很正常啊,哪个大点的改动
是没有掐过的,就是正常的开发模式的一部分。林子大了,
众口难调,讨论一下是正常的。
你是知道什么 kernel 2.6.11 以后不向下兼容 glibc 的例子么?
具体说说?
r*****z
发帖数: 906
21
来自主题: Linux版 - glibc和kernel的兼容性问题
插一句:最最近的memcpy问题,应该也算是kernel和glibc开发者闹别扭的事情
s*******n
发帖数: 2828
22
来自主题: Linux版 - glibc和kernel的兼容性问题
成天升级内核,表示无压力,从来没特意编译glibc过
S*A
发帖数: 7142
23
来自主题: Linux版 - glibc和kernel的兼容性问题
再看看这个 bug, 严重同意 Linus 的观点。
这就是为什么大家很信任 Linus 的原因,因为他比较敏锐指出
问题的实质,提出比较实际的解决方案,不同于传统的习惯思维。
一般人骂骂 flash 就完了。Linus 要求 glibc 吧 memcpy
实现成 memmove 的确是更加完美的方案。
Linus is always right. 又一次成功的体现。
r*****z
发帖数: 906
24
来自主题: Linux版 - glibc和kernel的兼容性问题
不是兼容性问题,而是理念差异
glibc的开发人员希望逐渐向标准靠拢,修改不符合标准的行为,无论有多少代价
R******d
发帖数: 1436
25
来自主题: Linux版 - glibc版本过高怎么办?
有没有可能两套glibc共存,好比python make altinstall那样?
F*******i
发帖数: 190
26
来自主题: Programming版 - glibc question
thanks!
do you mean new lib --> new glibc,
what does the old lib mean?
thanks
e****d
发帖数: 895
27
来自主题: Programming版 - glibc question
the original glibc used by your shell.
M*******n
发帖数: 508
28
来自主题: Unix版 - [转载] help on glibc
【 以下文字转载自 Linux 讨论区 】
【 原文由 MildSeven 所发表 】
I'm using redhat 9 and installed a program Tecplot.
when I run it, I got the following msg:
/usr/tec92/bin/tecplot.shared: relocation error: /usr/tec92/lib/libtec.so:
symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference
There is a glibc bugfix pacage in redhat.com,
http://rhn.redhat.com/errata/RHBA-2003-136.html
claimng that it can deal with the bug of
"bligc 2.0.x compatibility was missing",
I think that's what I need
w**z
发帖数: 8232
29
来自主题: Programming版 - Linux vulnerability "GHOST"
Highly critical “Ghost” allowing code execution affects most Linux systems
New bug haunting Linux could spark "a lot of collateral damage on the
Internet."
by Dan Goodin - Jan 27 2015, 11:32am PST
Share
Tweet
110
Pixabay
An extremely critical vulnerability affecting most Linux distributions gives
attackers the ability to execute malicious code on servers used to deliver
e-mail, host webpages, and carry out other vital functions.
The vulnerability in the GNU C Library (glibc) represents a... 阅读全帖
s****c
发帖数: 11300
30
来自主题: Hardware版 - pogoplug 折腾总结
3. 升级系统到最新
在完成安装之后,执行 pacman -Syu 更新系统,100%会得到下面错误:
error:
glibc: /lib exists in filesystem
这是由于archlinux本身安装文件的依赖错误,通过以下方法解决:
1) Updated ignoring glibc:
pacman -Su --ignore glibc
2) Removed pcmciautils:
pacman -R pcmciautils
3) Removed oxnas-no pci:
pacman -R kernel26-oxnas-nopci
4) Removed oxnas-pic:
pacman -R kernel26-oxnas-pci
5) Deleted the gmac_copro_firmware from /usr/lib/firmware and copied the one
from /lib/firmware to /usr/lib/firmware. ( I did this because I read a post
that Warhead s... 阅读全帖
s****c
发帖数: 11300
31
来自主题: Hardware版 - pogoplug 折腾总结
3. 升级系统到最新
在完成安装之后,执行 pacman -Syu 更新系统,100%会得到下面错误:
error:
glibc: /lib exists in filesystem
这是由于archlinux本身安装文件的依赖错误,通过以下方法解决:
1) Updated ignoring glibc:
pacman -Su --ignore glibc
2) Removed pcmciautils:
pacman -R pcmciautils
3) Removed oxnas-no pci:
pacman -R kernel26-oxnas-nopci
4) Removed oxnas-pic:
pacman -R kernel26-oxnas-pci
5) Deleted the gmac_copro_firmware from /usr/lib/firmware and copied the one
from /lib/firmware to /usr/lib/firmware. ( I did this because I read a post
that Warhead s... 阅读全帖
D***h
发帖数: 78
32
Arch Linux? pacman的极乐世界?
%pacman -S links
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
Targets (14): linux-api-headers-3.3.2-1 glibc-2.15-10 libarchive-3.0.4-1
ca-certificates-20120212-1 libssh2-1.4.2-1 curl-7.26.0-1
pth-2.0.7-4 libksba-1.2.0-1 libassuan-2.0.3-1
pinentry-0.8.1-3.1 dir... 阅读全帖
f******y
发帖数: 14
33
不这样还真不行!
原因是glibc2.2的问题,必须使用glibc2.1.3重新连接!
下面是我从Oracle网站里的一个讨论组下的东东,真是有用!
特贴出贡献大家!
I have received so many emails lately that I thought it
would help to re-post this under a different topic to make
it easier to find.
If you're having trouble with Oracle 8.1.x on any version of
Linux that uses glibc version 2.2, try this and see if it
solves your problem:
The problem is that Oracle 8.1.x needs glibc 2.1.3. It will
link without error with glibc 2.2, but when you try to run
dbassist or create a da
t********k
发帖数: 808
34
来自主题: Database版 - Linux 7.3下装ORACLE8.1.7新问题
在装前执行 unset LANG后,安装介面是乱码的问题解决了
然后按网上的风意进行安装
1.安装Jdk1.1.8_v3到/usr/local
cp jdk118_v3-glibc-2.1.3.tar.bz2 /usr/local/
cd /usr/local
bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2
tar -xvf jdk118_v3-glibc-2.1.3.tar
ln -s jdk118_v3 java
2.准备用户环境
加了dba,oinstall组
半加了oracle用户
建了一目录,用于装oracle,/u01
编辑.bash_profile,加上下面内容
. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/
export ORACL
y*******r
发帖数: 55
35
来自主题: Database版 - oracle8i在linux9的安装步骤(ZZ)
oracle8i在linux9的安装步骤
日期: 4月 25 @ 17:32:53 CST
文章主题: 数据库类
本安装步骤是经过本人数天的实践和参考其他网友的文档综合而成,只用于在REDHAT
LINUX 9.0 上安装oracle 8.1.7之用。在此对那些网友表示衷心感谢。
有疑问的话,请在下面地址回帖:
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=20060&s
id=
本安装步骤是经过本人数天的实践和参考其他网友的文档综合而成,只用于在REDHAT
LINUX 9.0 上安装oracle 8.1.7之用。在此对那些网友表示衷心感谢。
步骤1:准备软件
下载JDK,sun网站上1.4,1.3都可。
下载oracle的补丁:glibc-2.1.3-stubs.tar.gz
下载glibc-2.1: i386.glibc-2.1-linux.tar.gz
下载binutils:binutils-2.10.91.0.2-3.i386.rpm
上述软件包请自己进行寻找,本人不提供
步骤2:
y**b
发帖数: 10166
y**b
发帖数: 10166
t****t
发帖数: 6806
38
来自主题: Programming版 - Python problem on 64 bit Linux
you don't have to compile to 64bit. e.g. for gcc, you can specifiy -m32 to
compile to 32bit. make sure you have 32bit devel environment installed, such
as glibc-devel.i386 for fedora. the 32bit runtime (e.g. glibc.i386/glibc.
i686) is usually installed by default.
i only use fedora, the package name could be different for other
distributions.
d*********8
发帖数: 2192
39
man dlopen
Glibc extensions: dladdr() and dlvsym()
Glibc adds two functions not described by POSIX, with prototypes
#define _GNU_SOURCE
#include
int dladdr(void *addr, Dl_info *info);
void *dlvsym(void *handle, char *symbol, char *version);
The function dladdr() takes a function pointer and tries to resolve
name and file where it is located. Information is stored in the Dl_info
strucâ€
ture:
typedef struct {
... 阅读全帖
X****r
发帖数: 3557
t********k
发帖数: 808
41
来自主题: Unix版 - Linux 7.3下装ORACLE8.1.7新问题
在装前执行 unset LANG后,安装介面是乱码的问题解决了
然后按网上的风意进行安装
1.安装Jdk1.1.8_v3到/usr/local
cp jdk118_v3-glibc-2.1.3.tar.bz2 /usr/local/
cd /usr/local
bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2
tar -xvf jdk118_v3-glibc-2.1.3.tar
ln -s jdk118_v3 java
2.准备用户环境
加了dba,oinstall组
半加了oracle用户
建了一目录,用于装oracle,/u01
编辑.bash_profile,加上下面内容
. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/
export ORACL
d*********8
发帖数: 2192
42
简单说只要不link gpl的库就可以不遵循gpl 有些库采用lgpl 可以link而不用公开代
码 比如glibc 就是lgpl
所以在linux上跑的oracle使用glibc 但不用公开代码 各个公司开发的内核驱动都要公
开代码 但有个workaround 就是商业公司提供一个binary blob 用内核调用这个blob
这样只需要公开wrapper的代码
H********g
发帖数: 43926
43
例如上次谁推荐的github atom,yum装倒是装得上,但是装上以后告诉你非要用glibc
2.14 或2.15.
centOS6.5就给2.12,有人说如果自己编译glibc可能导致整个图形系统崩溃。所以我也
没试。
t****t
发帖数: 6806
44
来自主题: Hardware版 - 64位系统怎么调32位系统的存档
on linux gcc, you may use gcc -m32 to compile the program into 32 bit anyway
. you need to install 32 bit glibc though. 32/64 bit glibc don't conflict.
the most significant sizeof() change between gcc -m32 and gcc -m64 is the
sizeof(T*) and sizeof(long) is changed from 32 to 64.
other types, such as char, int, short, float, double, are not changed.
s***d
发帖数: 960
45
SAMBA按照这个比较新的攻略装,第二步就出错pacman -Syu –ignore glibc,cur。 装
完后老是重启不了。而且webmin也上不了。帮帮我这个LINUX NEWBIE.
1. Always remember to change the root password : passwd root
2. Install the latest updates -
pacman -Syu –ignore glibc,cur
pacman -Sd binutils gcc gcc-libs
pacman -Rs pcmciautils [remove this package]
pacman -Su
- further updates for the system would just require a ” pacman -Syu ” and
you’ll be getting the latest updates =).
3. Setting the hostname for your server (I called m... 阅读全帖
S*A
发帖数: 7142
46
来自主题: Hardware版 - Linux果然不能手贱上新版啊
标准安装就可以。/boot 分区不能小于 500M.
其他要求不大。
其他几个 distro 的 QA 我自己觉得不如 FC 之类的。
我曾经调过 ubuntu 官方发布的 glibc 里面用了 MMX 指令来
memcpy, 然后不align 的 copy 就直接 segfault。
这个 patch ubuntu 的人试图推到 glibc,被 RH 的人把守推
不进去。然后就自己 fork。 结果连基本的 QA 都没做就悲剧了。
F***Q
发帖数: 6599
47
来自主题: Hardware版 - ubuntu很不错啊

}/
no need to compile, install the compat-glibc package, for example
https://centos.pkgs.org/7/centos-x86_64/compat-glibc-2.12-4.el7.centos.x86_
64.rpm.html
n******t
发帖数: 4406
48
来自主题: Linux版 - Linux Desktop 还是太保守了
win32api和glibc类比才真叫一个不当。。。
glibc里面包含了C的标准库函数,而M$的crt是在win32api之外的。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Win32api里面当然包括系统调用。当然现在有人把这个叫做windows api,
这个名词之争没有太大的意义。
d********g
发帖数: 10550
49
很多是上游的bug,Arch由于用得早,一般是最早让问题暴露的distro,也修得最快
像glibc 2.15有个AVX的bug,Xen虚拟机会kernel panic。也是Arch最早发现的
CentOS就别指望了,6.2还在用glibc 2.12,要等它来发现2.15的bug,等100年吧
f**c
发帖数: 791
50
fc14 comes with glibc2.13, 但要装的一个程序死活要2.15 or newer version glibc
。可是这些新的glibc的rpm包只对f16/17.怎搞?有没有个详细的自己编译的步骤?
1 2 3 4 下页 末页 (共4页)