Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 10:18:44 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
To:        csharp@freeshell.org, freebsd-current@FreeBSD.ORG
Subject:   Re: buildworld broken
Message-ID:  <200206261718.g5QHIiBG011592@bunrab.catwhisker.org>
In-Reply-To: <20020626171603.GA17363@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Wed, 26 Jun 2002 19:16:03 +0200
>From: Christopher Sharp <csharp@freeshell.org>

>buildworld breaks with

>cc -O -pipe  -DLIBC_MAJOR=5 -I/usr/src/lib/libc/include
>-I/usr/src/lib/libc/../../include -D__DBINTERFACE_PRIVATE -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSI
>usr/src/lib/libc/../libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -DYP -DHESIOD  -c /usr/src/lib/libc/net/name6.c -o name6.o
>/usr/src/lib/libc/net/name6.c: In function `getanswer':
>/usr/src/lib/libc/net/name6.c:1208: `obp' undeclared (first use in this function)
>/usr/src/lib/libc/net/name6.c:1208: (Each undeclared identifier is reported only once
>/usr/src/lib/libc/net/name6.c:1208: for each function it appears in.)
>/usr/src/lib/libc/net/name6.c:1210: `buflen' undeclared (first use in this function)
>*** Error code 1


Yes.  The following patch appears to get through that, though I don't
(yet) know if it's correct:


Index: lib/libc/net/name6.c
===================================================================
RCS file: /cvs/freebsd/src/lib/libc/net/name6.c,v
retrieving revision 1.23
diff -u -r1.23 name6.c
--- lib/libc/net/name6.c	26 Jun 2002 08:18:05 -0000	1.23
+++ lib/libc/net/name6.c	26 Jun 2002 16:20:11 -0000
@@ -1205,9 +1205,7 @@
 				nn = strlen(bp) + 1;	/* for the \0 */
 				bp += nn;
 			}
-			obp = bp; /* ALIGN rounds up */
 			bp = (char *)ALIGN(bp);
-			buflen -= (bp - obp);
 
 			DNS_FATAL(bp + n < ep);
 			DNS_ASSERT(hap < &h_addr_ptrs[MAXADDRS-1]);


Cheers,
david       (links to my resume at http://www.catwhisker.org/~david)
-- 
David H. Wolfskill				david@catwhisker.org
Trying to support or use Microsoft products makes about as much sense
as painting the outside of a house with watercolors.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206261718.g5QHIiBG011592>