From owner-freebsd-current@FreeBSD.ORG Sun Jul 26 18:34:46 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A5831065693 for ; Sun, 26 Jul 2009 18:34:46 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 54FAE8FC08 for ; Sun, 26 Jul 2009 18:34:46 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id n6QIYkmL012413; Sun, 26 Jul 2009 11:34:46 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id n6QIYkdm012412; Sun, 26 Jul 2009 11:34:46 -0700 (PDT) (envelope-from sgk) Date: Sun, 26 Jul 2009 11:34:46 -0700 From: Steve Kargl To: Kostik Belousov Message-ID: <20090726183446.GA12288@troutmask.apl.washington.edu> References: <20090726175934.GA12223@troutmask.apl.washington.edu> <20090726182603.GV55190@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090726182603.GV55190@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: shm breaks 'make buildkernel' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2009 18:34:46 -0000 On Sun, Jul 26, 2009 at 09:26:03PM +0300, Kostik Belousov wrote: > On Sun, Jul 26, 2009 at 10:59:34AM -0700, Steve Kargl wrote: > > cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/sysv_shm.c > > /usr/src/sys/kern/sysv_shm.c:882: error: field 'shm_perm' has incomplete type > > cc1: warnings being treated as errors > > /usr/src/sys/kern/sysv_shm.c: In function 'oshmctl': > > /usr/src/sys/kern/sysv_shm.c:925: warning: implicit declaration of function 'ipcperm_new2old' > > /usr/src/sys/kern/sysv_shm.c:925: warning: nested extern declaration of 'ipcperm_new2old' > > /usr/src/sys/kern/sysv_shm.c:939: warning: implicit declaration of function 'freebsd7_shmctl' > > /usr/src/sys/kern/sysv_shm.c:939: warning: nested extern declaration of 'freebsd7_shmctl' > > /usr/src/sys/kern/sysv_shm.c: At top level: > > /usr/src/sys/kern/sysv_shm.c:954: error: 'freebsd7_shmctl' undeclared here (not in a function) > > *** Error code 1 > > > > Stop in /usr/obj/usr/src/sys/MOBILE. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > You need COMPAT_FREEBSD(N+1), if you defined COMPAT_FREEBSDN in your > config. In your case, you need COMPAT_FREEBSD7. I don't have *any* COMPAT_FREEBSDN options in my config file! In trying to track down the problem, it seems COMPAT_FREEBSD7 is required if one has COMPAT_43 in the config file. Given that /sys/conf/NOTE strongly suggests that COMPAT_43 should remain in one's config file, then is not optional. -- Steve