Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2010 01:36:17 -0700
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        Cameron Simpson <cs@zip.com.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: trouble building FreeBSD 8.1 amd64 kernel with pfsync support
Message-ID:  <AANLkTimkrmS_V0GqkE6N4D95_CJRKFGkaSu0Fz-of75A@mail.gmail.com>
In-Reply-To: <20100811072053.GA1790@cskk.homeip.net>
References:  <20100811072053.GA1790@cskk.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 11, 2010 at 12:20 AM, Cameron Simpson <cs@zip.com.au> wrote:
> I'm trying to build a kernel for a pair of firewalls which will be using
> CARP and pfsync for redundancy. Since I'm new to FreeBSD the config is
> based on the GENERIC config, thus:
>
> =A0include GENERIC
> =A0ident NEW_FIREWALL
> =A0device carp
> =A0##device pfsync
>
> and issuing the build like this:
>
> =A0# cd /usr/src
> =A0# time make buildkernel KERNCONF=3DNEW_FIREWALL && echo YES
>
> With the config above (CARP but no pfsync) it builds just fine
> and boots and runs happily; I've got CARP configured.
>
> If I uncomment the "devic pfsync" the build aborts at link time ending th=
us:

Do you also have a "device pf" line? I think that is a prereq for
pfsync. You may also need "device pflog" - I'm not sure because I've
always just added them all.

--=20
Rob Farmer

>
> =A0MAKE=3Dmake sh /usr/src/sys/conf/newvers.sh NEW_FIREWALL cc -c -O2 -fr=
ename-registers -pipe -fno-strict-aliasing =A0-std=3Dc99 -g -Wall -Wredunda=
nt-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointe=
r-arith -Winline -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensio=
ns -nostdinc =A0-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -D=
HAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=
=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D10=
00 -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone =A0-mfpmath=3D38=
7 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow =A0-msoft-float -fno-asy=
nchronous-unwind-tables -ffreestanding -fstack-protector -Werror =A0vers.c
> =A0linking kernel.debug
> =A0in_proto.o(.data+0x698): undefined reference to `pfsync_input'
> =A0*** Error code 1
>
> =A0Stop in /usr/obj/usr/src/sys/NEW_FIREWALL.
> =A0*** Error code 1
>
> =A0Stop in /usr/src.
> =A0*** Error code 1
>
> =A0Stop in /usr/src.
>
> =A0real =A0 =A011m33.795s
> =A0user =A0 =A07m19.405s
> =A0sys =A0 =A0 0m40.068s
>
> Am I doing something obviously wrong here?
>
> Cheers,
> --
> Cameron Simpson <cs@zip.com.au> DoD#743
> http://www.cskk.ezoshosting.com/cs/
>
> Once a Junior Programmer interrupted a Great Guru of the Sun to ask a
> Question of no importance. The Great Guru replied in words which the Juni=
or
> Programmer did not understand. The Junior Programmer sought to rephrase t=
he
> Question, saying, "Stop me if I appear stupid." The great Guru, without
> speaking, reached over and pressed L1-A.
> The Junior Programmer achieved Enlightenment. =A0 - Jon Green
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>



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