Subject: bin/6990: make build fails on sys/arch/i386/stand/lib
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
List: netbsd-bugs
Date: 02/12/1999 10:12:49
>Number:         6990
>Category:       bin
>Synopsis:       make build fails on sys/arch/i386/stand/lib
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 12 01:20:01 1999
>Last-Modified:
>Originator:     Wolfgang Helbig
>Organization:
	
>Release:        NetBSD-current February 11
>Environment:
	
System: NetBSD rvc1 1.3I NetBSD 1.3I (RVC1) #7: Thu Feb 11 22:00:49 CET 1999 helbig@rvc1:/usr/src/sys/arch/i386/compile/RVC1 i386


>Description:
cc -O2 -Wall  -Werror  -I/usr/src/sys/arch/i386/stand/lib/../../../..//lib/libsa -DCOMPAT_OLDBOOT -DCOMPAT_386BSD_MBRPART -nostdinc -I/usr/src/sys/arch/i386/stand/biosboot/obj -I/usr/src/sys/arch/i386/stand/biosboot/../../../../ -I/usr/src/sys/arch/i386/stand/biosboot/../../../..//arch/i386/stand/lib -I/usr/src/sys/arch/i386/stand/biosboot/../../../..//lib/libsa -D_STANDALONE  -c /usr/src/sys/arch/i386/stand/lib/panic.c
/usr/src/sys/arch/i386/stand/lib/panic.c: In function `panic':
/usr/src/sys/arch/i386/stand/lib/panic.c:53: too many arguments to function `exit'
*** Error code 1
>How-To-Repeat:
	
>Fix:
	Looks like the declaration of exit() in /sys/lib/libsa/stand.h
	is wrong. Here is a patch. Possibly exit() should be staticized
	in /sys/lib/libsa/panic.c!

--- stand.h.orig	Thu Feb 11 13:25:30 1999
+++ stand.h	Fri Feb 12 09:26:27 1999
@@ -126,7 +126,6 @@
 char	*strerror __P((int));
 __dead void	panic __P((const char *, ...)) __attribute__((noreturn));
 __dead void	_rtt __P((void)) __attribute__((noreturn));
-__dead void	exit __P((void)) __attribute__((noreturn));
 void	bcopy __P((const void *, void *, size_t));
 void	*memcpy __P((void *, const void *, size_t));
 int	memcmp __P((const void *, const void *, size_t));
	
>Audit-Trail:
>Unformatted: