From dan@master8.ms.mff.cuni.cz  Wed Sep  1 19:24:13 2010
Return-Path: <dan@master8.ms.mff.cuni.cz>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 572A010656B8
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Sep 2010 19:24:13 +0000 (UTC)
	(envelope-from dan@master8.ms.mff.cuni.cz)
Received: from master8.ms.mff.cuni.cz (master8.ms.mff.cuni.cz [195.113.20.25])
	by mx1.freebsd.org (Postfix) with ESMTP id E4D3B8FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Sep 2010 19:24:12 +0000 (UTC)
Received: from master8.ms.mff.cuni.cz (localhost [127.0.0.1])
	by master8.ms.mff.cuni.cz (8.14.4/8.14.4) with ESMTP id o81Iw1wB055636
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Sep 2010 20:58:01 +0200 (CEST)
	(envelope-from dan@master8.ms.mff.cuni.cz)
Received: (from root@localhost)
	by master8.ms.mff.cuni.cz (8.14.4/8.14.4/Submit) id o81Iw1st055635;
	Wed, 1 Sep 2010 20:58:01 +0200 (CEST)
	(envelope-from dan)
Message-Id: <201009011858.o81Iw1st055635@master8.ms.mff.cuni.cz>
Date: Wed, 1 Sep 2010 20:58:01 +0200 (CEST)
From: Dan Lukes <dan@obluda.cz>
Reply-To: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kernel doesn't compile with SYSVMSG and any of COMPAT_FREEBSD[456] but no COMPAT_FREEBSD7	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         150199
>Category:       kern
>Synopsis:       [build] kernel doesn't compile with SYSVMSG and any of COMPAT_FREEBSD[456] but no COMPAT_FREEBSD7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 01 19:30:01 UTC 2010
>Closed-Date:    Tue Sep 07 13:16:32 UTC 2010
>Last-Modified:  Tue Sep 07 13:16:32 UTC 2010
>Originator:     Dan Lukes
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
Obludarium
>Environment:
System: FreeBSD 8.1-RELEASE i386
src/sys/kern/sysv_msg.c,v 1.77.2.2.2.1 2010/06/14 02:09:06 kensmith


	
>Description:
Kernel doesn't compile when
SYSVMSG and any of COMPAT_FREEBSD[456] but NO COMPAT_FREEBSD7 module compiled in
because of:
/usr/src/sys/kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here (not in a function)

The relevant part of code is:
#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
    defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
        SYSCALL_INIT_HELPER(msgsys),
        SYSCALL_INIT_HELPER(freebsd7_msgctl),
#endif

>How-To-Repeat:
	try to compile kernel with option set specified above
>Fix:
	I can't supply fix for now, only the workaround:
when SYSVMSG and any of COMPAT_FREEBSD[456] required then COMPAT_FREEBSD7 needs to be present also


>Release-Note:
>Audit-Trail:

From: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/150199: kernel doesn't compile with SYSVMSG and any of COMPAT_FREEBSD[456]
 but no COMPAT_FREEBSD7
Date: Wed, 01 Sep 2010 22:16:47 +0200

 Update - the COMPAT_FREEBSD7 is required all the times the SYSVMSG is
 requested. It doesn't depend on the others COMPAT_FREEBSDx options as
 claimed before.
 
 Dan
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: arundel 
Responsible-Changed-When: Tue Sep 7 11:40:48 UTC 2010 
Responsible-Changed-Why:  
John might have an opinion on this PR, since he added the '20090624' entry to 
/usr/src/UPDATING which deals with the COMPAT_FREEBSD[4-7] options. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150199 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Tue Sep 7 13:15:55 UTC 2010 
State-Changed-Why:  
Not a bug, this is how the COMPAT_FREEBSDn options work. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150199 
>Unformatted:
