pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luis Amigo <lamigo@atc.unican.es>
To: ADMIN <pgsql-admin@postgresql.org>
Subject: installing 7.2b3 on IRIX 6.5.13
Date: Mon, 26 Nov 2001 11:35:13 +0100
Message-ID: <3C021AE1.DCB15AF4@bonito.atc.unican.es> (raw)

We needed to install 7.2b3 on Irix 6.5.13 with MIPSpro Compilers:
Version 7.30
when installing as we installed 7.1.3, it is with-template=irix5 adding
to irix5 these lines:
    CC=cc
    CFLAGS='-n32 -O2 -r12000'
    LDFLAGS='-n32 -O2 -r12000'

    where -o2:

                       Turns on extensive optimization.  The
optimizations at
                      this level are generally conservative, in the
sense that
                      they are virtually always beneficial, provide
                      improvements commensurate to the compile time
spent to
                      achieve them, and avoid changes which affect such
things
                      as floating point accuracy.

             -r12000 specifies the processor.

            and -n32: Generates a (new) 32-bit object.

        it is necessary to use cc because gcc gives assembler errors

When installing 7.2b3 we receive after gmake:
        len = offsetof(PgStat_MsgTabpurge, m_tableid[msg.m_nentries])
must have a constant value

I think it's because definition in stddef.h is incompatible with usage
    stdef.h:
        #if defined(_COMPILER_VERSION) && (_COMPILER_VERSION >= 400)
        #define offsetof(t, memb) ((size_t)__INTADDR__(&(((t
*)0)->memb)))
        #else
        #define offsetof(s, m) (size_t)(&(((s *)0)->m))
        #endif

we managed to install forcing postgres to redefine offsetof, it is
removing #ifndef offsetof
after that it installed of course giving warning in all redefinition,
but it already works.

Hope it helps





view thread (8+ messages)  latest in thread

Message-ID: <3C021AE1.DCB15AF4@bonito.atc.unican.es>
Permalink:  ../3C021AE1.DCB15AF4@bonito.atc.unican.es/
Also on:    postgresql.org/message-id/3C021AE1.DCB15AF4@bonito.atc.unican.es

 · 

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: lamigo@atc.unican.es
  Subject: Re: installing 7.2b3 on IRIX 6.5.13
  In-Reply-To: <3C021AE1.DCB15AF4@bonito.atc.unican.es>
  References: <3C021AE1.DCB15AF4@bonito.atc.unican.es>

* 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