Problem with r233937 on i386
--WbkWELb8d/6oR4nB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Kernel build @ r233941 failed for me this morning, running:
FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #525 233918=
M: Thu Apr 5 04:42:37 PDT 2012 root@g1-227.catwhisker.org:/usr/obj/usr=
/src/sys/CANARY i386
thus:
=2E..
ototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wunde=
f -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnosti=
cs-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 -f=
inline-limit=3D8000 --param inline-unit-growth=3D100 --param large-function=
-growth=3D1000 -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno=
-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror /usr/s=
rc/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 =3D 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
--=20
David H. Wolfskill david@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.
--WbkWELb8d/6oR4nB
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAk9+3OIACgkQmprOCmdXAD1PgwCfax3sB6p0/3gbK1Vse2rn6pSb
+64Aniidlc+qPV/+yhILQgLOUF+hj4GH
=Qbg+
-----END PGP SIGNATURE-----
--WbkWELb8d/6oR4nB--
討論串 (同標題文章)