From: John Marino <draco@marino.st>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27
Date: Sun, 07 Oct 2012 22:54:35 +0200
Message-ID: <5071EC0B.1060207@marino.st> (raw)
In-Reply-To: <17066.1349641593@sss.pgh.pa.us>
References: <E1TKpeW-0001Gg-Dg@wrigleys.postgresql.org>
<13048.1349627764@sss.pgh.pa.us>
<5071B902.6030505@marino.st>
<14190.1349631338@sss.pgh.pa.us>
<5071C248.5020206@marino.st>
<15810.1349637294@sss.pgh.pa.us>
<5071DBB0.8040107@marino.st>
<16476.1349639653@sss.pgh.pa.us>
<5071E0C8.40205@marino.st>
<17066.1349641593@sss.pgh.pa.us>
On 10/7/2012 22:26, Tom Lane wrote:
> John Marino<draco@marino.st> writes:
>> Are you 100% sure that offsetof is evaluated at compile time? Is this
>> not part of section 6.6 that I quoted earlier?
>
> My copy of C99 sayeth (in section 7.17)
>
> offsetof(type, member-designator)
>
> which expands to an integer constant expression that has
> type size_t, the value of which is the offset in bytes, to
> the structure member (designated by member-designator), from
> the beginning of its structure (designated by type).
>
> If your version of gcc isn't treating it as an integer constant
> expression, you either have a bug in the compiler or a bug in your
> version of<stddef.h>. And I will say once more that we have not
> encountered any other report of gcc having a problem with this code.
>
> regards, tom lane
Thanks Tom.
It is possible the culprit is the offsetof expansion. I'm examining the
FreeBSD version and there's a slight difference from that. I will
investigate this further and pass on what I find out. I don't suspect
the compiler though -- I've seen this on multiple compilers in the last
few months, namely a stock gcc 4.6 as well. It also choked on offsetof.
Regards,
John
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-bugs@postgresql.org
Cc: draco@marino.st, tgl@sss.pgh.pa.us
Subject: Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27
In-Reply-To: <5071EC0B.1060207@marino.st>
References: <E1TKpeW-0001Gg-Dg@wrigleys.postgresql.org> <13048.1349627764@sss.pgh.pa.us> <5071B902.6030505@marino.st> <14190.1349631338@sss.pgh.pa.us> <5071C248.5020206@marino.st> <15810.1349637294@sss.pgh.pa.us> <5071DBB0.8040107@marino.st> <16476.1349639653@sss.pgh.pa.us> <5071E0C8.40205@marino.st> <17066.1349641593@sss.pgh.pa.us> <5071EC0B.1060207@marino.st>
* 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