From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Young <yayooo@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: incompatible pointer type
Date: Tue, 18 Oct 2011 22:56:51 -0400
Message-ID: <1946.1318993011@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJjz_NhWWDbPL8H02k1kEKmq8n20VgiRgJsWSZ52_ifyhvvz8A@mail.gmail.com>
References: <CAJjz_NhLdKSchC=nFFFUCfgQ-C1KG9W-TG3vX1JmMUGx2pGETA@mail.gmail.com>
<8664.1318962140@sss.pgh.pa.us>
<CAJjz_NhWWDbPL8H02k1kEKmq8n20VgiRgJsWSZ52_ifyhvvz8A@mail.gmail.com>
Robert Young <yayooo@gmail.com> writes:
> On Tue, Oct 18, 2011 at 18:22, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hmm, what version of bison are you using?
> # /usr/bin/bison -V
> bison (GNU Bison) 2.3
> Written by Robert Corbett and Richard Stallman.
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> #
> From:
> http://ftp.openbsd.org/pub/OpenBSD/4.9/packages/amd64/bison-2.3.tgz
Interesting. I've got bison 2.3 on my Mac laptop, and it does what I
expect (ie, it emits "typedef union YYSTYPE ..."). So do the oldest and
newest bison versions I have handy (1.875 and 2.4.3), and both of their
manuals specify that this is the expected behavior -- see
http://www.gnu.org/s/bison/manual/html_node/Union-Decl.html
about halfway down the page.
A little bit of googling suggests that this is a bug or incompatibility
with openbsd's m4 (a tool that bison relies on):
http://comments.gmane.org/gmane.comp.parsers.bison.bugs/2708
That thread petered out without any clear resolution, but maybe you
should check for m4 updates, or try installing GNU m4.
regards, tom lane
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: tgl@sss.pgh.pa.us, yayooo@gmail.com
Subject: Re: incompatible pointer type
In-Reply-To: <1946.1318993011@sss.pgh.pa.us>
References: <CAJjz_NhLdKSchC=nFFFUCfgQ-C1KG9W-TG3vX1JmMUGx2pGETA@mail.gmail.com> <8664.1318962140@sss.pgh.pa.us> <CAJjz_NhWWDbPL8H02k1kEKmq8n20VgiRgJsWSZ52_ifyhvvz8A@mail.gmail.com> <1946.1318993011@sss.pgh.pa.us>
* 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