Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Feb 2012 11:54:29 +0200
From:      Mikolaj Golub <trociny@freebsd.org>
To:        "Dewayne" <dewayne.geraghty@heuristicsystems.com.au>
Cc:        andrey@zonov.org, freebsd-stable@freebsd.org
Subject:   Re: 9.0 Stable unable to buildworld, missing KERN_PROC_ENV in kvm_proc.c
Message-ID:  <861uq9a9m2.fsf@kopusha.home.net>
In-Reply-To: <C573F9714ACC4138A4B54B7EA87898E2@white> (Dewayne's message of "Sun, 5 Feb 2012 20:09:08 %2B1100")
References:  <C573F9714ACC4138A4B54B7EA87898E2@white>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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