Subject: kern/11734: kernel build fails on 1.5-release
To: None <gnats-bugs@gnats.netbsd.org>
From: None <C.J.E.Pinnock@qmw.ac.uk>
List: netbsd-bugs
Date: 12/14/2000 06:39:15
>Number:         11734
>Category:       kern
>Synopsis:       kernel build fails in 1.5 release branch
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 14 06:39:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chris Pinnock
>Release:        1.5.1_ALPHA checked out today
>Organization:
School of Mathematical Sciences, QM, Uni of LONDON, UK
>Environment:
	1.5.1_ALPHA on intel
System: NetBSD sylow.maths.qmw.ac.uk 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (SYLOW) #3: Thu Dec 7 14:40:37 GMT 2000 cjep@sylow.maths.qmw.ac.uk:/usr/src/sys/arch/i386/compile/SYLOW i386


>Description:

	Kernel fails to build. The problem seems to be in 
	netinet/udp_usrreq.c. Is this a typo (see fix below)?

	cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -Di386  -c ../../../../netinet/udp_usrreq.c
../../../../netinet/udp_usrreq.c: In function `udp6_realinput':
../../../../netinet/udp_usrreq.c:724: `dst4' undeclared (first use in this function)
../../../../netinet/udp_usrreq.c:724: (Each undeclared identifier is reported only once
../../../../netinet/udp_usrreq.c:724: for each function it appears in.)
*** Error code 1



>How-To-Repeat:
	Build a kernel.
>Fix:
Looking at a colour diff, the dst4 on line 724 was src4 in the last 
version. If one replaces the dst4 with src4 then the kernel will
compile (whether this is the Right Thing to do I don't know...).
>Release-Note:
>Audit-Trail:
>Unformatted: