Subject: GRF_COMPAT slip
To: None <port-mac68k@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 05/21/2000 20:12:51
Hi,

a -current kernel build without 

options 	GRF_COMPAT	# Include grf compatibility code

gives me

[hauke@q700] /<3>compile/CHUCK # make
cc  -pipe -m68030 -O3 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../gnu/sys -DHZ="0x3c" -DM68030 -DDIAGNOSTIC -DPCKBD_LAYOUT="(KB_DE | KB_NODEAD | KB_METAESC)" -DMAXUSERS=16 -D_KERNEL -Dmac68k  -c ../../../../arch/mac68k/dev/grf_compat.c
../../../../arch/mac68k/dev/grf_compat.c: In function `grfioctl':
../../../../arch/mac68k/dev/grf_compat.c:256: `GRFIOCGINFO' undeclared (first use in this function)
../../../../arch/mac68k/dev/grf_compat.c:256: (Each undeclared identifier is reported only once
../../../../arch/mac68k/dev/grf_compat.c:256: for each function it appears in.)
../../../../arch/mac68k/dev/grf_compat.c:258: sizeof applied to an incomplete type
../../../../arch/mac68k/dev/grf_compat.c:259: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:260: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:261: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:262: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:263: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:264: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:265: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:266: dereferencing pointer to incomplete type
../../../../arch/mac68k/dev/grf_compat.c:267: dereferencing pointer to incomplete type
cc1: warnings being treated as errors
../../../../arch/mac68k/dev/grf_compat.c:257: warning: unreachable code at beginning of switch statement
../../../../arch/mac68k/dev/grf_compat.c:277: `GRFIOCMAP' undeclared (first use in this function)
../../../../arch/mac68k/dev/grf_compat.c:281: `GRFIOCUNMAP' undeclared (first use in this function)
*** Error code 1

Stop.

Looks like some #ifdef is missing here.

      hauke

-- 
NetBSD. Not Guano.