Article View: comp.sys.next.programmer
Article #277gcc-2.2.1 and <sys/wait.h>
From: 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
Technical Details
Message-ID:
<almm#bd.coactive@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcomsv!mork!coactiveShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcomsv!mork!coactive From: coactive@netcom.com (Coactive Aesthetics) Subject: gcc-2.2.1 and <sys/wait.h> Message-ID: <almm#bd.coactive@netcom.com> Date: Tue, 28 Jul 92 09:12:32 GMT Organization: Netcom - Online Communication Services (408 241-9760 guest) Lines: 39