Subject: port-evbppc/31097: [PATCH] INSTALL_OPENBLOCKS266 compile failure
To: None <port-evbppc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <fun@naobsd.org>
List: netbsd-bugs
Date: 08/30/2005 14:32:00
>Number:         31097
>Category:       port-evbppc
>Synopsis:       [PATCH] INSTALL_OPENBLOCKS266 compile failure
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-evbppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 30 14:32:00 +0000 2005
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 3.99.7 / 2005-08-29 -current source
>Organization:
	FUKAUMI Naoki
>Environment:
System: NetBSD turion64.naobsd.org 3.99.7 NetBSD 3.99.7 (TURION64) #2: Tue Aug 16 19:43:57 JST 2005 root@turion64.naobsd.org:/usr/obj/amd64/sys/arch/amd64/compile/TURION64 amd64
Architecture: x86_64
Machine: amd64
>Description:
	  ./build.sh -m evbppc release
	was failed as,
  :
#   compile  INSTALL_OPENBLOCKS266/kern_subr.o
/home/t/bin/powerpc--netbsd-gcc -mcpu=403 -msoft-float -Wa,-maltivec -ffreestand
ing -g -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpoint
er-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshado
w -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -D_
_obs405__ -Devbppc=evbppc -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DPPC
_INTR_IMPL=<powerpc/ibm4xx/ibm4xx_intr.h> -DPPC_PCI_MACHDEP_IMPL=<powerpc/ibm4xx
/pci_machdep.h> -DKERNBASE=0x25000 -DSPILLSTK=1024 -DDEBUG -DTRAP_PANICWAIT -DEX
T2FS_SYSTEM_FLAGS -DEMAC_EVENT_COUNTERS -DDIAGNOSTIC -DMALLOC_NOINLINE -DMAXUSER
S=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c /usr/src/sys/kern/kern_s
ubr.c
/usr/src/sys/kern/kern_subr.c: In function `setroot':
/usr/src/sys/kern/kern_subr.c:761: error: `fakemdrootdev' undeclared (first use 
in this function)
/usr/src/sys/kern/kern_subr.c:761: error: (Each undeclared identifier is reporte
d only once
/usr/src/sys/kern/kern_subr.c:761: error: for each function it appears in.)
/usr/src/sys/kern/kern_subr.c: In function `finddevice':
/usr/src/sys/kern/kern_subr.c:1084: error: `fakemdrootdev' undeclared (first use
 in this function)
  :

>How-To-Repeat:
	See above.
>Fix:
Index: sys/arch/evbppc/conf/INSTALL_OPENBLOCKS266
===================================================================
RCS file: /home/fun/cvsroot/NetBSD/src/sys/arch/evbppc/conf/INSTALL_OPENBLOCKS266,v
retrieving revision 1.1
diff -u -r1.1 INSTALL_OPENBLOCKS266
--- sys/arch/evbppc/conf/INSTALL_OPENBLOCKS266	3 Aug 2005 14:55:37 -0000	1.1
+++ sys/arch/evbppc/conf/INSTALL_OPENBLOCKS266	30 Aug 2005 14:26:15 -0000
@@ -26,3 +26,5 @@
 options 	MEMORY_DISK_SERVER=0		# no userspace memory disk
 #options 	MEMORY_DISK_ROOT_SIZE=8192	# size of memory disk, in blocks
 options 	MEMORY_DISK_ROOT_SIZE=4096	# size of memory disk, in blocks
+
+pseudo-device	md		1	# memory disk device