Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Arthur David Olson
Thu, 29 Sep 1988 18:45
Gnu C compiler 1.28's <stddef.h> and SunOS 4.0 <sys/types.h> don't mix
Author: Arthur David Olson
Date: Thu, 29 Sep 1988 18:45
Date: Thu, 29 Sep 1988 18:45
28 lines
1481 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads