On Wed, Oct 25, 2000 at 04:06:51PM +0100, Ian Chilton wrote:
> I am having this problem cross-compiling todays CVS glibc:
> ../sysdeps/generic/dl-cache.c:181: `CACHEMAGIC_VERSION_NEW' undeclared (first
> use in this function)
A simple platform-independent typo. I'm sure it'll be fixed soon. In
the meantime here's a patch.
Index: dl-cache.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/dl-cache.c,v
retrieving revision 1.25
diff -u -r1.25 dl-cache.c
--- dl-cache.c 2000/10/25 08:07:18 1.25
+++ dl-cache.c 2000/10/25 15:41:06
@@ -178,13 +178,13 @@
cache_new = (struct cache_file_new *) ((void *) cache + offset);
if (cachesize < (offset + sizeof (struct cache_file_new))
- || memcmp (cache_new->magic, CACHEMAGIC_VERSION_NEW,
- sizeof CACHEMAGIC_VERSION_NEW - 1) != 0)
+ || memcmp (cache_new->magic, CACHEMAGIC_NEW,
+ sizeof CACHEMAGIC_NEW - 1) != 0)
cache_new = (void *) -1;
}
else if (file != NULL && cachesize > sizeof *cache_new
- && memcmp (cache_new->magic, CACHEMAGIC_VERSION_NEW,
- sizeof CACHEMAGIC_VERSION_NEW - 1) == 0)
+ && memcmp (cache_new->magic, CACHEMAGIC_NEW,
+ sizeof CACHEMAGIC_NEW - 1) == 0)
{
cache_new = file;
cache = file;
--
Keith M Wesolowski wesolows@chem.unr.edu
University of Nevada http://www.chem.unr.edu
Chemistry Department Systems and Network Administrator
|