Re: kernel build failure without BPF

看板FB_current作者時間14年前 (2011/08/16 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
On 14 August 2011 06:01, deeptech71@gmail.com <deeptech71@gmail.com> wrote: > in the following kernel configuration (notably without ``device > bfp''), i get the following kernel build error. which is either a bug, > or not; just posting in case it's in someone's interest. > > =3D=3D=3D=3D=3D=3D=3D=3D build log snippet begins =3D=3D=3D=3D=3D=3D=3D= =3D > =3D=3D=3D> pfsync (all) > > cc -O2 -fno-strict-aliasing -pipe -march=3Dpentium4 -Werror -D_KERNEL > -DKLD_MODULE -nostdinc =A0-I/usr/src/sys/modules/pfsync/../../contrib/pf > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/HQ/opt_global.h -I. -I@ -I@/contrib/altq > -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > large-function-growth=3D1000 -fno-common =A0-I/usr/obj/usr/src/sys/HQ > -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno-sse -mno-mmx > -msoft-float -ffreestanding -fstack-protector -std=3Diso9899:1999 > -fstack-protector -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-option -c > /usr/src/sys/modules/pfsync/../../contrib/pf/net/if_pfsync.c > > /usr/src/sys/modules/pfsync/../../contrib/pf/net/if_pfsync.c: In > function 'pfsync_sendout': > > /usr/src/sys/modules/pfsync/../../contrib/pf/net/if_pfsync.c:2163: > error: 'm' undeclared (first use in this function) > > /usr/src/sys/modules/pfsync/../../contrib/pf/net/if_pfsync.c:2163: > error: (Each undeclared identifier is reported only once > > /usr/src/sys/modules/pfsync/../../contrib/pf/net/if_pfsync.c:2163: > error: for each function it appears in.) > > *** Error code 1 > > > > Stop in /usr/src/sys/modules/pfsync. > > *** Error code 1 This is due to mismerge of pf4.5. The following patch shall fix the build: Index: sys/contrib/pf/net/if_pfsync.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/contrib/pf/net/if_pfsync.c (revision 224568) +++ sys/contrib/pf/net/if_pfsync.c (working copy) @@ -2126,8 +2126,8 @@ pfsync_sendout(void) #else struct ifnet *ifp =3D &sc->sc_if; #endif +#endif struct mbuf *m; -#endif struct ip *ip; struct pfsync_header *ph; struct pfsync_subheader *subh; --=20 wbr, pluknet _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EIbl_1Q (FB_current)
文章代碼(AID): #1EIbl_1Q (FB_current)