Subject: kern/8638: make build fails due to loadfile_machdep.h is missing in INCS in Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: netbsd-bugs
Date: 10/17/1999 09:50:50
>Number:         8638
>Category:       kern
>Synopsis:       make bulid fails due to loadfile_machdep.h is missing in INCS in Makefile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 17 09:42:00 1999
>Last-Modified:
>Originator:     SUNAGAWA Keiki
>Organization:
	home
>Release:        -current as of 1999-10-18
>Environment:
	
System: NetBSD azarin 1.4L NetBSD 1.4L (AZARIN) #81: Mon Oct 11 22:57:13 JST 1999 kei@azarin:/a/anoncvs/netbsd/src/sys/arch/macppc/compile/AZARIN macppc


>Description:
	some archs have loadfile_machdep.h in their include directory but not
	shown in INCS= list in include/Makefile, not installed into
	${DESTDIR}/usr/include/${MACHINE}, causes make build failure.
>How-To-Repeat:
	make build fails on sys/lib/libsa/loadfile.c.  log file are such:

(snip)
In file included from /a/anoncvs/netbsd/src/sys/arch/macppc/stand/ofwboot/../../../../lib/libsa/loadfile.c:94:
/a/anoncvs/netbsd/src/sys/arch/macppc/stand/ofwboot/../../../../lib/libsa/loadfile.h:70: machine/loadfile_machdep.h: No such file or directory
mkdep: compile failed.
*** Error code 1
(snip)

>Fix:
	following patch fixed compilation problem on macppc, but alpha, bebox,
	newsmips also lack loadfile_machdep.h in INCS in their
	include/Makefile.

	In addition to that, rbus_machdep.h which were introduced recently with
	CardBus (currently i386 and macppc) are also missing.

Index: Makefile
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/macppc/include/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	1999/03/28 13:39:30	1.4
+++ Makefile	1999/10/17 16:26:22
@@ -6,9 +6,9 @@
 INCS=	adbsys.h ansi.h aout_machdep.h asm.h autoconf.h bat.h bswap.h bus.h \
 	cdefs.h cpu.h db_machdep.h disklabel.h elf_machdep.h endian.h \
 	float.h fpu.h frame.h grfioctl.h ieee.h ieeefp.h intr.h ipkdb.h \
-	kcore.h keyboard.h limits.h machine_type.h param.h pcb.h \
-	pio.h pmap.h powerpc.h proc.h profile.h psl.h pte.h ptrace.h reg.h \
-	reloc.h setjmp.h signal.h stdarg.h trap.h types.h varargs.h \
-	vmparam.h z8530var.h
+	kcore.h keyboard.h limits.h loadfile_machdep.h machine_type.h param.h \
+	pcb.h pio.h pmap.h powerpc.h proc.h profile.h psl.h pte.h ptrace.h \
+	rbus_machdep.h reg.h reloc.h setjmp.h signal.h stdarg.h trap.h \
+	types.h varargs.h vmparam.h z8530var.h
 
 .include <bsd.kinc.mk>
>Audit-Trail:
>Unformatted: