Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2007 08:58:22 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        "Neo [GC]" <neo@gothic-chat.de>
Cc:        freebsd-stable@freebsd.org, Stefan Lambrev <stefan.lambrev@sun-fish.com>
Subject:   Re: Can't make buildworld in 6-STABLE
Message-ID:  <20070504155822.GA25656@icarus.home.lan>
In-Reply-To: <463B3C59.4040204@gothic-chat.de>
References:  <463B24C3.3010906@gothic-chat.de> <463B2C30.9020002@sun-fish.com> <463B3C59.4040204@gothic-chat.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <vm/swap_pager.h>
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070504155822.GA25656>