Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id KAA14483 for postgres-redist; Mon, 28 Nov 1994 10:55:30 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199411281855.KAA14483@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from church.cse.ogi.edu (cse.ogi.edu [129.95.20.2]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id KAA14473 for <postgres@postgres.berkeley.edu>; Mon, 28 Nov 1994 10:55:29 -0800
Received: from amb4.ccalmr.ogi.edu by church.cse.ogi.edu with smtp
	(Smail3.1.28.1 #5) id m0rCBEK-000KpSC; Mon, 28 Nov 94 10:55 PST
Received: by amb4.ccalmr.ogi.edu (AIX 3.2/UCB 5.64/4.03-02)
          id AA27373; Mon, 28 Nov 1994 10:55:58 -0800
Date: Mon, 28 Nov 1994 10:55:58 -0800
From: pturner@amb4.ccalmr.ogi.edu (Paul J Turner)
Message-Id: <9411281855.AA27373@amb4.ccalmr.ogi.edu>
To: postgres@postgres.Berkeley.EDU
Subject: Problems building bmake on AIX 3.2.5
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Mon, 28 Nov 94 10:55:30 -0800
Resent-XMts: smtp


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/
