From owner-freebsd-stable@FreeBSD.ORG Thu Aug 7 22:36:37 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 695AE106567B for ; Thu, 7 Aug 2008 22:36:37 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (unknown [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1086C8FC16 for ; Thu, 7 Aug 2008 22:36:37 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 830B828450 for ; Fri, 8 Aug 2008 06:36:35 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id EF542EDA36F; Fri, 8 Aug 2008 06:36:32 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id MYFkYnwOywod; Fri, 8 Aug 2008 06:36:21 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 3401AEDA284; Fri, 8 Aug 2008 06:36:18 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=KtP3V9pNUX9zFX3wFiohir8GlACkUASRa00qRI9RVc+Nk/mxnx7E3muCmAObiiPFV E5exrkSHT93fX+mOAlSyw== Message-ID: <489B78DF.4000901@delphij.net> Date: Thu, 07 Aug 2008 15:36:15 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080725) MIME-Version: 1.0 To: KES References: <310261218093750@webmail34.yandex.ru> In-Reply-To: <310261218093750@webmail34.yandex.ru> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local' X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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 22:36:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 KES wrote: [...] | kes# make deinstall reinstall clean | ===> Deinstalling for net-mgmt/ng_ipacct | ===> ng_ipacct not installed, skipping | ===> Building for ng_ipacct-20061223 | ===> ng_ipacct (all) | Warning: Object directory not changed from original /usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct | cc -O -pipe -g -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc - -I/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct -I. -I@ - -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 - --param large-function-growth=1000 -fno-common -mno-align-long-strings - -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 - -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs - -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline - -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ng_ipacct.c | ng_ipacct.c: In function 'pcb_get_cred': | ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local' | *** Error code 1 Newer FreeBSD versions requires a 'ucred' parameter, from my understanding it looks that one has to pass the current thread's ucred? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkibeN4ACgkQi+vbBBjt66DO6wCfeG4bbzuFs40CNR28aNFoR/ld P0UAniG1zwrzmQurBOg3yRSDejM4mEaN =mN+B -----END PGP SIGNATURE-----