NetBSD Problem Report #2881
Received: (qmail-queue invoked from smtpd); 21 Oct 1996 22:40:51 -0000
Message-Id: <199610212239.PAA08512@spy.ipsec.com>
Date: Mon, 21 Oct 1996 15:39:16 -0700 (PDT)
From: David Carrel <carrel@ipsec.com>
Reply-To: carrel@ipsec.com
To: gnats-bugs@gnats.netbsd.org
Subject: sunos compat LKM doesn't build
X-Send-Pr-Version: 3.95
>Number: 2881
>Category: port-m68k
>Synopsis: The build of sys/lkm/compat/sunos fails on m68k ports
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: explorer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 21 15:50:03 +0000 1996
>Closed-Date: Tue Oct 22 19:10:01 +0000 1996
>Last-Modified: Tue Oct 22 19:10:40 +0000 1996
>Originator: David Carrel
>Release: NetBSD-current supped 21 Oct 1996
>Organization:
My head hurts
>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
>Release-Note:
>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: carrel@ipsec.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-m68k/2881: sunos compat LKM doesn't build
Date: Tue, 22 Oct 1996 11:03:15 +1000
the compat LKM's do not work currently, at all.
.mrg.
From: David Carrel <carrel@cisco.com>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-m68k/2881: sunos compat LKM doesn't build
Date: Mon, 21 Oct 1996 18:12:34 -0700
May I suggest then, that they be taken out of src/sys/Makefile so that a
compile of the system succeeds. Or if you apply the patch I sent, at least
the compile succeeds.
I found LKM compile errors in the sunos and the linux compat stuff. Both
are repairable from a compiling perspective. (I'll send a patch for the
linux stuff if you like. But that one is a bit more hacked so I didn't
send-pr it.)
thanks
Dave
> the compat LKM's do not work currently, at all.
>
>
> .mrg.
From: Michael Graff <explorer@flame.org>
To: carrel@ipsec.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-m68k/2881: sunos compat LKM doesn't build
Date: 22 Oct 1996 14:15:59 -0400
David Carrel <carrel@ipsec.com> writes:
> >Synopsis: The build of sys/lkm/compat/sunos fails on m68k ports
Even with that in there, things will still not work for you. This is
because:
COMPAT_SUNOS is littered throughout the kernel source, and not all
of it can be contained within a LKM.
The LKM system needs an overhaul.
--Michael
From: David Carrel <carrel@cisco.com>
To: Michael Graff <explorer@flame.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-m68k/2881: sunos compat LKM doesn't build
Date: Tue, 22 Oct 1996 11:23:44 -0700
> > >Synopsis: The build of sys/lkm/compat/sunos fails on m68k ports
>
> Even with that in there, things will still not work for you. This is
> because:
> COMPAT_SUNOS is littered throughout the kernel source, and not all
> of it can be contained within a LKM.
>
> The LKM system needs an overhaul.
I am aware that the LKM's will not work. However since they are included
in a top level make, they should at least compile. The patch I sent in
will at least allow it to compile. It's just a start.
The other option is to take the LKMs out of the src/sys/Makefile but I
discussed that with Matthew Green and he felt that it should stay in the
compiles.
Dave
State-Changed-From-To: open->closed
State-Changed-By: explorer
State-Changed-When: Tue Oct 22 12:10:01 PDT 1996
State-Changed-Why:
Fix applied.
Responsible-Changed-From-To: gnats-admin->explorer
Responsible-Changed-By: explorer
Responsible-Changed-When: Tue Oct 22 12:10:01 PDT 1996
Responsible-Changed-Why:
I fixed it.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.