Problem with r233937 on i386

From: David Wolfskill <david_at_catwhisker.org>
Date: Fri, 6 Apr 2012 05:09:07 -0700
Kernel build _at_ r233941 failed for me this morning, running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #525 233918M: Thu Apr  5 04:42:37 PDT 2012     root_at_g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386


thus:

...
ototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/net/bpf.c
/usr/src/sys/net/bpf.c: In function 'bpf_setf':
/usr/src/sys/net/bpf.c:1683: error: 'need_upgrade' undeclared (first use in this function)
/usr/src/sys/net/bpf.c:1683: error: (Each undeclared identifier is reported only once
/usr/src/sys/net/bpf.c:1683: error: for each function it appears in.)
*** [bpf.o] Error code 1

Stop in /common/S4/obj/usr/src/sys/CANARY.
*** [buildkernel] Error code 1

Stop in /usr/src.
*** [buildkernel] Error code 1

Stop in /usr/src.



It looks to me as if perhaps the problem is that in net/bpf.c, the

	int need_upgrade = 0;

on line 1601 is in the block (lines 1598 - 1611) controlled by

#ifdef COMPAT_FREEBSD32


And in FreeBSD/i386, I believe that means the block in question is
not getting compiled.

So I moved the line in question above the #ifdef; that seems to get
beyond the above failure, but I have no idea if it's correct.

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Fri Apr 06 2012 - 10:09:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC