glibc is GNU's implementation of the Standard C library.
Questions tagged [glibc]
290 questions
74
votes
2 answers
Why and how are some shared libraries runnable, as though they are executables?
On 32-bit Linux systems, invoking this
$ /lib/libc.so.6
and on 64-bit systems this
$ /lib/x86_64-linux-gnu/libc.so.6
in a shell, provides an output like this:
GNU C Library stable release version 2.10.1, by Roland McGrath et al.
Copyright (C) 2009…
Ho1
- 2,552
- 3
- 20
- 25
62
votes
3 answers
How to update glibc to 2.14 in CentOS 6.5
I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update glibc by:
$ sudo yum update glibc
But after that I…
tonga
- 801
- 2
- 9
- 6
45
votes
4 answers
What is the difference between i686 and x86_64 packages?
I have a machine with both glibc i686 and x86_64, and a very annoying problem with glibc.
Is it normal to have two libraries of the same name installed on one computer? How can I know which library is executed?
Until recently, I believed that…
MUY Belgium
- 1,234
- 2
- 14
- 31
37
votes
4 answers
Does bash open files in O_APPEND when using ">>" on linux?
If we use echo 1234 >> some-file then Documentation says that the output is appended.
My guess is that, if some-file does not exist, then O_CREAT will make a new file. If > was used, then O_TRUNC will truncate existing file.
In case of >> :
Will the…
Prem
- 3,282
- 3
- 21
- 34
29
votes
3 answers
Can new glibc versions be used with an old kernel?
Apparently glibc can be compiled with --enable-kernel to support older kernel versions. However, I haven't been able to find information on what kernel versions are supported on a particular glibc version. Ideally, I want to see a compatibility…
netvope
- 1,085
- 3
- 12
- 12
29
votes
3 answers
How to deal with missing libcrypt.so.1 on Arch Linux?
How do you deal with a missing libcrypt.so.1 on Arch Linux?
Trying to run openoffice4 (the LibreOffice binary) results in:
/opt/openoffice4/program/javaldx: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such…
blazingchrome
- 391
- 1
- 3
- 3
29
votes
5 answers
Why is almost every program complaining about my locale?
I'm using Arch Linux, and I've followed the directions on the wiki about setting my locale.
Nearly every program that runs complains about the locale - even locale. It looks like this:
% locale
locale: Cannot set LC_ALL to default locale: No such…
Shawn J. Goff
- 45,338
- 25
- 134
- 145
26
votes
1 answer
What would be the best way to work around this glibc problem?
I administer a Gentoo Hardened box that uses file capabilities to eliminate most of the need for setuid-root binaries (e.g. /bin/ping has CAP_NET_RAW, etc).
Infact, the only binary I have left is this one:
abraxas ~ # find / -xdev -type f -perm…
Aaron Jones
- 259
- 2
- 6
25
votes
2 answers
Why doesn't the Linux kernel have optimized functions like glibc does (e.g., memchr, strchr)?
When I try to implement the C string library myself, I found that glibc and the Linux kernel have a different way to implement some functions. For instance, glibc memchr and glibc strchr use some trick to speed up the function but the kernel memchr…
Windsooon
- 385
- 3
- 6
23
votes
3 answers
Need to install glibc >= 2.14 on Wheezy
I am trying to get Protractor working for performing e2e angular testing, but protractor requires Selenium which requires ChromeDriver which requires glibc 2.14. My current development box is running Debian Wheezy which comes with glibc 2.13. I have…
chris
- 503
- 1
- 3
- 9
20
votes
3 answers
how to run new software without updating GLIBC?
I installed Mathematica 9 on an old Red Hat Enterprise Linux AS release 4 system.
After the installation, I tried to start Mathematica, but following message came…
user15964
- 703
- 2
- 13
- 27
17
votes
2 answers
SIGINFO on GNU Linux (Arch Linux) missing
I am developing an application and I would like it to print some runtime stats to the console on demand. kill and signals came to my mind immediately.
Reading through Unix signals on Wiki, SIGINFO seems like the way to go because:
It is intended…
Robert Rossmann
- 561
- 1
- 4
- 18
17
votes
1 answer
Installing two glibc alongside in debian/ubuntu
Is it possible to install and use two different glibc versions on the same machine. Where one version is only used to run legacy software, which relies on old glibc binaries?
Is it possible to do that with the aid of the package manager (something…
Elazar Leibovich
- 3,131
- 5
- 27
- 28
17
votes
1 answer
Using alternate libc with ld-linux.so hacks; cleaner method?
I have a legacy system with a very old glibc, which we can't upgrade without incurring a mountain of testing/validation work.
I have needed to run newer programs (such as Java 1.7) on that system several times now. I opted for a chroot solution,…
dataless
- 1,689
- 1
- 13
- 13
14
votes
2 answers
How to make linux 'perf record' work for libc and libstdc++ symbols?
I'm using perf record -g on x86-64 Linux to profile a program. Several symbols in libc or libstdc++ have 0 as a parent: __GI___strcmp_ssse3 (libc) and strcmp@plt (libstdc++) for example. (I can actually break on these symbols in the debugger and…
Benjamin Redelings
- 141
- 1
- 4