Subject: bin/17308: usr.bin/make does not build with Makefile.boot
To: None <>
From: None <>
List: netbsd-bugs
Date: 06/18/2002 23:41:37
>Number:         17308
>Category:       bin
>Synopsis:       usr.bin/make does not build with Makefile.boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 18 14:41:00 PDT 2002
>Originator:     Julio Merino
>Release:        NetBSD 1.6A
System: NetBSD darkstar.local 1.6A NetBSD 1.6A (DARKSTAR) #0: Thu Jun 13 14:08:33 CEST 2002 jmmv@darkstar.local:/usr/src/sys/arch/i386/compile/DARKSTAR i386
Architecture: i386
Machine: i386
	The program usr.bin/make does not build when using the makefile
	Makefile.boot. There is a conflicting definition in sys_errlist.

	I've attached a patch, although I'm not sure it's the proper way
	to solve it. In fact, sys_errlist is defined in errno.h as extern,
	so there is no need to redefine.

----- start -----
--- /usr/src/usr.bin/make/util.c	Sun Jun 16 13:03:13 2002
+++ util.c	Tue Jun 18 23:36:33 2002
@@ -23,7 +23,6 @@
 #if defined(MAKE_BOOTSTRAP) && !defined(HAVE_STRERROR)
 extern int errno, sys_nerr;
-extern char *sys_errlist[];
 char *
 strerror(int e)
@@ -34,7 +33,7 @@
 	return buf;
-	return sys_errlist[e];
+	return (char*) sys_errlist[e];
----- end  ----- (note blank line at end)