This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Linking problem with glibc 2.2
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: Linking problem with glibc 2.2
- From: Nix <nix at esperi dot demon dot co dot uk>
- Date: 23 Nov 2000 08:18:18 +0000
- References: <CA256953.00373716.00@d73mta05.au.ibm.com><200011222308.VAA26253@cougar.unisys.com.br>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Count0 <count0@linuxfreak.com> writes:
> Ps. Where can I get ldconfig without the 'Can't stat .2' bug ?
Apply the patch Andreas gave yesterday, that is
Index: elf/ldconfig.c
===================================================================
RCS file: /cvs/glibc/libc/elf/ldconfig.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ldconfig.c 2000/09/30 00:52:27 1.11
+++ ldconfig.c 2000/11/10 14:06:06 1.12
@@ -370,13 +370,13 @@
/* Get complete path. */
full_libname = alloca (strlen (path) + strlen (libname) + 2);
- full_soname = alloca (strlen (path) + strlen (libname) + 2);
+ full_soname = alloca (strlen (path) + strlen (soname) + 2);
sprintf (full_libname, "%s/%s", path, libname);
sprintf (full_soname, "%s/%s", path, soname);
if (opt_chroot)
{
real_full_libname = alloca (strlen (real_path) + strlen (libname) + 2);
- real_full_soname = alloca (strlen (real_path) + strlen (libname) + 2);
+ real_full_soname = alloca (strlen (real_path) + strlen (soname) + 2);
sprintf (real_full_libname, "%s/%s", real_path, libname);
sprintf (real_full_soname, "%s/%s", real_path, soname);
}
and rebuild ldconfig.
--
`The phrase `causes storage to be reserved', doesn't mean that it causes
storage to be reserved. This is a fundamental misunderstanding of
Standardeze.' --- Mike Stump on the GCC list