Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2004 14:18:02 +0200
From:      "Cyrille Lefevre" <clefevre-lists@9online.fr>
To:        <freebsd-current@freebsd.org>, <gnarlie@ihku.org>
Subject:   Re: libkvm broken in current?
Message-ID:  <066b01c4628a$1ea75c30$7890a8c0@dyndns.org>
References:  <20040704071320.GA6168@ihku.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<gnarlie@ihku.org> wrote:
> failed to compile on two i386 boxes of mine.
>
> root@mutka:/usr/src/lib/libkvm# make
> Warning: Object directory not changed from original /usr/src/lib/libkvm
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm.c
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm_i386.c
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm_file.c
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm_getloadavg.c
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm_getswapinfo.c
> /usr/bin/cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c kvm_proc.c
> kvm_proc.c: In function `kvm_proclist':
> kvm_proc.c:113: error: `KI_EMULNAMELEN' undeclared (first use in this
function)
> kvm_proc.c:113: error: (Each undeclared identifier is reported only once
> kvm_proc.c:113: error: for each function it appears in.)
> kvm_proc.c:162: error: `KERN_PROC_GID' undeclared (first use in this function)
> kvm_proc.c:224: error: structure has no member named `ki_childstime'
> kvm_proc.c:225: error: structure has no member named `ki_childutime'
> kvm_proc.c:227: error: structure has no member named `ki_childstime'
> kvm_proc.c:227: error: structure has no member named `ki_childutime'
> kvm_proc.c:227: error: structure has no member named `ki_childstime'
> kvm_proc.c:227: error: structure has no member named `ki_childutime'
> kvm_proc.c:338: error: structure has no member named `ki_emul'
> kvm_proc.c:361: error: structure has no member named `p_nice'
> *** Error code 1


your src tree doesn't seem to be up-to-date or you didn't do a full
buildworld/installworld. in other words, your /usr/include tree is
out-of-date.in the meantime, let's try :
cd /usr/src
make buildincludes
make installincludes
to update your base system headers (/usr/include), so, you will be
able to make anything out of the buildworld/install process.

PS : currently, your problem is that /usr/include/sys/user.h and
/usr/include/sys/sysctl.h are out-of-date. the original ones are
in /usr/src/sys/sys.

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre@laposte.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?066b01c4628a$1ea75c30$7890a8c0>