IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot) - Mailing list pgsql-ports

From Mark Dalphin
Subject IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot)
Date
Msg-id 37585020.23E830DC@mahunui.amgen.com
Whole thread Raw
Responses Re: [PORTS] IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot)
List 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@amgen.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)

pgsql-ports by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Port Bug Report: Would not build with -O2 flags set
Next
From: Thomas Lockhart
Date:
Subject: Re: [PORTS] Port Bug Report: Would not build with -O2 flags set