Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezTOs-0006n1-50 for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 20:34:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezTOq-0000Rf-OQ for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 20:34:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezTOq-0000JD-9p for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 20:34:56 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezTOm-0005Tq-Q0 for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 20:34:55 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 837AA20D06; Fri, 23 Mar 2018 16:34:51 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 23 Mar 2018 16:34:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=p5RxhR HYPsBn8UNO92Z6rDO80Lk8HSbPVUogYtqgyqo=; b=A4Od0ZRPjoA3vv3EPR2QPM eV6OJ1T+YrqhIlxEHDqK13tAtqpZjvJP4tbDLDlilrYimap3UbgNOKKtwpLCTp9q cMXeq/boqt1sqZduWKoc5EzlqbSI+TchJkEnMpEn+nwerx07NNifVV805Vn5LdOX E34KXPxBNsKIoFGFDiiihkrNKBZekYHrnXgMlN7Gg2bUm31F9E2t+dM0AmZgZ4XS v0JvllEpvhl5F3VOOuFqUkhC0/iobQ/Xw7BW0o3jPG7xT8+cg6rKBUkYGG25iyfg Fo7iUw3WU/FiurR+qSaCYE2GeVqtpKGIuwELtT8ICGiecsq8RKAM4DOkhzuBJe7g == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A75924038; Fri, 23 Mar 2018 16:34:51 -0400 (EDT) Subject: Re: pgsql: Fix interaction of Perl and stdbool.h To: David Steele , Tom Lane References: <3885.1521820150@sss.pgh.pa.us> <2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net> Cc: pgsql-committers@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <5aa06ffe-5443-bcfd-136d-44153022b942@2ndquadrant.com> Date: Fri, 23 Mar 2018 16:34:50 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/23/18 12:19, David Steele wrote: > On 3/23/18 11:49 AM, Tom Lane wrote: >> Peter Eisentraut 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