This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
install glibc a test lib
- From: "Xu Junjuan" <xujunjuan at arch dot cs dot pku dot edu dot cn>
- To: "glibc-alpha" <libc-alpha at sourceware dot cygnus dot com>, "glibc-linux" <owner-glibc-linux at ricardo dot ecn dot wfu dot edu>
- Date: Thu, 20 Dec 2001 15:42:04 +0800
- Subject: install glibc a test lib
Hi ,
I'm confused with ldconfig. Do anyone have some information about it?
Below is the problem I encounted.
I'm trying to install glibc as a test lib. And I followed the steps in
"Installing as a test library" which is in accessary. My problem is if I
write the below command the result is what I want:
% gcc -b
i486-linuxglibc2 -nostdinc -I/usr/i486-linuxglibc2/include -I/usr/lib/gcc-li
b/i486-linuxglibc2/2.7.2.2/include glibc.c -o glibc
% ldd glibc
libc.so.6 => /usr/i486-linuxglibc2/lib/libc-2.0.6.so (0x4000d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
But when I write the below command:
%gcc -o glibc glibc.c
% ldd glibc
libc.so.6 => /usr/i486-linuxglibc2/lib/libc-2.0.6.so (0x4000d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
The result I want is "libc.so.6 => /lib/libc.so.6 (0x4001c000)". How can I
achieve it?
Thanks!
Best regards!
Xu Junjuan