agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedProblems building bmake on AIX 3.2.5
3+ messages / 3 participants
[nested] [flat]
* Problems building bmake on AIX 3.2.5
@ 1994-11-28 18:55 Paul J Turner <pturner@amb4.ccalmr.ogi.edu>
1994-11-28 19:14 ` Re: Problems building bmake on AIX 3.2.5 Paul M. Aoki <aoki@cs.berkeley.edu>
1994-11-29 09:04 ` Re: Problems building bmake on AIX 3.2.5 Pekka Kataja <pkat@hki.wsoy.fi>
0 siblings, 2 replies; 3+ messages in thread
From: Paul J Turner @ 1994-11-28 18:55 UTC (permalink / raw)
To: legacy
Hello from Oregon, USA,
I'm trying to build pg on an IBM RS6K 320h with xlc (cc) and
AIX 3.2.5, but I don't seem to have the right stuff to build
bmake. I'm getting:
./Bootstrap aix
make started.
cc -DUSE_AIA -D_BSD -D_PATH_DEFSYSMK=\"`pwd`/mk-proto/sys.mk\" -D_PATH_DEFSYSPATH=\"`pwd
`/mk-proto\" -I. -c arch.c buf.c compat.c cond.c dir.c hash.c job.c main.c make.c parse.c str.c suf
f.c targ.c var.c setenv.c
arch.c:
buf.c:
compat.c:
"compat.c", line 280.20: 1506-021 (S) Expecting struct or union.
"compat.c", line 282.29: 1506-021 (S) Expecting struct or union.
"compat.c", line 293.23: 1506-021 (S) Expecting struct or union.
cond.c:
in compat.c (and in a couple of other modules further down). The relevant lines
are as follows:
if (WIFSTOPPED(reason.w_status)) {
status = reason.w_stopval; /* stopped */
} else if (WIFEXITED(reason.w_status)) {
status = reason.w_retcode; /* exited */
if (status != 0) {
printf ("*** Error code %d", status);
}
I checked the header files and it seems to want _POSIX_SOURCE or something.
But throwing _POSIX_SOURCE at it causes other problems. Any clue as to what
can be done to fix this?
Thanks in advance,
--Paul
Paul J Turner
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Problems building bmake on AIX 3.2.5
1994-11-28 18:55 Problems building bmake on AIX 3.2.5 Paul J Turner <pturner@amb4.ccalmr.ogi.edu>
@ 1994-11-28 19:14 ` Paul M. Aoki <aoki@cs.berkeley.edu>
1 sibling, 0 replies; 3+ messages in thread
From: Paul M. Aoki @ 1994-11-28 19:14 UTC (permalink / raw)
To: Paul J Turner <pturner@amb4.ccalmr.ogi.edu>; +Cc: legacy
pturner@amb4.ccalmr.ogi.edu (Paul J Turner) writes:
> I'm trying to build pg on an IBM RS6K 320h with xlc (cc) and
> AIX 3.2.5, but I don't seem to have the right stuff to build
> bmake. I'm getting:
> "compat.c", line 280.20: 1506-021 (S) Expecting struct or union.
------- Forwarded Message
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: egan@cbs.cis.com (Egan F. Ford)
Cc: postgres@postgres.Berkeley.EDU (Postgres Mailing List)
Subject: Re: Bmake build fail on aix3.2.5
Date: Fri, 19 Aug 94 12:28:40 -0700
egan@cbs.cis.com (Egan F. Ford) writes:
> I've built postgres for linux and now would like to build it for AIX 3.2.5,
> the install docs say that it is a tested platform. I cannot get bmake to
> build.
> "compat.c", line 280.20: 1506-021 (S) Expecting struct or union.
> "compat.c", line 282.29: 1506-021 (S) Expecting struct or union.
> "compat.c", line 293.23: 1506-021 (S) Expecting struct or union.
go into compat.c and job.c and wherever you see "WIFsomething(foo.w_status)"
change it to "WIFsomething(foo)". i broke this for AIX when porting to
solaris (i checked that it works on everything else just now).
(i ran regress and multiuser tests on everything but only bootstrapped
from the tar file on about 1/3 of the platforms. this one slipped through
the cracks, oh well, sorry. i don't get paid to do this..)
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
------- End of Forwarded Message
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Problems building bmake on AIX 3.2.5
1994-11-28 18:55 Problems building bmake on AIX 3.2.5 Paul J Turner <pturner@amb4.ccalmr.ogi.edu>
@ 1994-11-29 09:04 ` Pekka Kataja <pkat@hki.wsoy.fi>
1 sibling, 0 replies; 3+ messages in thread
From: Pekka Kataja @ 1994-11-29 09:04 UTC (permalink / raw)
To: pturner@amb4.ccalmr.ogi.edu; +Cc: legacy
>
> I'm trying to build pg on an IBM RS6K 320h with xlc (cc) and
> AIX 3.2.5, but I don't seem to have the right stuff to build
> bmake. I'm getting:
>
> I checked the header files and it seems to want _POSIX_SOURCE or something.
> But throwing _POSIX_SOURCE at it causes other problems. Any clue as to what
> can be done to fix this?
>
AIX handle union wait and it's macros own ways.
Look at /usr/include/sys/m_wait.h. It's _BSD style union wait.
Look also /usr/include/sys/wait.h
I resolved this
/* compat.c" The cursor is at line 286 of 627 */
#ifdef _AIX
} else if (WIFEXITED(reason)) {
#else
} else if (WIFEXITED(reason.w_status)) {
#endif
I have compat.c and job.c modified , but there aren't many place where WIF*
macros exist.
-----------------------------------------------------------------------------
Pekka Kataja WSOY ( Werner Soderstrom Limited )
email: pkat@hki.wsoy.fi * fax: +358-0-6168510 * tel: +358-0-6168468
P.O.BOX 222 00121 Helsinki Finland
navigare necesse est, vivere non est necesse
-----------------------------------------------------------------------------
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1994-11-29 09:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-11-28 18:55 Problems building bmake on AIX 3.2.5 Paul J Turner <pturner@amb4.ccalmr.ogi.edu>
1994-11-28 19:14 ` Paul M. Aoki <aoki@cs.berkeley.edu>
1994-11-29 09:04 ` Pekka Kataja <pkat@hki.wsoy.fi>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox