home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5281 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcomsv!mork!coactive
  3. From: coactive@netcom.com (Coactive Aesthetics)
  4. Subject: gcc-2.2.1 and <sys/wait.h>
  5. Message-ID: <almm#bd.coactive@netcom.com>
  6. Date: Tue, 28 Jul 92 09:12:32 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Lines: 39
  9.  
  10. I am in the process of upgrading to gcc version 2.2.1, and have come across
  11. the following problem on a Next 2.1 system:
  12.  
  13. In the file protoize.c, it includes at line 71:
  14.  
  15. #include <sys/wait.h>
  16.  
  17. This will cause the following error when built using the gcc in stage1:
  18.  
  19. In file included from protoize.c:71:
  20. /usr/include/sys/wait.h:128: parse error before `('
  21. /usr/include/sys/wait.h:128: parse error before `)'
  22.  
  23. The original <sys/wait.h> entry is:
  24.  
  25. extern int wait(union wait *);
  26.  
  27. When I execute the gcc preprocessor and compiler built during stage 1, the
  28. preprocessor generates the following:
  29.  
  30. # 127 "/usr/include/sys/wait.h" 2 3
  31.  
  32. extern int wait ((union wait *) (union wait *)) ;
  33. extern int wait3(union wait *, int, struct rusage *);
  34.  
  35. The compiler pukes on the extern definition for wait(). I looked at all the
  36. preceding includes and cannot figure out why this prototype is broke. Is this
  37. a known problem? (I have not seen any postings on this, but I was not paying
  38. attention when 2.2.1 was released). If so, could someone forward me the
  39. patch(s) needed to correct this?
  40.  
  41. Thanks,
  42.  
  43. Otto
  44.  
  45. --
  46. Otto Lind                  Coactive Aesthetics
  47. otto@coactive.com          P.O. Box 425967, San Francisco, CA 94142
  48. netcom!coactive!otto       voice:(415)626-5152    fax:(415)626-6320
  49.