home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2463 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.6 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!ctd.COMsat.COM!neal
  2. From: neal@ctd.COMsat.COM (Neal Becker)
  3. Newsgroups: gnu.utils.bug
  4. Subject: make3.63 on hpux install
  5. Date: 25 Jan 1993 21:01:28 -0500
  6. Organization: COMSAT Labs
  7. Lines: 29
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <NEAL.93Jan25102920@neal.ctd.comsat.com>
  12.  
  13. No luck.  Tried ansi c (cc -Aa -D_HPUX_SOURCE), plain /bin/cc, and gcc
  14. 2.3.3.  Here's the problem:
  15.  
  16. job.c: In function `reap_children':
  17. job.c:244: warning: passing arg 2 of `waitpid' from incompatible pointer type
  18. job.c:247: warning: passing arg 1 of `wait' from incompatible pointer type
  19. job.c:263: aggregate value used where an integer was expected
  20. job.c:264: aggregate value used where an integer was expected
  21. job.c:264: invalid operands to binary &
  22. job.c:264: aggregate value used where an integer was expected
  23. job.c:265: aggregate value used where an integer was expected
  24.  
  25. Here is job.c line 263
  26.           exit_sig = WIFSIGNALED (status) ? WTERMSIG (status) : 0;
  27.  
  28. Here is the macroexpanded version:
  29.           exit_sig =  ((((int)(status)&0377)!=0)&&(((status)&0377)!=0177))  ?  ((int)(status)&0177)  : 0;
  30.  
  31. status is a union wait.  I guess it can't be cast to an int?
  32.  
  33. This looks like an hpux screwup to me.  union wait is defined, but the
  34. man page for wait says the arg is an int!  Maybe union wait is defined
  35. but its use is deprecated?
  36.  
  37. Anyway, anyone know how I can test this theory by convicing configure
  38. that I don't have union wait?
  39.  
  40. Thanks.
  41.  
  42.