glibc is GNU's implementation of the Standard C library.

learn more… | top users | synonyms

24
votes
1answer
594 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 ...
15
votes
4answers
10k 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 ...
14
votes
3answers
9k 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: ...
11
votes
1answer
4k 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 ...
11
votes
1answer
594 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 ...
8
votes
3answers
45k 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 ...
7
votes
1answer
337 views

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 ...
6
votes
1answer
2k 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 ...
5
votes
3answers
2k views

Is the Solaris libc based on the GNU libc?

On Solaris: basename.c #include <stdio.h> #include <libgen.h> int main(int argc, char* argv[]) { int len = strlen(argv[0]); char *bsname = basename(argv[0]); printf("%s\n", ...
5
votes
1answer
804 views

EGLIBC vs GLIBC on laptops

From what I understand the primary cause of fork/branch of EGLIBC as compared to GLIBC was the problem with patches for ARM that Debian devs wanted to push upstream. I have slightly different ...
5
votes
1answer
611 views

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 ...
5
votes
1answer
659 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, ...
5
votes
1answer
364 views

Where to find the source file of function pause(void) and sigsuspend(set)

I want to find the source file of pause and sigsuspend in the glibc-2.14.1 package. I grep the package and find the file sysdeps/posix/pause.c has a definition of function pause, the code is int ...
5
votes
1answer
217 views

How to rebuild glibc on Arch Linux?

It seems like MATLAB is royally screwed up on Linux, because it "dynamically loads some libs with static TLS", which doesn't mean anything to me other than I get bunches of errors. The suggested work ...
5
votes
1answer
97 views

Upgrade kernel for linux system without upgrading user apps/libs?

I built a custom Linux "recovery-cd" image that consists of a compressed initrd and boots via bcdedit (like Ubuntu Wubi) instead of a physical CD. It has various recovery tools for partition editing, ...
5
votes
2answers
96 views

Would it be possible to compile and bootstrap GNU?

A new Guix release came out some time ago. And I got the idea that if I can bootstrap glibc, gcc, and guix to HURD and Mach, I can have a non-Linux GNU system. But I also need some software like bash, ...
4
votes
2answers
219 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 ...
4
votes
1answer
167 views

How/why can Firefox packages work on all Linuxes?

How/why can a Firefox 64bit (or 32bit) package work on different Linux distributions since each Linux distribution has a different version for gcc, glibc, linux kernel, etc. ?
4
votes
1answer
1k 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 ...
4
votes
1answer
119 views

Cross compiling GLIBC for my ARM SoC

I am seeing something really weird inside a chroot-ed Debian armel environment. But first, a bit of backstory... This is long, but the question is complex and any potential help depends on knowing ...
3
votes
2answers
1k views

llvm and clang on CentOS 5 without root permissions?

I am trying to have llvm and clang on a centOS 5 without root permissions. I tried to do it downloading llvm and clang src packages and trying the ususal configure, make and make install steps as ...
3
votes
1answer
2k views

What is syscall-template.S?

I've come across a file syscall-template.S more specifically its location is .../sysdeps/unix/syscall-template.S What is this file? Where is it. It is not on my system and I cannot find it in ...
3
votes
2answers
303 views

Libraries crash after installing experimental version of libc6

My Debian system is not booting anymore after installing the experimental version of libc6. I've got this message on boot: /sbin/init: error while loading shared libraries: libsepol.so.1: ...
3
votes
1answer
1k views

How can I downgrade a glibc version?

I upgraded glibc for a reason that isn't arround anymore so i want to downgrade it again. The stupid thing is a lot of programms rely on glibc at the moment. I still have the 2.4 version on the system ...
2
votes
3answers
118 views

None of the linux programs work except 'cd'

Before stating the question, here's what I did and observed before the problem started: On a fedora 18 Xfce, I tried compiling 3.6.10 kernel with a cdv driver, After many attempts, it finally ...
2
votes
2answers
864 views

Can I build a linux distro with libc instead of glibc

I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc. I wonder if its possible to ...
2
votes
3answers
1k views

Compiling a C program that defines a function getline by GCC

I'm trying to compile by GCC an old C program that defines and uses a function named getline, which conflicts with the function of the same name in the GNU C library. How can you compile it? Passing ...
2
votes
1answer
269 views

How to set parameter i486 on glibc compiling process of x86_64 system?

My host: lfs@sam:/mnt/lfs/sources/glibc-build$ uname -m x86_64 lfs@sam:/mnt/lfs/sources/glibc-build$ In lfs(LFS-BOOK-6.8-HTML/chapter05/glibc.html) It says case `uname -m` in i?86) ...
2
votes
1answer
175 views

Why is =sys-libs/glibc-2.16's --enable-kernel is ignored on Gentoo Linux?

