From owner-freebsd-current Wed Jul 15 06:35:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA17843 for freebsd-current-outgoing; Wed, 15 Jul 1998 06:35:32 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pop02.globecomm.net (pop02.globecomm.net [207.51.48.186]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA17836 for ; Wed, 15 Jul 1998 06:35:29 -0700 (PDT) (envelope-from mbriggs@switchboard.net) Received: from switchboard.net (gw2.iridium.com [208.226.76.6]) by pop02.globecomm.net (8.8.8/8.8.0) with ESMTP id JAA12484; Wed, 15 Jul 1998 09:35:15 -0400 (EDT) Message-ID: <35ACB008.9EC2C127@switchboard.net> Date: Wed, 15 Jul 1998 09:35:04 -0400 From: "Matthew R. Briggs" X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Tetsuro FURUYA CC: freebsd-current@FreeBSD.ORG Subject: Re: MAXUSERS kernel compile problem References: <35ABADA7.C111A65C@switchboard.net> <199807151124.UAA11631@galois.tf.or.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tetsuro FURUYA wrote: > > In Message-ID: <35ABADA7.C111A65C@switchboard.net> > "Matthew R. Briggs" 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