Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2012 05:09:07 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        melifaro@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   Problem with r233937 on i386
Message-ID:  <20120406120907.GX1420@albert.catwhisker.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Kernel build @ 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@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@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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk9+3OIACgkQmprOCmdXAD1PgwCfax3sB6p0/3gbK1Vse2rn6pSb
+64Aniidlc+qPV/+yhILQgLOUF+hj4GH
=Qbg+
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120406120907.GX1420>