🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1725

Gnu C compiler 1.28's <stddef.h> and SunOS 4.0 <sys/types.h> don't mix

#1725
From: Arthur David Olson
Date: Thu, 29 Sep 1988 18:45
28 lines
1481 bytes
(We're running SunOS 4.0 on a Sun 3/110.)

Description:
	There's a clash between the Gnu C compiler version 1.28 <stddef.h>
	file and the SunOS 4.0 <sys/types.h> file.  <sys/types.h> is
	indirectly included by <X11/Xlib.h>.

Repeat-By:
	Script started on Thu Sep 29 14:37:49 1988
	daisy$ cat try.c
	#include <stddef.h>
	#include <X11/Xlib.h>

	int main() {return 0;}
	daisy$ gcc -v try.c
	gcc version 1.28
	 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -Dmc68020 -D__HAVE_FPU__-Dmc68020 try.c /tmp/cca02090.cpp
	GNU CPP version 1.28
	 /usr/local/lib/gcc-cc1 /tmp/cca02090.cpp -quiet -dumpbase try.c -version -o /tmp/cca02090.s
	GNU C version 1.28 (68k, MIT syntax) compiled by GNU C version 1.28.
>>>>	/usr/include/sys/types.h:54: conflicting types for `size_t'
	/usr/local/lib/gcc-include/stddef.h:10: previous declaration of `size_t'
	daisy$ exit

	script done on Thu Sep 29 14:38:18 1988
-- 
	  The Canadian space program is into artificial catatonia.
	ado@ncifcrf.gov			ADO is a trademark of Ampex.
Technical Details
Message-ID: <8809291845.AA12148@elsie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!ado

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!ado
From: elsie!ado@NCIFCRF.GOV (Arthur David Olson)
Newsgroups: gnu.gcc.bug
Subject: Gnu C compiler 1.28's <stddef.h> and SunOS 4.0 <sys/types.h> don't mix
Message-ID: <8809291845.AA12148@elsie.UUCP>
Date: 29 Sep 88 18:45:51 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 28