Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A45C1B5DC04 for ; Tue, 18 Oct 2011 23:56:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 58012-01 for ; Wed, 19 Oct 2011 02:56:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 867C3B5D80B for ; Tue, 18 Oct 2011 23:56:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9J2upFR001947; Tue, 18 Oct 2011 22:56:52 -0400 (EDT) To: Robert Young cc: pgsql-bugs@postgresql.org Subject: Re: incompatible pointer type In-reply-to: References: <8664.1318962140@sss.pgh.pa.us> Comments: In-reply-to Robert Young message dated "Wed, 19 Oct 2011 02:24:45 -0000" Date: Tue, 18 Oct 2011 22:56:51 -0400 Message-ID: <1946.1318993011@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/164 X-Sequence-Number: 31434 Robert Young writes: > On Tue, Oct 18, 2011 at 18:22, Tom Lane 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