Questions tagged [glibc]
glibc is GNU's implementation of the Standard C library.
31
questions
63
votes
3
answers
237k
views
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 ...
17
votes
1
answer
14k
views
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 ...
45
votes
4
answers
110k
views
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 ...
13
votes
1
answer
6k
views
Unexpected sort order in en_US.UTF-8 locale
While trying to answer this question about SQL sorting, I noticed a sort order I did not expect:
$ export LC_ALL=en_US.UTF-8
$ echo "T-700A Grouped" > sort.txt
$ echo "T-700 AGrouped" >> ...
78
votes
2
answers
35k
views
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 ...
37
votes
4
answers
4k
views
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 ...
31
votes
3
answers
27k
views
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 ...
26
votes
1
answer
1k
views
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 ...
20
votes
3
answers
30k
views
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 out:
/home/wcbao/M/Wolfram/...
14
votes
1
answer
7k
views
Is there an easy method for installing binary builds of glibc?
Time and time again I see questions such as these:
GLIBCXX 3.4.15 on Centos 6
CentOS 4.8 and glibc 2.5
And these are the types of solutions we're typically pushing:
how to run new software without ...
13
votes
1
answer
7k
views
Ghost Vulnerability - CVE-2015-0235
Does the Ghost Vulnerability require access (as in being a logged in user) to the effected OS in question? Can someone clarify the 'remote attacker that is able to make an application call'? I only ...
6
votes
1
answer
9k
views
difference between libc6-dev and libc6
libc6-dev:amd64 package in Debian contains all the common header files in C programming like stdio.h, ctype.h, time.h, etc. Am I correct that libc6:amd64, which is as far as I know required by ...
1
vote
1
answer
631
views
what does elibc_FreeBSD mean in gentoo portage overlays?
I have a gentoo overlay which has been added to http://gpo.zugaina.org/. One of my ebuilds recMD5 now shows the use flag elibc_FreeBSD even though I didn't add it. I am also running into it for a ...
29
votes
5
answers
38k
views
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
...
23
votes
3
answers
166k
views
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 ...
21
votes
3
answers
7k
views
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 ...
13
votes
1
answer
7k
views
What is in the output of "getent ahosts"?
What are the fields printed by getent ahosts DOMAIN?
The output for getent hosts is a simple combination of IP and hostname. The getent ahosts has an additional third field that is, in all my test, ...
12
votes
2
answers
15k
views
No 32 development library error after install glibc-devel.i686
I am trying to install gcc 4.9.0 on centOS 6.
During ./configure there is an error coming up:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc_s.so when searching for -...
11
votes
1
answer
31k
views
How to properly upgrade glibc?
The firmware of my NAS comes with a rather old version of glibc, namely 2.5. In order to cope with some precompiled binaries linked* to glibc 2.15, I would like to upgrade it. From some simple testing ...
8
votes
1
answer
2k
views
Why doesn't unsetenv() modify /proc/pid/environ?
I was just looking at this question and wrote a noddy program to demonstrate unsetenv() modifying /proc/pid/environ. To my surprise it has no effect!
Here's what I did:
#include <stdio.h>
#...
5
votes
6
answers
33k
views
Why does "yum update" fails with many duplicates, after many months of no upgrades?
After many months (> 6) of no software upgrades, I logged into an EC2 instances running:
Linux version 2.6.32-358.23.2.el6.x86_64 ([email protected]) (gcc version 4.4.7 ...
4
votes
1
answer
1k
views
Why is sigset_t in glibc/musl 128 bytes large on 64-bit Linux?
Why is sigset_t on 64-bit Linux 128 bytes large in glibc and musl?
#include <signal.h>
#include <stdio.h>
int main()
{
printf("%zu\n", sizeof(sigset_t)); //prints 128 with both glibc ...
4
votes
1
answer
2k
views
CentOS 4.8 and glibc 2.5
How would I go about installing glibc 2.5 on CentOS 4.8?
I know CentOS 4.8 has been EOL'd, which is all good and well. However, the environment that I am working in is using this version, and will ...
2
votes
1
answer
944
views
LFS 7.5 - Glibc-2.19 compile errors at section 6.9, are they fatal to my LFS build?
I am using a host Ubuntu 14.04 system, and I am currently going through the Linux From Scratch guide here. At section 6.9, http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html, after ...
2
votes
1
answer
1k
views
Make stdout and stderr be buffered by the same buffer
Is it possible to force glibc to use the same buffer for stdout and stderr?
If I tee the both outputs:
./tests/tests 2>&1 | tee log
I get mixed messages (i.e. messages are ordered inside ...
2
votes
1
answer
14k
views
can not install mysql-server on centos 6.7 32bit . Error: need rpm?
when I try to install mysql-server on centos with this command:
yum install mysql-server
server replies:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds ...
1
vote
2
answers
19k
views
" /lib64/libc.so.6: version `GLIBC_2.7' not found" Error when installation of R package
I met a problem when trying to install a R package called "GenomicFeatures",
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '$HOME/.R325/lib64/R/library/RCurl/libs/...
1
vote
1
answer
6k
views
How to redirect linker share library default path /lib64/libc.so.6, /lib64/libc.so.6: version `GLIBC_2.14' not found
My linux machine is x86_64-redhat-linux.
However I am using another arm tool chain aarch64-linux-gnu-gcc on this machine to build(I don't need to run what I build on this machine, just build, so it ...
1
vote
1
answer
1k
views
Arch linux: locale issue [closed]
After replacing of glibc with glibc-git the system does not have any locales at all.
I've switched back to glibc and it is the same (no locales).
Trying to regen the locales I get:
# locale-gen
...
0
votes
2
answers
2k
views
Some errors when building Glibc LFS - are they harmless?
I've finished chapter 5. When I'm building glibc, I get some errors:
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: *** [/sources/glibc-build/posix/tst-getaddrinfo4.out] Error 1
make[...
0
votes
1
answer
1k
views
Emulating an AARCH64 Binary calling libgps on x86_64 Ubuntu using QEMU gives "Error relocating: symbol not found" Errors
This is similar to the issue posted here and here. I want to reverse engineer a binary called gpslogger but before debugging it using GDB, I wish to simply emulate it using QEMU (qemu-aarch64) since ...