Subject: bin/834: kdump(1) build depends on an absolute path
To: None <gnats-admin@NetBSD.ORG>
From: Scott Reynolds <scottr@balsa.plexus.com>
List: netbsd-bugs
Date: 03/01/1995 21:35:08
>Number:         834
>Category:       bin
>Synopsis:       usr.bin/kdump/kdump.c depends on /sys/kern/syscalls.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar  1 21:35:03 1995
>Originator:     
>Organization:
Scott Reynolds
Technology Group, Inc.
>Release:        1.0A (26 Feb 95) and previous
>Environment:
System: NetBSD balsa 1.0A NetBSD 1.0A (TGI) #5: Mon Feb 27 12:23:01 CST 1995 root@:/b/sys/arch/hp300/compile/TGI hp300


>Description:
	Doing a "make" or "make depend" in usr.bin/kdump results in a
	missing include file if /sys doesn't point to the kernel sources.
>How-To-Repeat:
	See above.
>Fix:
	There would be fewer problems if this was changed to a relative
	path WRT the source tree.

*** kdump.c-dist	Sun Jan 15 06:29:08 1995
--- kdump.c	Wed Mar  1 10:48:40 1995
***************
*** 219,225 ****
  
  #include <sys/syscall.h>
  #define KTRACE
! #include "/sys/kern/syscalls.c"
  #undef KTRACE
  int nsyscalls = sizeof (syscallnames) / sizeof (syscallnames[0]);
  
--- 219,225 ----
  
  #include <sys/syscall.h>
  #define KTRACE
! #include "../../sys/kern/syscalls.c"
  #undef KTRACE
  int nsyscalls = sizeof (syscallnames) / sizeof (syscallnames[0]);
  
>Audit-Trail:
>Unformatted: