linux-mips
[Top] [All Lists]

Re: Glibc Problem

To: Ian Chilton <mailinglist@ichilton.co.uk>
Subject: Re: Glibc Problem
From: Keith M Wesolowski <wesolows@chem.unr.edu>
Date: Wed, 25 Oct 2000 08:45:44 -0700
Cc: linux-mips@oss.sgi.com
In-reply-to: <20001025160651.C17228@woody.ichilton.co.uk>; from mailinglist@ichilton.co.uk on Wed, Oct 25, 2000 at 04:06:51PM +0100
References: <20001025160651.C17228@woody.ichilton.co.uk>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2i
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

<Prev in Thread] Current Thread [Next in Thread>