This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]