Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 09:35:04 -0400
From:      "Matthew R. Briggs" <mbriggs@switchboard.net>
To:        Tetsuro FURUYA <ht5t-fry@asahi-net.or.jp>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: MAXUSERS kernel compile problem
Message-ID:  <35ACB008.9EC2C127@switchboard.net>
References:  <35ABADA7.C111A65C@switchboard.net> <199807151124.UAA11631@galois.tf.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Tetsuro FURUYA wrote:
> 
> In Message-ID: <35ABADA7.C111A65C@switchboard.net>
> "Matthew R. Briggs" <mbriggs@switchboard.net> wrote:
> 
> > Hello,
> >       A kernel compile has been doing this to me for the past two days
> > (despite repeated cvsups).  It happens on my custom config file as well
> > as LINT:
> > __________
> >
> > cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -W
> > implicit  -Wnested-externs -Wstrict-prototypes -Wmissing-pr
> > ototypes  -Wpointer-arith -Winline -Wuninitialized -ansi -g
> >  -nostdinc -I- -I. -I../.. -I../../../include  -DKERNEL -in
> > clude opt_global.h  param.c
> > param.c:76: `MAXUSERS' undeclared here (not in a function)
> > param.c:76: initializer element is not constant
> > param.c:77: `MAXUSERS' undeclared here (not in a function)
> > param.c:77: initializer element is not constant
> 
> So, you cannot compile param.c.
> You had better check like this,
> 
> cd /usr/src/sys; egrep -aRi 'maxusers' conf i386/conf
> 

Hi,
	I just cvsupped (9:15AM EDT) and ran into the same problem.  Here is
the output of the grep you suggested:

_______

su-2.02# cd /usr/src/sys; egrep -aRi 'maxusers' conf i386/conf
conf/options:MAXUSERS   opt_param.h
conf/param.c: * Compiled with -DMAXUSERS=xx
conf/param.c:#define    NPROC (20 + 16 * MAXUSERS)
conf/param.c:#define    NMBCLUSTERS (512 + MAXUSERS *16)
i386/conf/GENERIC:maxusers      10
i386/conf/LINT:# The `maxusers' parameter controls the static sizing of
a number of
i386/conf/LINT:maxusers 10
i386/conf/LKM:maxusers  2
i386/conf/PCCARD:maxusers       10
i386/conf/SMP-GENERIC:maxusers  10
i386/conf/ANGELICA-SMP:maxusers 10
_______

ANGELICA-SMP is my config file, and it is very similar to SMP-GENERIC. 
I'll save bandwith and not post it unless you think it interesting.

compiling param.c by hand with the additional flag -DMAXUSERS=10 seems
to fix the problem, so it looks like Makefile breakage.  I'll see if I
can track it down.

Matt Briggs
mbriggs@switchboard.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35ACB008.9EC2C127>