From owner-freebsd-current@FreeBSD.ORG Tue Aug 16 11:38:34 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA7FD106564A for ; Tue, 16 Aug 2011 11:38:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7BD038FC13 for ; Tue, 16 Aug 2011 11:38:34 +0000 (UTC) Received: by ywo32 with SMTP id 32so3067431ywo.13 for ; Tue, 16 Aug 2011 04:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=dM6pGUrasivBXoihAZZfVttblajKLNx1xwkOZEW1ZpY=; b=dnKb/ksKvAkqpjlQPaqKMNLwu5Apc3ZzuS9JdWAvdxItSE35SrzglBCwjIb1mqtRWC lPpkfWMCeeTM3dJ8Lo4BWhdUBgNpdyABlkbakmZ+nY+Ifcst5m5T/U5YEmIFRlifgP31 A3Nwhw09I5/FXVFSrOlGCCVn3vgOHC4rjqglE= MIME-Version: 1.0 Received: by 10.150.230.15 with SMTP id c15mr5050876ybh.247.1313494713774; Tue, 16 Aug 2011 04:38:33 -0700 (PDT) Received: by 10.150.188.9 with HTTP; Tue, 16 Aug 2011 04:38:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Aug 2011 15:38:33 +0400 Message-ID: From: Sergey Kandaurov To: "deeptech71@gmail.com" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: kernel build failure without BPF X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 11:38:34 -0000 On 14 August 2011 06:01, 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