🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1326

make3.63 on hpux install

#1326
From: Neal Becker
Date: Tue, 26 Jan 1993 02:01
28 lines
1656 bytes
No luck.  Tried ansi c (cc -Aa -D_HPUX_SOURCE), plain /bin/cc, and gcc
2.3.3.  Here's the problem:

job.c: In function `reap_children':
job.c:244: warning: passing arg 2 of `waitpid' from incompatible pointer type
job.c:247: warning: passing arg 1 of `wait' from incompatible pointer type
job.c:263: aggregate value used where an integer was expected
job.c:264: aggregate value used where an integer was expected
job.c:264: invalid operands to binary &
job.c:264: aggregate value used where an integer was expected
job.c:265: aggregate value used where an integer was expected

Here is job.c line 263
	      exit_sig = WIFSIGNALED (status) ? WTERMSIG (status) : 0;

Here is the macroexpanded version:
	      exit_sig =  ((((int)(status)&0377)!=0)&&(((status)&0377)!=0177))  ?  ((int)(status)&0177)  : 0;

status is a union wait.  I guess it can't be cast to an int?

This looks like an hpux screwup to me.  union wait is defined, but the
man page for wait says the arg is an int!  Maybe union wait is defined
but its use is deprecated?

Anyway, anyone know how I can test this theory by convicing configure
that I don't have union wait?

Thanks.
Technical Details
Message-ID: <NEAL.93Jan25102920@neal.ctd.comsat.com>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: neal@ctd.COMsat.COM (Neal Becker)
Newsgroups: gnu.utils.bug
Subject: make3.63 on hpux install
Date: 25 Jan 1993 21:01:28 -0500
Organization: COMSAT Labs
Lines: 29
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-utils@prep.ai.mit.edu
Distribution: gnu
Message-ID: <NEAL.93Jan25102920@neal.ctd.comsat.com>