libkvm broken in current?

Cyrille Lefevre clefevre-lists at 9online.fr
Mon Jul 5 05:18:05 PDT 2004


<gnarlie at ihku.org> wrote:
> failed to compile on two i386 boxes of mine.
>
> root at 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 at laposte.net



More information about the freebsd-current mailing list