What's the glibc version used to compile the kernel?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What's the glibc version used to compile the kernel?
Hi all,
I am compiling my kernel using gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8). My question is how can I find out which version of glibc used to build the kernel? Also, if an application needs to use glibc, where can be found? Should I have it on my file system?
I am compiling my kernel using gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8). My question is how can I find out which version of glibc used to build the kernel? Also, if an application needs to use glibc, where can be found? Should I have it on my file system?
Thanks.
No version of glibc is used to build the kernel. Remember, it's a kernel - libc depends on it, not the other way around.
If you need to develop user-space applications which use the standard c library, you'll need to install your distro-specific development package, something like libc-dev or libc-devel.
No version of glibc is used to build the kernel. Remember, it's a kernel - libc depends on it, not the other way around.
If you need to develop user-space applications which use the standard c library, you'll need to install your distro-specific development package, something like libc-dev or libc-devel.
Why do you ask?
First of all, thanks for the reply. Ok, so the kernel doesn't need libc to be build. Let's say that I have a hello world program like the following, which is dynamically linked:
Code:
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}
At run time, the program will search for the printf() routine. Where it will search for the required library? Will it search under the /lib/ folder of the file system? Should somehow provide the glibc library under /lib/? If yes, what version of glibc should I put there? Btw, I am using a vanilla kernel and also my own file system.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
' glibc ' is your system ( together with the kernel ).
And is of course always installed.
Never touch it, please. Changing any libc6 files :
Your system will stop working. For ever.
The command : dpkg -L libc6
will show the files.
You may need libc6-dev , the development files :
sudo apt-get install libc6-dev linux-libc-dev
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.