🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Neal Becker Tue, 26 Jan 1993 02:01
make3.63 on hpux install
#1326
Author: 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.
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