Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Aug 2009 19:23:06 +0800 (KRAST)
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        stable@freebd.org, qa@FreeBSD.org
Subject:   kern/138341: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module
Message-ID:  <200908301123.n7UBN6M7001670@kuzbass.ru>
Resent-Message-ID: <200908301140.n7UBe2SO075125@freefall.freebsd.org>

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

>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 <bsd.kmod.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



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