Can't make buildworld in 6-STABLE
Jeremy Chadwick
koitsu at FreeBSD.org
Fri May 4 15:58:24 UTC 2007
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 |
More information about the freebsd-stable
mailing list