IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot)

From: Mark Dalphin <mdalphin(at)amgen(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot)
Date: 1999-06-04 22:16:00
Message-ID: 37585020.23E830DC@mahunui.amgen.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

I hope this is the place to discuss pre-release software. I have only just
joined this maillist.

I decided to try an early download of Postgresql 6.5 as I am going to need it
soon on both SGI IRIX 6.5 and Dec Alpha platforms.

Platform: SGI IRIX64 6.5 IP30 mips
Compiler: native cc

My first go at compiling for the IRIX is dead when only partially thru the first
Make. There is a conflict in macro names.

On the IRIX, _ALIGN is defined in /usr/include/sys/socket.h:
#define _ALIGN(p) (((uint_t)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
This collides with the Postgresql definition in
.../src/include/utils/memutils.h:
#define _ALIGN(ALIGNVAL,LEN) (((long)(LEN) + (ALIGNVAL-1)) & ~(ALIGNVAL-1))

The compiler won't proceed beyond this. Is there any chance of a macro name
change in Postgresql source? Or are there other work arounds? I could UNDEF the
sockets one, but I am not sure where else it would cause trouble.

Mark

--
Mark Dalphin email: mdalphin(at)amgen(dot)com
Mail Stop: 29-2-A phone: +1-805-447-4951 (work)
One Amgen Center Drive +1-805-375-0680 (home)
Thousand Oaks, CA 91320 fax: +1-805-499-9955 (work)

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Thomas Lockhart 1999-06-05 01:41:52 Re: [PORTS] Port Bug Report: Would not build with -O2 flags set
Previous Message Bruce Momjian 1999-06-04 21:41:04 Re: [PORTS] Port Bug Report: Would not build with -O2 flags set