Top "Glibc" questions

The GNU C library is used as the C library in the GNU system and most systems with the Linux kernel.

Link glibc statically but some other library dynamically with GCC

I need to statically link glibc to my project, because the target platform supports only a very old one ( but …

c linker glibc static-linking
set global gcc default search paths

when running arm-none-linux-gnueabi-gcc -print-search-dirs | grep libraries | sed 's/:/\n/g' I get the following output: libraries =/opt/codesourcery/lib/gcc/…

gcc cross-compiling glibc codesourcery
GLIBCXX versions

If I compile a C++ program on my machine, and run it on another one (with older software) I get: /…

c++ linux portability glibc
difference between gcc -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2

Can someone point out the difference between gcc -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2? I guess =2 is more secure? …

security gcc glibc
Linux static linking is dead?

In fact, -static gcc flag on Linux doesn't work now. Let me cite from the GNU libc FAQ: 2.22. Even statically …

linux gcc glibc static-linking
Compiling without libc

I want to compile my C-code without the (g)libc. How can I deactivate it and which functions depend on …

c gcc glibc demo libc
Pthread mutex assertion error

I'm encountering the following error at unpredictable times in a linux-based (arm) communications application: pthread_mutex_lock.c:82: __pthread_mutex_…

linux pthreads mutex assert glibc
How to recover after deleting the symbolic link libc.so.6?

In our server the symbolic link to libc.so.6 has been deleted. Now none of the binaries in the system …

linux shared-libraries glibc
Why would the same binary want linux-vdso.so.1 on one 64-bit RHEL 5.4 server and not another?

I have a customer running a file parsing program called cleanfileg and as of the last update, he is getting …

glibc libstdc++
Linux 3.0: Executing child process with piped stdin/stdout

Under Linux 3.0 / C++: I would like a function that does the following: string f(string s) { string r = system("foo &…

c++ c linux posix glibc