9.0 Stable unable to buildworld, missing KERN_PROC_ENV in kvm_proc.c

Mikolaj Golub trociny at freebsd.org
Sun Feb 5 09:54:34 UTC 2012


On Sun, 5 Feb 2012 20:09:08 +1100 Dewayne wrote:

 D> Unfortunately 9.0 Stable fails to compile due to missing declaration of
 D> KERN_PROC_ENV in /usr/src/lib/libkvm/kvm_proc.c.  csup'ed from today.

 D> Please refer to the following changes on 30-Jan-2012: 
 D> http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libkvm/kvm_proc.c.diff?r1=1.106.2.1;r2=1.106.2.2;f=h

 D> Compile error reads:
 D> cc -O2 -pipe -pipe -O2 -g0 -DSTRIP_FBSDID -UDEBUGGING -march=prescott -mtune=prescott  -DLIBC_SCCS -I/usr/src/lib/libkvm
 D> -DNDEBUG -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
 D> -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libkvm/kvm_proc.c
 D> /usr/src/lib/libkvm/kvm_proc.c: In function 'kvm_argv':
 D> /usr/src/lib/libkvm/kvm_proc.c:663: error: 'KERN_PROC_ENV' undeclared (first use in this function)
 D> /usr/src/lib/libkvm/kvm_proc.c:663: error: (Each undeclared identifier is reported only once
 D> /usr/src/lib/libkvm/kvm_proc.c:663: error: for each function it appears in.)

 D> Am I the last person using i386 architecture?  ;) I'm half joking. The
 D> buildworld completes successfully for architecture=amd64.

And there should not be problems with i386 too. The error does not look like
architecture specific. Could you please recheck your sources and building
procedure and give more details if the error still exists.

KERN_PROC_ENV is declared in sys/sys/sysctl.h, and this was MFCed in r230754,
before the MFC lib/libkvm (r230780) you are referring to.

-- 
Mikolaj Golub


More information about the freebsd-stable mailing list