Subject: port-mac68k/5462: current mac68k kernel sources do not build with "options DEBUG"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 05/18/1998 20:02:24
>Number:         5462
>Category:       port-mac68k
>Synopsis:       current mac68k kernel sources do not build with "options DEBUG"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 18 11:20:01 1998
>Last-Modified:
>Originator:     Hauke Fath
>Organization:
Einzeln auftretender Radfahrer
>Release:        980517
>Environment:
	
System: NetBSD q700.hf.org 1.3B NetBSD 1.3B (FG54) #4: Sun Jan 25 22:02:13 CET 1998 hauke@q700:/usr/src/sys/arch/mac68k/compile/FG54 mac68k


>Description:
-current kernel source does not build with "options DEBUG":

cc  -O2 -pipe -m68040 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DFPSP -DFPU_EMULATE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DSHMMAXPGS="0x400" -DLKM -DBUFPAGES="0x3e8" -DKTRACE -DDDB -DDDB_HISTORY_SIZE="0x32" -DDIAGNOSTIC -DDEBUG -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 -DCOMPAT_13 -DNFSSERVER -DFIFO -DINET -DNETATALK -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../arch/mac68k/mac68k/pmap.c
../../../../arch/mac68k/mac68k/pmap.c: In function `pmap_enter_ptpage':
../../../../arch/mac68k/mac68k/pmap.c:2460: `PG_PTPAGE' undeclared (first use this function)
../../../../arch/mac68k/mac68k/pmap.c:2460: (Each undeclared identifier is reported only once
../../../../arch/mac68k/mac68k/pmap.c:2460: for each function it appears in.)
*** Error code 1

-- pmap.c #includes <vm/vm_page.h> which #defines PG_PTPAGE only in the 
non-UVM branch of a conditional compilation.

>How-To-Repeat:
Build a kernel from -current sources with "option DEBUG".

>Fix:
#define PG_PTPAGE for UVM or remove it.
>Audit-Trail:
>Unformatted: