Subject: kern/1963: options NS causes kernel compile to fail.
To: None <gnats-bugs@gnats.netbsd.org>
From: Jonathan O'Brien <obrien@phoenix.sfsu.edu>
List: netbsd-bugs
Date: 01/21/1996 11:51:10
>Number:         1963
>Category:       kern
>Synopsis:       'options NS' causes kernel compile to fail.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 21 16:20:02 1996
>Last-Modified:
>Originator:     Jonathan O'Brien
>Organization:
>Release:        NetBSD-1.1
>Environment:
	
System: NetBSD phoenix.sfsu.edu 1.1 NetBSD 1.1 (PHOENIX) #0: Mon Dec 18 08:19:30 PST 1995 root@phoenix.sfsu.edu:/usr/src/sys/arch/sparc/compile/PHOENIX sparc


>Description:
	kernel config files with 'options NS' will fail in the link/dump
	phase with:

loading netbsd
idp_usrreq.o: Undefined symbol `_ns_cksum' referenced from text segment
ns_error.o: Undefined symbol `_ns_cksum' referenced from text segment
ns_error.o: Undefined symbol `_ns_cksum' referenced from text segment
ns_input.o: Undefined symbol `_ns_cksum' referenced from text segment
spp_usrreq.o: Undefined symbol `_ns_cksum' referenced from text segment
*** Error code 1

Stop.


>How-To-Repeat:
	Create a config file with 'options NS' included, and attempt to
	compile it.
>Fix:
	I think the following patch to /sys/conf/files fixes the problem:

*** /sys/conf/files.orig        Fri Oct 13 19:36:01 1995
--- /sys/conf/files     Sun Jan 21 09:04:04 1996
***************
*** 263,268 ****
--- 263,269 ----
  file netiso/tuba_usrreq.c             iso tuba
  file netns/idp_usrreq.c                       ns
  file netns/ns.c                               ns
+ file netns/ns_cksum.c                 ns
  file netns/ns_error.c                 ns
  file netns/ns_input.c                 ns
  file netns/ns_ip.c                    ns

>Audit-Trail:
>Unformatted: