From avatar@ksue.edu.ua  Thu Apr 17 22:56:51 2003
Return-Path: <avatar@ksue.edu.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 72C1637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Apr 2003 22:56:51 -0700 (PDT)
Received: from ksue.edu.ua (ksue.kharkov.ukrtel.net [195.5.57.77])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 81AD043FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Apr 2003 22:56:47 -0700 (PDT)
	(envelope-from avatar@ksue.edu.ua)
Received: (from root@localhost)
	by ksue.edu.ua (8.11.6p2/8.11.6) id h3I5u8L34268;
	Fri, 18 Apr 2003 08:56:08 +0300 (EEST)
	(envelope-from avatar)
Message-Id: <200304180556.h3I5u8L34268@ksue.edu.ua>
Date: Fri, 18 Apr 2003 08:56:08 +0300 (EEST)
From: "Vladimir V. Kalashnikov" <root@ksue.edu.ua>
Reply-To: "Vladimir V. Kalashnikov" <root@ksue.edu.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: MSGBUF_SIZE doesn't work in makefiles
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51120
>Category:       kern
>Synopsis:       MSGBUF_SIZE doesn't work in makefiles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 17 23:00:24 PDT 2003
>Closed-Date:    Sat Sep 24 09:13:30 UTC 2011
>Last-Modified:  Sat Sep 24 09:20:52 UTC 2011
>Originator:     Vladimir V. Kalashnikov <root@ksue.edu.ua>
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
Kharkov State University of Economics
>Environment:
System: FreeBSD mirinda.local 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Fri Apr 4 11:09:29 EEST 2003 root@mirinda.local:/usr/src/sys/compile/MIRINDA i386


	
>Description:
when option MSGBUF_SIZE is specified in configuration
file it doesn't affect making process of new kernel, so configuration
files should be inspected and rearrangement of include files should be
done to specify option MSGBUF_SIZE before the first access to it inside
sources will occure
	
>How-To-Repeat:
in msgbuf.h  (size: 2477 bytes) replace
#define MSGBUF_SIZE     32768
   with
#error "MSGBUF_SIZE isn't specified"

and do compilation of new kernel,
i.e. config xyz; make depend; make

even if "options MSGBUF_SIZE=91920" is placed somewhere in config
file the #error "MSGBUF_SIZE isn't specified" will be hit.

	
>Fix:
sorry, dunno exact recipe :-(
	
>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@freebsd.org>
To: "Vladimir V. Kalashnikov" <root@ksue.edu.ua>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/51120: MSGBUF_SIZE doesn't work in makefiles
Date: Fri, 18 Apr 2003 09:39:56 +0300

 On Fri, Apr 18, 2003 at 08:56:08AM +0300, Vladimir V. Kalashnikov wrote:
 > in msgbuf.h  (size: 2477 bytes) replace
 > #define MSGBUF_SIZE     32768
 >    with
 > #error "MSGBUF_SIZE isn't specified"
 > 
 > and do compilation of new kernel,
 > i.e. config xyz; make depend; make
 > 
 > even if "options MSGBUF_SIZE=91920" is placed somewhere in config
 > file the #error "MSGBUF_SIZE isn't specified" will be hit.
 > 
 Sources playing with MSGBUF_SIZE are expected to
 #include "opt_msgbuf.h" before #include <sys/msgbuf.h>.
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Sysadmin and DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Sat Sep 24 09:13:29 UTC 2011 
State-Changed-Why:  
I don't think this is a bug. See the follow-up from ru@. 

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