I'm trying to build eglibc support for old kernels, 2.6.9 in this case. So I set NPTL_KERNEL_VER in make.conf, and during configuration phrase I can see the --enable-kernel=2.6.9 parameter But this ...
2
votes
1answer
438 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
1answer
362 views

Configure & Compile syslog-ng from source, got: Threads are not supported on this platform

I have configure, gmake, and gmake installed syslog-ng-3.4.0alpha1 with eventlog-0.2.12 and other dependencies. From then output of the ./configure --prefix=/syslog --with-gnu-ld, I can see that the ...
2
votes
1answer
62 views

How to install glibc version that corresponds to GCC 4.4 on RHEL5

We have a program with executables built on RHEL6 using GCC4.4 and we need to run it on RHEL5.5. But RHEL5.5, by default does not have the necessary version of glibc. Has anyone faced such an issue ...
2
votes
0answers
37 views

Determine libc version used to create static library

I am seeing symbol referencing errors with the static libraries I am using (available with OpenSPARC processor). I have glibc 2.15 on my system. How do I determine the version of glibc used to create ...
2
votes
1answer
359 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
0answers
138 views

Can't compile glibc for 64 bit system

I'm trying to compile glibc-2.16 statically for x64 system, ../configure --enable-kernel=2.6.9 --prefix=/run/shm/libc-static-64 --enable-static --enable-shared --host=i486-linux-gnu ...
2
votes
0answers
128 views

How to find out which package of libc6 I need?

I am running into following error: version GLIBC_2.14 not found version GLIBC_2.15 not found when trying to install software I need. Therefore, I decided to upgrade libc6 on my debian (Linux ...
2
votes
1answer
538 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 ...
1
vote
1answer
93 views

Error while installing glibc-2.14 from source

The version of glibc in the repository is 2.13 so I couldn't use apt-get to install it. I downloaded the source code of glibc-2.14, but when I run ./configure command I get this error: checking for ...
1
vote
1answer
162 views

On Debian (64-bit), how do I install glibc that I built from source?

When I tried to do this, my system broke, with every program immediately segfaulting. I believe it's because it installed a new version of ld-linux-x86-64.so.2 in /lib64 but when a program was loaded ...
1
vote
1answer
2k 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 ...
1
vote
1answer
66 views

Can the wilderness chunk be busy?

I'm curious about one aspect of heap management in linux, and particularly in ubuntu's build of glibc 2.17. I understand that the last chunk in each heap, the top or wilderness chunk, tends to be ...
1
vote
2answers
942 views

How to install multiple glibc on fedora

I have Fedora 4 installed on my computer and it has glibc version 2.5.3, but I want to install a software that needs a glibc 2.7+. On the other hand, I have some programs that need this 2.5.3 version. ...
1
vote
2answers
89 views

glibc does not upgrade on Gentoo Linux because of old SSP __guard symbols

When I'm doing emerge -avuDN glibc always getting this: >>> Emerging (1 of 28) sys-libs/glibc-2.15-r3 * glibc-2.15.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... ...
1
vote
1answer
133 views

Is there any way to attach latrace to an already-running process?

I want to trace a running multi-threaded process's library calls. As of 5 November 2012, there's only one way to get ltrace to fully support tracing multi-threaded processes: you must check out and ...
1
vote
0answers
97 views

OpenEmbedded: root account doesn't exist!

I'm using the current OpenEmbedded system from: http://git.openembedded.org/openembedded-core/tree/ (For what it's worth, I'm also pulling in layers from ...
1
vote
0answers
686 views

How to compile gcc toolchain with special sysroot correctly?

I try to compile a new gcc, including binutils and glibc. Since I can not be root, I want to install it all in ~/local. I set these variables: PREFIX=~/local && export PREFIX ...
1
vote
1answer
114 views

Need general guide on how to build Linux Stream (LiS) under RedHat 6.2

Day 1 I have hit into some error, and the build simply fail, saying that there is some conflict. Thus I believe a .o file cannot be made and then result fatal error during linking, anyone have steps ...
1
vote
0answers
474 views

Eglibc cannot compile suffix of object files while trying to cross compile

I'm currently making my way through Trac's CLFS book. When trying to configure the 32-bit version of EGLIBC-2.15, using the options: BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \ ...
0
votes
2answers
53 views

Compiling for Red Hat 5.9

I need to compile a C++ application to run on Red Hat 5.9, but I don't have access to a development server that runs Red Hat 5.9. My current executable compiled on Ubuntu 10.04 produces the error ...
0
votes
1answer
3k views

cmake: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by cmake)

I want to run cmake for a program, [build]$ cmake ../ cmake: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by cmake) I have this error, how i can fix it? I use from ...