Subject: port-m68k/2881: sunos compat LKM doesn't build
To: None <>
From: David Carrel <>
List: netbsd-bugs
Date: 10/21/1996 15:39:16
>Number:         2881
>Category:       port-m68k
>Synopsis:       The build of sys/lkm/compat/sunos fails on m68k ports
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 21 15:50:03 1996
>Originator:     David Carrel
	My head hurts
>Release:        NetBSD-current supped 21 Oct 1996
System: NetBSD spy 1.2A NetBSD 1.2A (SPY) #2: Mon Oct 21 11:02:35 PDT 1996 carrel@spy:/.a/haydon/home/NetBSD/src/sys/arch/i386/compile/SPY i386

	A build of /usr/src/sys fails in /usr/src/sys/lkm/compat/sunos on
the hp300.  I believe this will also fail on all m68k ports.  The problem
is that the Makefile specifies sys/arch/${MACHINE}/${MACHINE} as the place
to find sunos_machdep.c and it is noit there.
	cd /usr/src/sys/lkm/compat/sunos/ ; make
	The following patch should do the trick.  I have only tested this
on the hp300.

*** Makefile.orig	Mon Oct 21 15:30:20 1996
--- Makefile	Mon Oct 21 15:30:52 1996
*** 2,8 ****
  .include "../"
! .PATH:	$S/compat/sunos $S/arch/${MACHINE}/${MACHINE}
  NOMAN=	yep
--- 2,8 ----
  .include "../"
! .PATH:	$S/compat/sunos $S/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
  NOMAN=	yep