Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2011 15:38:33 +0400
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        "deeptech71@gmail.com" <deeptech71@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kernel build failure without BPF
Message-ID:  <CAE-mSOKsJVL_3re3Ppj3sm0J9SwL5Aka6mpjq5OS1omXqUqXLA@mail.gmail.com>
In-Reply-To: <CAF6hrySkVY4KKNBGH=gssvXEU5Huqbqr3jwD-sT8g5_XK_rBdA@mail.gmail.com>
References:  <CAF6hrySkVY4KKNBGH=gssvXEU5Huqbqr3jwD-sT8g5_XK_rBdA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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