From owner-freebsd-stable@FreeBSD.ORG Fri May 4 15:58:24 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D57716A400 for ; Fri, 4 May 2007 15:58:24 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.152]) by mx1.freebsd.org (Postfix) with ESMTP id 192DC13C448 for ; Fri, 4 May 2007 15:58:23 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-71-198-0-135.hsd1.ca.comcast.net[71.198.0.135]) by comcast.net (rwcrmhc12) with ESMTP id <20070504155822m1200cfonpe>; Fri, 4 May 2007 15:58:23 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 98E2C1FA01D; Fri, 4 May 2007 08:58:22 -0700 (PDT) Date: Fri, 4 May 2007 08:58:22 -0700 From: Jeremy Chadwick To: "Neo [GC]" Message-ID: <20070504155822.GA25656@icarus.home.lan> Mail-Followup-To: "Neo [GC]" , Stefan Lambrev , freebsd-stable@freebsd.org References: <463B24C3.3010906@gothic-chat.de> <463B2C30.9020002@sun-fish.com> <463B3C59.4040204@gothic-chat.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <463B3C59.4040204@gothic-chat.de> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-stable@freebsd.org, Stefan Lambrev Subject: Re: Can't make buildworld in 6-STABLE 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: Fri, 04 May 2007 15:58:24 -0000 On Fri, May 04, 2007 at 03:59:53PM +0200, Neo [GC] wrote: > > Neo [GC] wrote: > >> Hi, > >> > >> currently i have a strange problem with 'make buildworld'. I use the amd64 > >> 6-STABLE branch with daily csup on src-all. > >> > >> When i do a 'make buildworld' in /usr/src, the make stops with the > >> following error: > >> ---------- > >> /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `kvm_getswapinfo_kvm': > >> /usr/src/lib/libkvm/kvm_getswapinfo.c:124: error: storage size of 'swinfo' > >> isn't known > >> /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `nlist_init': > >> /usr/src/lib/libkvm/kvm_getswapinfo.c:233: error: storage size of 'swinfo' > >> isn't known > >> *** Error code 1 > > I have tried it without CPUTYPE and CFLAGS, with NO_CPU_CFLAGS and > NO_CPU_COPTFLAGS, without NO_PROFILE= and -> still same error :( > > I don't think it has anything to do with the NO_PROFILE=, as buildworld > works on my i386 machine with this flag set. Looking at src/lib/libkvm/kvm_getswapinfo.c, we can see that the swinfo struct is defined inside that .c file, as type struct swdevt: 36 #include 124 struct swdevt *sp, swinfo; swdevt comes from src/sys/vm/swap_pager.h: 49 struct swdevt; 52 53 /* 54 * Swap device table 55 */ 56 struct swdevt { 57 int sw_flags; 58 int sw_nblks; 59 int sw_used; 60 dev_t sw_dev; 61 struct vnode *sw_vp; 62 void *sw_id; 63 swblk_t sw_first; 64 swblk_t sw_end; 65 struct blist *sw_blist; 66 TAILQ_ENTRY(swdevt) sw_list; 67 sw_strategy_t *sw_strategy; 68 sw_close_t *sw_close; 69 }; I can't explain why this isn't building for you (it's also very early in the morning here and I haven't had my coffee yet... not quite ready for C debugging. ;) ) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |