Re: 7.4.6 build failures on Solaris 9 with Sun cc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 7.4.6 build failures on Solaris 9 with Sun cc
Date
Msg-id 10745.1102036588@sss.pgh.pa.us
Whole thread Raw
In response to 7.4.6 build failures on Solaris 9 with Sun cc  (Philip Yarra <philip@utiba.com>)
List pgsql-hackers
Philip Yarra <philip@utiba.com> writes:
> Hi all, before I delve too deeply into this, has anyone else tried building 
> 7.4.6 on Solaris 9 (sparc) ? I'm seeing build failures using Sun's cc:

> make[4]: Entering directory `/tmp/postgresql-7.4.6/src/backend/access/heap'
> cc -Xa -O -v -I../../../../src/include   -c -o tuptoaster.o tuptoaster.c
> "tuptoaster.c", line 831: member can not have variably modified type: data
> "tuptoaster.c", line 937: cannot recover from previous errors
> cc: acomp failed for tuptoaster.c

> Which is:
> struct
>         {
>                 struct varlena hdr;
>                 char            data[TOAST_MAX_CHUNK_SIZE];
>         }                       chunk_data;

> The compiler is cc: Sun C 5.6 2004/06/02 (Sun Studio 9)

I think we've seen this before, and the workaround was to replace the
expression that defines TOAST_MAX_CHUNK_SIZE with a hand-computed
constant.  Check the archives.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Ready for RC1
Next
From: Bruce Momjian
Date:
Subject: Re: Ready for RC1