Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C355EB5DC00 for ; Wed, 19 Oct 2011 17:41:17 -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 09885-06 for ; Wed, 19 Oct 2011 20:41:06 +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 83D8DB5D80B for ; Wed, 19 Oct 2011 17:41:06 -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 p9JKf52w019487; Wed, 19 Oct 2011 16:41:05 -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> <1946.1318993011@sss.pgh.pa.us> <2035.1318993272@sss.pgh.pa.us> Comments: In-reply-to Robert Young message dated "Wed, 19 Oct 2011 17:31:49 -0000" Date: Wed, 19 Oct 2011 16:41:05 -0400 Message-ID: <19486.1319056865@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/185 X-Sequence-Number: 31455 Robert Young writes: > As I tested, if you explicit appoint a union tag, the OpenBSD m4 and > GNU m4 work identically. > And This explicit definition just corresponding to the forward-declaration. > As mentioned in > http://www.gnu.org/s/bison/manual/html_node/Union-Decl.html > This feature is a POSIX extension. > I don't know what impact to other platform. > So I suppose this should be the appropriate patch to solve this problem I don't think we're going to worry too much about making plpgsql cope with an m4 that's too old to support autoconf, which I gather is the case from the bison bug report thread I mentioned before. If you're going to be changing the source code or working from a git pull, you need to have reasonably non-broken tools. We do provide pre-made bison output in release tarballs, if you don't want to take the responsibility of having a non-buggy bison available. regards, tom lane