Subject: kern/25744: bpf broken (kernel does not build)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jmmv@menta.net>
List: netbsd-bugs
Date: 05/29/2004 12:29:40
>Number: 25744
>Category: kern
>Synopsis: bpf broken (kernel does not build)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 29 18:10:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Julio M. Merino Vidal
>Release: NetBSD 2.0E
>Organization:
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/
>Environment:
System: NetBSD dawn.local 2.0E NetBSD 2.0E (DAWN) #2: Sun May 23 10:55:17 CEST 2004 jmmv@dawn.local:/home/build/obj/usr/src/sys/arch/i386/compile/DAWN i386
Architecture: i386
Machine: i386
>Description:
A kernel using bpf (almost all?) does not build with revision 1.99
of src/sys/net/bpf.c. Looking at the code, one can see that 'ioflag'
is undefined in a new function, bpf_waitfordata. Furthermore, in
line 1748, the code seems to be garbled (a function ends but the
code continues).
Here is a log of the failure:
# compile DAWN/bpf.o
/home/build/obj/usr/src/tooldir.NetBSD-2.0E-i386/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_DES_CBC -DCRYPTO_MD_BF_ENC -DCRYPTO_MD_BF_CBC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/net/bpf.c
/usr/src/sys/net/bpf.c: In function `bpf_waitfordata':
/usr/src/sys/net/bpf.c:503: error: `ioflag' undeclared (first use in this function)
/usr/src/sys/net/bpf.c:503: error: (Each undeclared identifier is reported only once
/usr/src/sys/net/bpf.c:503: error: for each function it appears in.)
/usr/src/sys/net/bpf.c:511: error: `timed_out' undeclared (first use in this function)
/usr/src/sys/net/bpf.c:523: error: `s' undeclared (first use in this function)
/usr/src/sys/net/bpf.c: In function `bpf_setdlt':
/usr/src/sys/net/bpf.c:1675: warning: no previous prototype for `bpfmmap'
/usr/src/sys/net/bpf.c:1700: warning: function declaration isn't a prototype
/usr/src/sys/net/bpf.c: At top level:
/usr/src/sys/net/bpf.c:125: warning: `bpf_mmapinfo' declared `static' but never defined
>How-To-Repeat:
Build a kernel with bpfilter enabled.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: