Subject: port-amiga/1923: /usr/include/machine/param.h defines MAXPARTITIONS which breaks config
To: None <gnats-bugs@gnats.netbsd.org>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 01/10/1996 15:12:06
>Number: 1923
>Category: port-amiga
>Synopsis: /usr/include/machine/param.h defines MAXPARTITIONS which breaks config
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 10 10:05:01 1996
>Last-Modified:
>Originator: Thorsten Frueauf
>Organization:
private
>Release: <NetBSD-current source date> NetBSD current 08.01.96
>Environment:
System: NetBSD di_frueauf 1.1A NetBSD 1.1A (Milano) #1: Mon Jan 8 05:36:18 GMT 1996 milano@di_frueauf:/home/milano/source/netbsd-src/sys/arch/amiga/compile/Milano amiga
>Description:
/usr/include/machine/param.h defines MAXPARTITIONS which leads to the following
error when trying to compile /src/usr.sbin/config:
cc -O -I/home/milano/source/netbsd-src/usr.sbin/config -I. -Werror -c gram.c
y.tab.c:119: warning: `MAXPARTITIONS' redefined
/usr/include/machine/param.h:115: warning: this is the location of the previous
definition
*** Error code 1
Stop.
>How-To-Repeat:
Try to compile /src/usr.sbin/config on Amiga NetBSD current < 08.01.96
>Fix:
*** param.h.orig Mon Aug 21 18:02:09 1995
--- param.h Sun Jan 7 16:15:20 1996
***************
*** 111,118 ****
#ifndef NKMEMCLUSTERS
#define NKMEMCLUSTERS (3072*1024/CLBYTES)
#endif
-
- #define MAXPARTITIONS 16
/* pages ("clicks") to disk blocks */
#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT))
--- 111,116 ----
>Audit-Trail:
>Unformatted:
/usr/include/machine/param.h defines MAXPARTITIONS which breaks config