From owner-freebsd-current@FreeBSD.ORG Fri Jul 24 05:02:37 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D5871065673 for ; Fri, 24 Jul 2009 05:02:37 +0000 (UTC) (envelope-from wtf.jlaine@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 081188FC1F for ; Fri, 24 Jul 2009 05:02:34 +0000 (UTC) (envelope-from wtf.jlaine@gmail.com) Received: by fxm18 with SMTP id 18so1204891fxm.43 for ; Thu, 23 Jul 2009 22:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:x-operating-system; bh=kOjnUJQ1s6z1U+whhUUnJhxGg3mgPAP3CB2mk5YtGH4=; b=BOtZLQayNOg7V8jFeyhiInR6+AZzcAPcE71F3Jl2PQpgXdwEWJF2qEeuXzst/bSHGc MhDtNIIlfbBVU82H1Ulx7gcfpbbYFCe8jo3232X80J7HMPTieOAbc++G/Y4OlLw555iO c14unrCqlWXQZgKySG0SWraO3zD8hsULPBOgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-operating-system; b=Mnpn65P3rXR9m62A+8FM+0O264rXG0btk3Pv7pqJNvY5o39xgWUUsaDwI2aiU+NWMY GoccBJISZvZweRDn2RRS1AD+EyVcsP6mat8imyPg51vxNWMFF2KJzq6xQqoOHcbf+7T1 v1M0mVzRA0BhtwygOojz8qa6fR8fKUKK3EArU= Received: by 10.86.65.18 with SMTP id n18mr2589405fga.7.1248410251501; Thu, 23 Jul 2009 21:37:31 -0700 (PDT) Received: from blackmesa ([77.66.145.99]) by mx.google.com with ESMTPS id l19sm6452859fgb.6.2009.07.23.21.37.29 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 21:37:31 -0700 (PDT) Received: by blackmesa (sSMTP sendmail emulation); Fri, 24 Jul 2009 08:37:26 +0400 Date: Fri, 24 Jul 2009 08:37:26 +0400 From: Jeff Laine To: Julian Elischer Message-ID: <20090724043726.GA5474@free.bsd.loc> References: <20090723132830.GA33539@free.bsd.loc> <4A687DBE.5060200@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A687DBE.5060200@elischer.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-BETA2 i386 Cc: FreeBSD Current Subject: Re: ng_ipacct build error [SOLVED] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 24 Jul 2009 05:02:37 -0000 On Thu,07/23/09 [08:11:58], Julian Elischer wrote: > Jeff Laine wrote: > >Hello list! > > > >I have upgraded to BETA2 recently and decided to recompile > >net-mgmt/ng_ipacct port > >(it was compiled in 7.2 so it's kernel module refused to load). > > > >But I stuck with this permanent stop error: > > > > > >4:49pm [/ports/net-mgmt/ng_ipacct]# make > >===> Vulnerability check disabled, database not found > >===> Found saved configuration for ng_ipacct-20061223 > >===> Extracting for ng_ipacct-20061223 > >=> MD5 Checksum OK for ng_ipacct-20061223.tar.gz. > >=> SHA256 Checksum OK for ng_ipacct-20061223.tar.gz. > >===> Patching for ng_ipacct-20061223 > >===> Applying FreeBSD patches for ng_ipacct-20061223 > >===> Configuring for ng_ipacct-20061223 > >===> Building for ng_ipacct-20061223 > >===> ng_ipacct (all) > >Warning: Object directory not changed from original > >/tmp/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct > >@ -> /usr/src/sys > >machine -> /usr/src/sys/i386/include > >:> opt_netgraph.h > >cc -O2 -pipe -DMEM_USE_ZONE -fno-strict-aliasing -g -Werror -D_KERNEL > >-DKLD_MODULE -nostdinc > >-I/tmp/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 -fstack-protector -std=iso9899:1999 > >-fstack-protector -Wall -Wredundant-decls -Wnested-externs > >-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > >-Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ng_ipacct.c > >ld -d -warn-common -r -d -o ng_ipacct.kld ng_ipacct.o > >:> export_syms > >awk -f /sys/conf/kmod_syms.awk ng_ipacct.kld export_syms | xargs -J% > >objcopy % ng_ipacct.kld > >ld -Bshareable -d -warn-common -o ng_ipacct.ko ng_ipacct.kld > >objcopy --strip-debug ng_ipacct.ko > >===> ipacctctl (all) > >Warning: Object directory not changed from original > >/tmp/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ipacctctl > >cc -O2 -pipe -DMEM_USE_ZONE -fno-strict-aliasing -g -Wall -Wformat > >-std=gnu99 -fstack-protector -c ipacctctl.c > >ipacctctl.c:146: error: 'NG_PATHLEN' undeclared here (not in a function) > >ipacctctl.c: In function 'ip_account_get_info': > >ipacctctl.c:505: warning: unused variable 'path' > >ipacctctl.c: In function 'ip_account_show': > >ipacctctl.c:602: warning: unused variable 'path' > >*** Error code 1 > > > >Stop in /tmp/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ipacctctl. > >*** Error code 1 > > > >Stop in /tmp/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct. > >*** Error code 1 > > > >Stop in /usr/ports/net-mgmt/ng_ipacct. > >*** Error code 1 > > > >Stop in /usr/ports/net-mgmt/ng_ipacct. > > > > > > > > > >Should I contact the maintainer or am I 'doing it wrong'? :) > > > > > >TIA > > > > > #ifndef BURN_BRIDGES > /* don't use these - they will go away */ > #define NG_TYPELEN (NG_TYPESIZ - 1) > #define NG_HOOKLEN (NG_HOOKSIZ - 1) > #define NG_NODELEN (NG_NODESIZ - 1) > #define NG_PATHLEN (NG_PATHSIZ - 1) > #define NG_CMDSTRLEN (NG_CMDSTRSIZ - 1) > #endif > > they went away > > use NG_PATHSIZ (or NG_PATHSIZ-1 depending on what you ar edoing wih it). Thanks for the hint Julian! All is ok now. -- Best regards, Jeff | "Nobody wants to say how this works. | | Maybe nobody knows ..." | | Xorg.conf(5) |