Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Coactive Aesthetics
Tue, 28 Jul 1992 09:12
gcc-2.2.1 and <sys/wait.h>
Author: Coactive Aesthetics
Date: Tue, 28 Jul 1992 09:12
Date: Tue, 28 Jul 1992 09:12
39 lines
1661 bytes
1661 bytes
I am in the process of upgrading to gcc version 2.2.1, and have come across
the following problem on a Next 2.1 system:
In the file protoize.c, it includes at line 71:
#include <sys/wait.h>
This will cause the following error when built using the gcc in stage1:
In file included from protoize.c:71:
/usr/include/sys/wait.h:128: parse error before `('
/usr/include/sys/wait.h:128: parse error before `)'
The original <sys/wait.h> entry is:
extern int wait(union wait *);
When I execute the gcc preprocessor and compiler built during stage 1, the
preprocessor generates the following:
# 127 "/usr/include/sys/wait.h" 2 3
extern int wait ((union wait *) (union wait *)) ;
extern int wait3(union wait *, int, struct rusage *);
The compiler pukes on the extern definition for wait(). I looked at all the
preceding includes and cannot figure out why this prototype is broke. Is this
a known problem? (I have not seen any postings on this, but I was not paying
attention when 2.2.1 was released). If so, could someone forward me the
patch(s) needed to correct this?
Thanks,
Otto
--
Otto Lind Coactive Aesthetics
otto@coactive.com P.O. Box 425967, San Francisco, CA 94142
netcom!coactive!otto voice:(415)626-5152 fax:(415)626-6320
Re: gcc-2.2.1 and <sys/wait.h>
Author: Nick Kline
Date: Tue, 28 Jul 1992 20:16
Date: Tue, 28 Jul 1992 20:16
19 lines
811 bytes
811 bytes
>I am in the process of upgrading to gcc version 2.2.1, >In the file protoize.c, it includes at line 71: > >#include <sys/wait.h> > >attention when 2.2.1 was released). If so, could someone forward me the >patch(s) needed to correct this? Yes, the patch is to get 2.2.2, the latest release. I built it and this problem was not there. Always get the latest release. -nick kline@cs.arizona.edu
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