I made some tests with setting LD_LIBRARY_PATH and LD_PRELOAD (before sending my fisrt post
in this thread) and they failed; (I had a crash in run time). Again , I don't think the details are important because I made many tries and I am not an expert in glibc;
Hpwever,If somebody have success in compiling and running hello_world with a new glibc which is installed
in a private (non-system) folder, I will appreciate telling us how.
Regards, Amir
From: Shachar Shemesh <[EMAIL PROTECTED]> To: Amir Binyamini <[EMAIL PROTECTED]> CC: [email protected] Subject: Re: A second glibc on Linux Date: Tue, 29 Mar 2005 11:38:13 +0200
Amir Binyamini wrote:
LD_LIBRARY_PATH may be your friend here, as may LD_PRELOAD. These allow you to override the default place the system looks for libraries via an environment var, which can be set per-process.Hello,
I want to use a second glibc on Linux; mainly for hacking glibc;
I do want to keep the original glibc with came with my distribution. (Which is RedHat 9)
so that the kenel and apps will still use it.
I have succeeded in building glibc 2.3.2 ; I had installed it to a private folder (using ./configure --prefix=/work/myglibc) so it will not interfere with any system libraries.
Now , I am trying to compile and link a simple HelloWorld program in "C" against the glibc I
had made. As I understand fromm googling , I should use the new libc.so and the new dynamic linker (ld.so.)
How should it be done?
I googled for it a littlem,and I made some attempts with various make files, and they all failed (sometimes the compile succeeded but when running the
executable I got a core dump).
I don't want to get into details about these attempts because I assume the way to do
it is probably straightforward for those who have some experience with it; so
if anybody knows something, please ,let me know.
Regards, Amir
Shachar
-- Shachar Shemesh Lingnu Open Source Consulting ltd. Have you backed up today's work? http://www.lingnu.com/backup.html
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
