From owner-freebsd-questions@FreeBSD.ORG Wed Aug 11 07:39:21 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 0239410656F0 for ; Wed, 11 Aug 2010 07:39:21 +0000 (UTC) (envelope-from cameron@cskk.homeip.net) Received: from harvey.boardofstudies.nsw.edu.au (mail2.rack1.boardofstudies.nsw.edu.au [202.125.174.133]) by mx1.freebsd.org (Postfix) with ESMTP id B79DC8FC18 for ; Wed, 11 Aug 2010 07:39:20 +0000 (UTC) Received: from cskk.homeip.net (localhost.localdomain [127.0.0.1]) by harvey.boardofstudies.nsw.edu.au (Postfix) with ESMTP id 6D4924D3223 for ; Wed, 11 Aug 2010 17:20:53 +1000 (EST) Received: by janus.cskk.homeip.net (Postfix, from userid 1000) id 55B3910040AE0; Wed, 11 Aug 2010 17:20:53 +1000 (EST) Date: Wed, 11 Aug 2010 17:20:53 +1000 From: Cameron Simpson To: freebsd-questions@freebsd.org Message-ID: <20100811072053.GA1790@cskk.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: 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 07:39:21 -0000 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: include GENERIC ident NEW_FIREWALL device carp ##device pfsync and issuing the build like this: # cd /usr/src # time make buildkernel KERNCONF=NEW_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 thus: MAKE=make sh /usr/src/sys/conf/newvers.sh NEW_FIREWALL cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror vers.c linking kernel.debug in_proto.o(.data+0x698): undefined reference to `pfsync_input' *** Error code 1 Stop in /usr/obj/usr/src/sys/NEW_FIREWALL. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. real 11m33.795s user 7m19.405s sys 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 Junior Programmer did not understand. The Junior Programmer sought to rephrase the Question, saying, "Stop me if I appear stupid." The great Guru, without speaking, reached over and pressed L1-A. The Junior Programmer achieved Enlightenment. - Jon Green