Subject: FW: Configuring kernel for pmax
To: NetBSD Mailing List <>
From: Chris Tribo <>
List: port-pmax
Date: 03/22/2000 23:40:49

Murphy was an optimist.

From: Nathan Dushman <>
Organization: Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.unix.bsd.netbsd.misc
Date: Wed, 22 Mar 2000 15:32:01 -0500
Subject: Re: Configuring kernel for pmax

The simple solution is to edit the Makefile and remove -Werror.  The error
you're getting is not at all serious (it's actually a warning) and could be
ignored.  However, kernel code is supposed to compile without any warnings
errors, so when compiling a kernel, the compiler is instructed to treat all
warnings and errors as errors with the -Werror switch.  Try removing -Werror
from the Makefile and see if you get any further problems.  Also, you might
want to send a copy of your config file, along with the error you're seeing,
the port-pmax mailing list so that someone can take a look at it.

Alternately, a quick fix in the source code would be to replace the line
 char *cp; (line 754, in /usr/src/sys/arch/pmax/dev/dc.c)
 char *cp;

I don't know enough about the pmax configuration to know which configuration
option would set NRASTERCONSOLE to be greater than 0, which would also solve
your problem.

Finally, try upgrading to the just-released NetBSD 1.4.2, and see if it's
fixed in that version.


On Wed, Mar 22, 2000 at 02:14:19PM +0100, Uwe Lienig wrote:
> Hi,
> I'm familiar with several U*nix (including Ultrix). Because of the
> retired Ultrix I switched to NetBSD-1.4.1. The key issue was, that I
> want to use the pmax-boxes as a bind and mail server ( which these boxes
> will cover, I think ). To optimize memory usage I want to setup the
> kernel with a minimum of options necessary to run the system.
> After reading man pages and having the configuration file for the Ultrix
> kernel in mind I tried to adopt the NetBSD config file.
> The system has no X, no frame buffer - it is a 3MIN according to the
> Code Name Column in the System Type List available from PMAX porting
> page.
> Can anyone give me a hint, what options are needed and which may be
> omitted. The config file I use comes out with the following error:
> cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> -Wno-uninitialized -Wpointer-arith -Wno-main -G 0  -mno-abicalls
> -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1
> -Dpmax  -c ../../../../arch/pmax/dev/dc.c
> cc1: warnings being treated as errors
> ../../../../arch/pmax/dev/dc.c: In function `dcrint':
> ../../../../arch/pmax/dev/dc.c:754: warning: unused variable `cp'
> *** Error code 1
> Stop.
> Any help apreciated.
> Uwe
Content-Description: Card for Uwe Lienig