pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: warren_spencer_1977@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Which tool versions yield working pgsql on SunOS 4.1.4 ?
Date: Mon, 16 Dec 2002 17:06:59 -0500
Message-ID: <28876.1040076419@sss.pgh.pa.us> (raw)
In-Reply-To: <d94f8abc.0212151225.22a6ea9c@posting.google.com>
References: <d94f8abc.0212151225.22a6ea9c@posting.google.com>

warren_spencer_1977@yahoo.com (Warren Spencer) writes:
> I'm attempting to install PostgreSQL on a SunOS 4.1.4 box.  So far,
> I've tried various combinations of gcc 2.95.1,.2,.3, PostgreSQL 7.1.3,
> 7.0.3, 7.3.  In some cases, gcc won't build. In others, PostgreSQL
> won't build.  But in the gcc 2.95.2/pg 7.1.3 case, I've got exactly
> the same INITDB problem as Jeff Stevens (post 2002-09-25 09:36:36
> PST):  ERROR:  syntax error at line 2658: unexpected token parse
> error.

What awk are you using?  Jeff's problem appeared to stem from using an
awk that didn't recognize the ENVIRON["foo"] construct; at any rate
something was going wrong with genbki.sh's attempt to initialize
"nextbkioid" in its main awk run.  I suppose the problem might also be
somewhere in this fragment of that script:

# Get FirstGenBKIObjectId from access/transam.h
for dir in $INCLUDE_DIRS; do
    if [ -f "$dir/access/transam.h" ]; then
        BKIOBJECTID=`grep '^#define[ 	]*FirstGenBKIObjectId' $dir/access/transam.h | $AWK '{ print $3 }'`
        break
    fi
done
export BKIOBJECTID

Anyway, play around with src/backend/catalog/genbki.sh to see if you can
see what's going on.  Correct initialization of pg_aggregate should look
like

open pg_aggregate
insert OID = 10000 ( avg 1 int8_accum numeric_avg 20 1231 1700 "{0,0,0}" )
insert OID = 10001 ( avg 1 int4_avg_accum int8_avg 23 1016 1700 "{0,0}" )
insert OID = 10002 ( avg 1 int2_avg_accum int8_avg 21 1016 1700 "{0,0}" )
...

but Jeff's output looked like

open pg_aggregate
insert OID = ( avg 1 int8_accum numeric_avg 20 1231 1700 "{0,0,0}" )
insert OID = 1 ( avg 1 int4_avg_accum int8_avg 23 1016 1700 "{0,0}" )
insert OID = 2 ( avg 1 int2_avg_accum int8_avg 21 1016 1700 "{0,0}" )
...


BTW, if you get it going with PG 7.3, please let us know.  SunOS used to
be considered a supported platform, but we've not heard any reports from
users of it in quite awhile ...

			regards, tom lane



view thread (3+ messages)

Message-ID: <28876.1040076419@sss.pgh.pa.us>
Permalink:  ../28876.1040076419@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28876.1040076419@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, warren_spencer_1977@yahoo.com
  Subject: Re: Which tool versions yield working pgsql on SunOS 4.1.4 ?
  In-Reply-To: <28876.1040076419@sss.pgh.pa.us>
  References: <d94f8abc.0212151225.22a6ea9c@posting.google.com> <28876.1040076419@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox