Subject: kern/4233: undefined symbols at kernel build time
To: None <gnats-bugs@gnats.netbsd.org>
From: Paul Goyette <paul@whooppee.com>
List: netbsd-bugs
Date: 10/07/1997 06:04:14
>Number:         4233
>Category:       kern
>Synopsis:       undefined symbols at kernel build time
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct  7 06:20:02 1997
>Last-Modified:
>Originator:     Paul Goyette
>Organization:
>Release:        6-Oct-1997
>Environment:
System: NetBSD mac1.whooppee.com 1.2G NetBSD 1.2G (SM) #34: Sat Sep 27 09:06:33 PDT 1997 paul@mac1.whooppee.com:/home/paul/src/sys/arch/mac68k/compile/SM (current as of Fri Sep 26 04:32:47 1997) mac68k


>Description:
	Building a kernel without an ARP-capable device causes undefined
	symbols at kernel link time.  These symbols come from krpc_subr.o
	which should not be included in the kernel if there are no ARP-
	capable devices configured.
>How-To-Repeat:
	Build a minimal kernel with network and nfs client & server support
	but without any network devices except for ppp and/or slip.
>Fix:
	Apply the following patch to sys/files to prevent inclusion of 
	nfs/krpc_subr.o in such kernels:

--- files	Mon Sep 22 04:25:54 1997
+++ new_files	Tue Oct  7 05:58:08 1997
@@ -423,7 +423,7 @@
 file netns/ns_proto.c			ns
 file netns/spp_debug.c			ns
 file netns/spp_usrreq.c			ns
-file nfs/krpc_subr.c			nfs
+file nfs/krpc_subr.c			nfs & arp
 file nfs/nfs_bio.c			nfs
 file nfs/nfs_boot.c			nfs
 file nfs/nfs_bootdhcp.c 		nfs & arp
>Audit-Trail:
>Unformatted: