From owner-freebsd-questions@FreeBSD.ORG Wed Aug 11 08:36:18 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC3381065673 for ; Wed, 11 Aug 2010 08:36:18 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id AB5848FC0C for ; Wed, 11 Aug 2010 08:36:18 +0000 (UTC) Received: by qwg5 with SMTP id 5so8526291qwg.13 for ; Wed, 11 Aug 2010 01:36:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.165.69 with SMTP id h5mr1044103vcy.130.1281515777546; Wed, 11 Aug 2010 01:36:17 -0700 (PDT) Received: by 10.220.199.202 with HTTP; Wed, 11 Aug 2010 01:36:17 -0700 (PDT) X-Originating-IP: [71.1.135.50] In-Reply-To: <20100811072053.GA1790@cskk.homeip.net> References: <20100811072053.GA1790@cskk.homeip.net> Date: Wed, 11 Aug 2010 01:36:17 -0700 Message-ID: From: Rob Farmer To: Cameron Simpson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: trouble building FreeBSD 8.1 amd64 kernel with pfsync support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 08:36:19 -0000 On Wed, Aug 11, 2010 at 12:20 AM, Cameron Simpson 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 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" >