pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: David Steele <david@pgmasters.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix interaction of Perl and stdbool.h
Date: Fri, 23 Mar 2018 16:34:50 -0400
Message-ID: <5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com> (raw)
In-Reply-To: <2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net>
References: <E1ezNl7-00064m-1M@gemulon.postgresql.org>
	<3885.1521820150@sss.pgh.pa.us>
	<2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net>

On 3/23/18 12:19, David Steele wrote:
> On 3/23/18 11:49 AM, Tom Lane wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> Fix interaction of Perl and stdbool.h
>>
>> Not sure if this broke it or it was already broken, but my compiler
>> is now very unhappy.
>>
>> In file included from /usr/lib64/perl5/CORE/perl.h:2424,
>>                  from plperl.h:60,
>>                  from SPI.xs:18:
>> /usr/lib64/perl5/CORE/handy.h:108:1: warning: "bool" redefined
> 
> One way to fix this is to mark bool as defined in plperl.c:
> 
> #ifndef HAS_BOOL
> #  define HAS_BOOL 1
> #endif

Well, that's what we had before, but that crashed on the 4-byte bool
platforms.  So the fix I pushed does that only if PostgreSQL is using
stdbool.h.  It works for me on CentOS 6 now.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (5+ messages)  latest in thread

Message-ID: <5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com>
Permalink:  ../5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com/
Also on:    postgresql.org/message-id/5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com

 · 

reply

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-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, david@pgmasters.net, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix interaction of Perl and stdbool.h
  In-Reply-To: <5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com>
  References: <E1ezNl7-00064m-1M@gemulon.postgresql.org> <3885.1521820150@sss.pgh.pa.us> <2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net> <5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com>

* 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