install glibc a test lib

Xu Junjuan xujunjuan@arch.cs.pku.edu.cn
Thu Dec 20 03:15:00 GMT 2001


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




More information about the Libc-alpha mailing list