From owner-freebsd-qa@FreeBSD.ORG Sun Aug 30 12:45:28 2009 Return-Path: Delivered-To: qa@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D38C71065670 for ; Sun, 30 Aug 2009 12:45:28 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (ns0.blackend.org [82.227.222.164]) by mx1.freebsd.org (Postfix) with ESMTP id 501E38FC19 for ; Sun, 30 Aug 2009 12:45:27 +0000 (UTC) Received: from gothic.blackend.org (gothic.blackend.org [192.168.1.203]) by abigail.blackend.org (8.13.4/8.13.3) with ESMTP id n7UCYE6i024515; Sun, 30 Aug 2009 14:34:14 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost [127.0.0.1]) by gothic.blackend.org (8.14.3/8.14.3) with ESMTP id n7UCYEFJ001609; Sun, 30 Aug 2009 14:34:14 +0200 (CEST) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.14.3/8.14.3/Submit) id n7UCY8C1001608; Sun, 30 Aug 2009 14:34:08 +0200 (CEST) (envelope-from marc) Date: Sun, 30 Aug 2009 14:34:08 +0200 From: Marc Fonvieille To: Eugene Grosbein Message-ID: <20090830123408.GC1306@gothic.blackend.org> References: <200908301123.n7UBN6M7001670@kuzbass.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200908301123.n7UBN6M7001670@kuzbass.ru> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 8.0-BETA3 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: stable@freebd.org, FreeBSD-gnats-submit@FreeBSD.org, qa@FreeBSD.org Subject: Re: kern/138341: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module X-BeenThere: freebsd-qa@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Quality Assurance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2009 12:45:28 -0000 On Sun, Aug 30, 2009 at 07:23:06PM +0800, Eugene Grosbein wrote: > > >Number: 138341 > >Category: kern > >Synopsis: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module > >Confidential: no > >Severity: serious > >Priority: high > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Aug 30 11:40:02 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Eugene Grosbein > >Release: FreeBSD 8.0-BETA3 i386 > >Organization: > Private person > >Environment: > System: FreeBSD grosbein.pp.ru 8.0-BETA3 FreeBSD 8.0-BETA3 #6: Fri Aug 28 22:34:15 KRAST 2009 eugen@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 > > >Description: > > NanoBSD does not builds: > > ===> sys/modules/sysvipc/sysvmsg (depend) > machine -> /usr/local/src/sys/i386/include > :> opt_sysvipc.h > @ -> /usr/local/src/sys > rm -f .depend > mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/contrib/altq /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c > /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c:53:24: error: opt_compat.h: No such file or directory > mkdep: compile failed > *** Error code 1 > > >How-To-Repeat: > Try to build NanoBSD. > > >Fix: > > Apply next patch to /usr/src: > > --- sys/modules/sysvipc/sysvmsg/Makefile.orig 2009-08-30 19:12:16.000000000 +0800 > +++ sys/modules/sysvipc/sysvmsg/Makefile 2009-08-30 19:14:13.000000000 +0800 > @@ -5,4 +5,11 @@ > KMOD= sysvmsg > SRCS= sysv_msg.c opt_sysvipc.h > > +.if !defined(KERNBUILDDIR) > +opt_compat.h: > + echo "#define COMPAT_FREEBSD8 1" > ${.TARGET} > + > +SRCS+= opt_compat.h > +.endif > + > .include > > I suspect it's the problem I met when I tried to do a make -DMODULES_WITH_WORLD="YES" buildworld and many modules were concerned. See the following patch: Index: sys/modules/dtrace/lockstat/Makefile =================================================================== --- sys/modules/dtrace/lockstat/Makefile (revision 196013) +++ sys/modules/dtrace/lockstat/Makefile (working copy) @@ -5,7 +5,7 @@ KMOD= lockstat SRCS= lockstat.c -SRCS+= vnode_if.h +SRCS+= vnode_if.h opt_kdtrace.h CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ Index: sys/modules/sysvipc/sysvsem/Makefile =================================================================== --- sys/modules/sysvipc/sysvsem/Makefile (revision 196013) +++ sys/modules/sysvipc/sysvsem/Makefile (working copy) @@ -3,6 +3,6 @@ .PATH: ${.CURDIR}/../../../kern KMOD= sysvsem -SRCS= sysv_sem.c opt_sysvipc.h +SRCS= sysv_sem.c opt_sysvipc.h opt_compat.h .include Index: sys/modules/sysvipc/sysvmsg/Makefile =================================================================== --- sys/modules/sysvipc/sysvmsg/Makefile (revision 196013) +++ sys/modules/sysvipc/sysvmsg/Makefile (working copy) @@ -3,6 +3,6 @@ .PATH: ${.CURDIR}/../../../kern KMOD= sysvmsg -SRCS= sysv_msg.c opt_sysvipc.h +SRCS= sysv_msg.c opt_sysvipc.h opt_compat.h .include -- Marc