From owner-freebsd-stable@FreeBSD.ORG Thu Aug 7 02:50:50 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23B91106567A for ; Thu, 7 Aug 2008 02:50:50 +0000 (UTC) (envelope-from kmd@milshop.ru) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id E909F8FC16 for ; Thu, 7 Aug 2008 02:50:49 +0000 (UTC) (envelope-from kmd@milshop.ru) Received: by wf-out-1314.google.com with SMTP id 24so176248wfg.7 for ; Wed, 06 Aug 2008 19:50:49 -0700 (PDT) Received: by 10.142.180.11 with SMTP id c11mr272098wff.113.1218077449152; Wed, 06 Aug 2008 19:50:49 -0700 (PDT) Received: by 10.142.200.13 with HTTP; Wed, 6 Aug 2008 19:50:49 -0700 (PDT) Message-ID: <519867a90808061950p4a611403we7248af13e69dc5d@mail.gmail.com> Date: Thu, 7 Aug 2008 06:50:49 +0400 From: "Eugene Kazarinov" Sender: kmd@milshop.ru To: "Daniel O'Connor" , "FreeBSD Stable" In-Reply-To: <200808071114.46366.doconnor@gsoft.com.au> MIME-Version: 1.0 References: <519867a90808061700i677df5e8u221fe39de2fd3e1@mail.gmail.com> <519867a90808061751y566ea52y983c626f80fd87ac@mail.gmail.com> <519867a90808061819h15e0094cv824256e38684bce1@mail.gmail.com> <200808071114.46366.doconnor@gsoft.com.au> X-Google-Sender-Auth: 5fd48617abc0cd0a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: FreeBSD 6.3/amd64: ng_ipacct "Depends on kernel" ?? why? when? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 02:50:50 -0000 > > > # $FreeBSD: ports/net-mgmt/ng_ipacct/Makefile,v 1.9 2008/06/02 > > NO_PACKAGE= "Depends on kernel" > > > > # $FreeBSD: ports/net-mgmt/ng_ipacct/Makefile,v 1.10 2008/08/05 > > IGNORE= "Depends on kernel" > > > > > > > > Should I change IGNORE to NO_PACKAGE and it should works fine for me? > > Or something would wrong? > > Seems like it, although if you aren't building packages then it > shouldn't matter either way.. > > It does seem odd that it changed to IGNORE - NO_PACKAGE could be OK to > use by itself. > > The logic for that doesn't really make sense either.. I CC'd the port > maintainer about it. > Thank you a lot. By the way I have one more question to port mantainer (dont know who is this). in rc.conf I have this line ng_ipacct_enable="YES" Sample ng_ipacct.conf contains these lines #ng_ipacct_enable="YES" ng_ipacct_modules_load="YES" ng_ipacct_modules_list="netgraph ng_ether ng_ipacct" after boot with these lines in config file I got in /var/log/messages: Aug 7 06:15:49 ph26 root: /etc/rc: WARNING: can not load kld module netgraph Aug 7 06:15:49 ph26 kernel: kldload: /boot/kernel/ng_ether.ko: Unsupported file type Aug 7 06:15:49 ph26 kernel: module_register: module ng_ether already exists! Aug 7 06:15:49 ph26 kernel: Module ng_ether failed to register: 17 Aug 7 06:15:49 ph26 root: /etc/rc: WARNING: can not load kld module ng_ether Aug 7 06:15:49 ph26 kernel: kldload: /boot/modules/ng_ipacct.ko: Unsupported file type IP accounting is working! If I change lines to #ng_ipacct_enable="YES" ng_ipacct_modules_load="YES" ng_ipacct_modules_list="" I got Aug 7 06:20:22 ph26 kernel: kldload: /boot/modules/ng_ipacct.ko: Unsupported file type IP accounting is still working! And If I change they to #ng_ipacct_enable="YES" #ng_ipacct_modules_load="YES" #ng_ipacct_modules_list="netgraph ng_ether ng_ipacct" I got Aug 7 06:11:53 ph26 root: /etc/rc: WARNING: $ng_ipacct_modules_load is not set properly - see rc.conf(5). Aug 7 06:11:53 ph26 kernel: kldload: /boot/modules/ng_ipacct.ko: Unsupported file type IP accounting is still working! Wonderful! :-\ So, as I understand all needed modules loading by kernel "by default"?! And as I understand, module ng_ipacct.ko is not needed to the system for IP accounting?! because its not loaded in working system (and it's not working (isnt it?)) because it is "Unsupported file type"?! So, from that port (ng_ipacct) on up-to-date FreeBSD-systems people need only executable (/usr/local/etc/rc.d/ng_ipacct) and conf (/usr/local/etc/rc.d/ng_ipacct.conf.sample renamed to /usr/local/etc/rc.d/ng_ipacct.conf) files? Nor kernel module?! So, If I dont want to get error response "kernel: kldload: /boot/modules/ng_ipacct.ko: Unsupported file type" in /var/log/messages then I could remove /boot/modules/ng_ipacct.ko and /boot/modules/linker.hints last one containes: 01 00 00 00 1C 00 00 00 02 00 00 00 09 6E 67 5F 69 70 61 63 ............ng_ipac 63 74 0C 6E 67 5F 69 70 61 63 63 74 2E 6B 6F 00 ct.ng_ipacct.ko. and all'll works fine after that? I'm afraid to delete these files, because I think system can becomes unbootable. Isn't it? PS uname -a FreeBSD ph26.yaol.ru 6.3-STABLE FreeBSD 6.3-STABLE #0: Thu Aug 7 05:32:15 MSD 2008 kamuzon@ph26.yaol.ru:/usr/obj/usr/src/sys/KMD amd64 PPS sorry for my english Thanks in advance.