From owner-freebsd-current@FreeBSD.ORG Sun Sep 12 01:38:48 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 117D616A4CE for ; Sun, 12 Sep 2004 01:38:48 +0000 (GMT) Received: from smtp02.net-yan.com (smtp02.hgcbroadband.com [210.0.255.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB7E043D58 for ; Sun, 12 Sep 2004 01:38:46 +0000 (GMT) (envelope-from sam.wun@authtec.net) Received: (qmail 81383 invoked from network); 12 Sep 2004 01:38:46 -0000 Received: from unknown (HELO [192.168.4.129]) (samwun@hgcbroadband.com@[221.127.111.39]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 12 Sep 2004 01:38:46 -0000 Message-ID: <4143A797.4040708@authtec.net> Date: Sun, 12 Sep 2004 09:34:15 +0800 From: sam User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 12 Sep 2004 14:21:58 +0000 Subject: How can I compile PF without option PFIL_HOOKS defined in thekernel conf file? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 12 Sep 2004 01:38:49 -0000 Hi, I tried many times, turning on and off the option PFIL_HOOKS in the kernel conf file to try to get PF compile into the kernel, but without success. When remove option PFIL_HOOKS, PF failed to compile. Here is the error when compiling PF into kernel without PFIL_HOOKS: pf_ioctl.o(.text+0x5230): In function `hook_pf': : undefined reference to `pfil_head_get' pf_ioctl.o(.text+0x5251): In function `hook_pf': : undefined reference to `pfil_add_hook' pf_ioctl.o(.text+0x5260): In function `hook_pf': : undefined reference to `pfil_add_hook' pf_ioctl.o(.text+0x526c): In function `hook_pf': : undefined reference to `pfil_head_get' pf_ioctl.o(.text+0x5284): In function `hook_pf': : undefined reference to `pfil_remove_hook' pf_ioctl.o(.text+0x5293): In function `hook_pf': : undefined reference to `pfil_remove_hook' pf_ioctl.o(.text+0x52ab): In function `hook_pf': : undefined reference to `pfil_add_hook' pf_ioctl.o(.text+0x52ba): In function `hook_pf': : undefined reference to `pfil_add_hook' pf_ioctl.o(.text+0x52f3): In function `dehook_pf': : undefined reference to `pfil_head_get' pf_ioctl.o(.text+0x5310): In function `dehook_pf': : undefined reference to `pfil_remove_hook' pf_ioctl.o(.text+0x531f): In function `dehook_pf': : undefined reference to `pfil_remove_hook' pf_ioctl.o(.text+0x532b): In function `dehook_pf': : undefined reference to `pfil_head_get' pf_ioctl.o(.text+0x5348): In function `dehook_pf': : undefined reference to `pfil_remove_hook' pf_ioctl.o(.text+0x5357): In function `dehook_pf': : undefined reference to `pfil_remove_hook' *** Error code 1 With option PFIL_HOOKS, the compilation failed with the following error (this time PF is compiled OK, but the system does not like it: config -d /usr/obj/usr/src/sys/GENERIC /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/GENERIC: unknown option "PFIL_HOOKS" Does anyone have any suggestion to compile PF into kernel in Beta 3? Thanks sam -- Security Architect/Consultant AuthTec Gateway Limited Mobile: 9839 2464 Email: sam.wun@authtec.net Website: http://www.authtec.com