Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jan 2003 15:28:39 +0100
From:      phk@freebsd.org
To:        David Holm <david@realityrift.com>
Cc:        current@freebsd.org
Subject:   Re: Compilation failure on x86 
Message-ID:  <10107.1041690519@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 04 Jan 2003 13:51:42 %2B0100." <200301041351.43005.david@realityrift.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200301041351.43005.david@realityrift.com>, David Holm writes:
>Hi,
>I tried upgrading this morning but compilation fails with the following error 
>(I waited a while and cvsup'd again in case someone was commiting, didn't 
>help)

It seems like your #includes are not in sync with your userland,
did you use "make buildworld" or did you simple "make all" in /usr/src ?

If you did the latter you need to do "make installincludes" first.

Poul-Henning

>
>===> lib/libkvm
>Warning: Object directory not changed from original /usr/src/lib/libkvm
>gcc -O2 -pipe -march=pentiumpro -DLIBC_SCCS -I/usr/src/lib/libkvm  -c 
>kvm_getswapinfo.c -o kvm_getswapinfo.o
>In file included from kvm_getswapinfo.c:20:
>/usr/include/vm/swap_pager.h:75: syntax error before "vm_object_t"
>kvm_getswapinfo.c: In function `kvm_getswapinfo_kvm':
>kvm_getswapinfo.c:191: storage size of `swinfo' isn't known
>kvm_getswapinfo.c:194: invalid use of undefined type `struct swdevt'
>kvm_getswapinfo.c:194: dereferencing pointer to incomplete type
>kvm_getswapinfo.c: In function `nlist_init':
>kvm_getswapinfo.c:559: storage size of `swinfo' isn't known
>kvm_getswapinfo.c:561: invalid use of undefined type `struct swdevt'
>kvm_getswapinfo.c:561: dereferencing pointer to incomplete type
>*** Error code 1
>
>/usr/include/vm/swap_pager.h:
> *      from: @(#)swap_pager.h  7.1 (Berkeley) 12/5/90
> * $FreeBSD: src/sys/vm/swap_pager.h,v 1.35 2002/12/15 19:17:57 dillon Exp $
>
>struct swblock {
>        struct swblock  *swb_hnext;
>        vm_object_t     swb_object;     <----- line 75
>        vm_pindex_t     swb_index;
>        int             swb_count;
>        daddr_t         swb_pages[SWAP_META_PAGES];
>};
>
>//David Holm
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-current" in the body of the message
>
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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