Subject: port-m68k/2881: sunos compat LKM doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: David Carrel <carrel@ipsec.com>
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
>Last-Modified:
>Originator:     David Carrel
>Organization:
	My head hurts
>Release:        NetBSD-current supped 21 Oct 1996
>Environment:
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


>Description:
	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.
>How-To-Repeat:
	cd /usr/src/sys/lkm/compat/sunos/ ; make
>Fix:
	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 "../Makefile.inc"
  
! .PATH:	$S/compat/sunos $S/arch/${MACHINE}/${MACHINE}
  
  CFLAGS+= -DCOMPAT_SUNOS
  NOMAN=	yep
--- 2,8 ----
  
  .include "../Makefile.inc"
  
! .PATH:	$S/compat/sunos $S/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
  
  CFLAGS+= -DCOMPAT_SUNOS
  NOMAN=	yep

>Audit-Trail:
>Unformatted: