Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAQMddm36552 for ; Mon, 26 Nov 2001 17:39:39 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id fAQMdUk15715; Mon, 26 Nov 2001 17:39:31 -0500 (EST) To: Luis Amigo cc: pgsql-hackers@postgreSQL.org 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> Comments: In-reply-to Luis Amigo message dated "Mon, 26 Nov 2001 11:35:13 +0100" Date: Mon, 26 Nov 2001 17:39:30 -0500 Message-ID: <15712.1006814370@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200111/1024 X-Sequence-Number: 15876 [ redirected from pgsql-admin ] Luis Amigo writes: > When installing 7.2b3 we receive after gmake: > len = offsetof(PgStat_MsgTabpurge, m_tableid[msg.m_nentries]) > must have a constant value Indeed, a quick look in the C spec says that offsetof is required to have a constant value, so this coding is unportable. I've repaired it in CVS. Thanks for the report! It's not clear to me whether we should change template/irix5 or not. It sounds like gcc is misinstalled on your machine, but that doesn't necessarily mean that no one is using gcc successfully on IRIX, so I don't want to force CC=cc. Possibly this would make sense: if test "$GCC" = yes ; then CFLAGS="-O2" else CFLAGS="-n32 -O2 -r12000" LDFLAGS="-n32 -O2 -r12000" fi Comments anyone? regards, tom lane