>Date: Wed, 26 Jun 2002 19:16:03 +0200
>From: Christopher Sharp <[EMAIL PROTECTED]>

>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]);

david       (links to my resume at http://www.catwhisker.org/~david)
David H. Wolfskill                              [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to