Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 1996 06:10:02 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: bin/2197: function prototype mismatch breaks make world.
Message-ID:  <199612121410.GAA13764@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/2197; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: akiyama@kme.mei.co.jp, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/2197: function prototype mismatch breaks make world.
Date: Fri, 13 Dec 1996 00:27:32 +1100

 >>Environment:
 >
 >	All FreeBSD 2.2-ALPHA systems.
 
 Not all :-).
 
 >>Description:
 >
 >	functional prototype of malloc() is not match between standard
 >	header declaration and sources of /usr/bin/fmt and
 >	/usr/games/adventure.
 >	This breaks making all binaries at /usr/src.
 
 gcc apparently has a kludge to hide this bug.  It apparently looks at the
 names of the headers.  The following compiles with no warnings even with
 cc -ansi -pedantic:
 
 a.c:
 	char *malloc();
 	#include <stdlib.h>
 
 The following compiles with just one diagnostic with cc -ansi -pedantic:
 
 b.c:
 	#include <stdlib.h>
 	char *malloc();
 
 The output of the following still compiles:
 
 	cc -E b.c >c.c
 
 The output of the following doesn't compile:
 
 	cc -E -P b.c >d.c
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612121410.GAA13764>