Subject: bin/17308: usr.bin/make does not build with Makefile.boot
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmmv@hispabsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6A
>Organization:
HispaBSD
>Environment:
	
	
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
>Description:
	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.
>How-To-Repeat:
	
>Fix:

----- 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;
     }
     else
-	return sys_errlist[e];
+	return (char*) sys_errlist[e];
 }
 #endif
 
----- end  ----- (note blank line at end)
>Release-Note:
>Audit-Trail:
>Unformatted: