Subject: bin/2981: sh (or make) misquotes config options with parens
To: None <gnats-bugs@gnats.netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: netbsd-bugs
Date: 11/30/1996 17:05:35
>Number:         2981
>Category:       bin
>Synopsis:       sh (or make)  misquotes config options with parens
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 30 17:20:01 1996
>Last-Modified:
>Originator:     
>Organization:
	
>Release:        NetBSD-current at 1-dec-1996
>Environment:
	
System: NetBSD Cup.DSG.Stanford.EDU 1.2B NetBSD 1.2B (PLACEBO) #19: Tue Nov 19 20:25:25 PST 1996 jonathan@Cup.DSG.Stanford.EDU:/usr/src/sys/arch/i386/compile/PLACEBO i386


>Description:

Configure a kernel (i386, if it matters) with a
locally-tweaked NKMEMCLUSTERS.   I use


options 	NKMEMCLUSTERS="(6 * 1024 * 1024 / CLBYTES)" # lots of kernel VM too

which is identical to the default NKMEMCLUSTERS on an i386, but it
demonstrates the problem.


After adding the above line to a kernel config file and rerunning
config, ``make depend'' and ``make'' succeed _if_ the kernel libraries,
./lib/kern/libkern.o and ./lib/compat/libcompat.a are up-to-date.

If the kernel librariesy are not up-to-date, then the recursive
make misquotes the parenthesized cpp definition, resulting
in the following errors:

making sure the profiled kern library is up to date...
`libkern.po' is up to date.
making sure the profiled compat library is up to date...
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
Syntax error: "(" unexpected
*** Error code 2 (continuing)
`libcompat_p.a' not remade because of errors.

>How-To-Repeat:

See above.

>Fix:

	
I dunno, but it would be nice to fix this.
The default i386 NKMEMCLUSTERS is inadequate for machines configured
with both lots of mbufs and pcvt.
>Audit-Trail:
>Unformatted: