Compiling and installing glibc [/lib/tls/libc.so.6]
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Compiling and installing glibc [/lib/tls/libc.so.6]
Hi,
I have a server running Redhat EL 4.x.
I am using ACE library for system related functionalities. To support one specific requirement I made change in libc.
The ACE library uses the /lib/tls/libc.so.6.
Now I have to compile and install that libc.so.6 under /lib/tls/.
I came to know that the libraries under /lib/tls are build with NPTL support.
So, need clarification on how to compile and install the libc under /lib/tls/.
I downloaded the glibc version 2.3.4 (need changes on top of this version).
Configured the source and build directories.
../configure --prefix=/usr/test-libc --enable-add-ons=nptl ----is this the correct one?
And also please tell me how to install the library under /lib/tls/
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The installed glibc-2.3.4 is compiled '--with-tls'
and with NTPL. AFAIK.
Please have a look into glibc.spec ( line 9 + 11 )
in the source package glibc-2.3.4-2.43.src.rpm
EDIT : The files, you are missing, are in the package
glibc-2.3.4-2.43.i686.rpm
Just install that, and you have /lib/tls/libc* etc. etc.
.....
Correct me if I am wrong.
As this is library, installing different one and using that to build new applications is a legal thing.
If things are done properly that should not harm the os.
Last edited by knareshkumar; 06-18-2010 at 12:31 PM.
You probably want to install the new library in a completely separate space. New applications linked against it will use it, while allowing existing applications to use the existing library. The potentially negative implications of getting something wrong in overwriting the system-wide libc would be scarey in the extreme, to me.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.