From owner-freebsd-pf@FreeBSD.ORG Tue Jul 20 04:45:53 2010 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C3C8106566C for ; Tue, 20 Jul 2010 04:45:53 +0000 (UTC) (envelope-from rush@clink.ru) Received: from hosting.clink.ru (clink.ru [194.165.18.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1E59D8FC18 for ; Tue, 20 Jul 2010 04:45:52 +0000 (UTC) Received: from [192.168.50.225] (unknown [192.168.50.225]) by hosting.clink.ru (Postfix) with ESMTPA id 57D3B11E35 for ; Tue, 20 Jul 2010 10:36:06 +0600 (YEKST) Message-ID: <4C4529C8.9040201@clink.ru> Date: Tue, 20 Jul 2010 10:44:56 +0600 From: "Rushan R. Shaymardanov" User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: freebsd-pf@freebsd.org X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Compiling and loading ng_pf X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 04:45:53 -0000 Hello. I'm trying to use this patch to compile ng_pf: http://lists.freebsd.org/pipermail/freebsd-bugs/2007-December/027288.html During compiling process, I have this error: cc1: warnings being treated as errors /usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c: In function 'ng_pf_rcvdata': /usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c:616: warning: implicit declaration of function 'pf_purge_expired_state' /usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c:616: warning: nested extern declaration of 'pf_purge_expired_state' When I ignoring this by adding WERROR= to sys/modules/netgraph/pf/Makefile , kernel is successfully built. But when I try to load module, I have: kldload: can't load ng_pf: No such file or directory And a message to syslog: link_elf: symbol pf_purge_expired_state undefined File ng_pf.ko exists: # file /boot/kernel/ng_pf.ko /boot/kernel/ng_pf.ko: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped P.S. Sorry for my English Shaymardanov Rushan