Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1da1Yu-0000g8-DI for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jul 2017 15:15:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1da1Yt-0006Qk-T5 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jul 2017 15:15:51 +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.84_2) (envelope-from ) id 1da1XM-0003Uo-9j for pgsql-hackers@postgresql.org; Tue, 25 Jul 2017 15:14:16 +0000 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1da1XH-0008AN-Qf for pgsql-hackers@postgresql.org; Tue, 25 Jul 2017 15:14:15 +0000 Received: by mail-qk0-x232.google.com with SMTP id x191so4026191qka.5 for ; Tue, 25 Jul 2017 08:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=+53NbB5RYxoEgSn21520WDcLzO/O9oEtGmNSRT35HVY=; b=kQZ3h8M2A7pvsQbKjoU7uloQzg6820sFHbsmLVbWSctKw0KGhmQecSBvFR1Jk9VA7L jskxg9IHVkHc0yQsMx2sYtvAP3uadYiPmH+6ScXFJiOBD4UH3R+zFJ974fXBCv2CgLUY nN2PrysVMepCm5QMqJmERhtVALZwcPnvsE8GwoERjQ6ton12+dOkjqbv/Gh+8bgNLGX3 g3ElgHFAarI4H/ZDR7Gvk9CIiYuUjGJBTexMj+QurRg986n8g/awImVpPcYQwfGTse1Q 6CL4H+Xa/jeS0VWXxC20LoxOVwnR+zRpPeSK31nMkb9hsJELCLIsvvHSZW+RtVVNm7dM xwzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=+53NbB5RYxoEgSn21520WDcLzO/O9oEtGmNSRT35HVY=; b=jhcEaPNpG01Jlu7+F8dh3fhbcHU60PKTg9Z96Yssew+cYKZLAwnWuhbkhka9gk8BKl DkWFhucKiYw5j/yqB2xMlX4x0jPTM3wIGAAqjNjngl3/434WBWIDMjjoYFKBltv7xDdm HdyCYiR1/TOVeMFkOEuiDnTtge4nMyamG3NDdcfqwhz2xAaBbMMeCfApX0sRDScW1owu iPL6/fWI23g58EkVLw5bWrayBiRG32I54PYiMby9bYarLmMl/l5dzK+UT7NDykJGTLnb BliCWfFTgn5iQOkQoD8bZHRJNvQdgRVZnYwReKApTcsQdmQKcEq0pBySNHS3RzLOHlYl SlMg== X-Gm-Message-State: AIVw111VqadC0qfYIdv/ophlBMo2kQObJg9Ne2XVXcD9+bnigC7uJc4G gfJPOz8pMcQU3gcBbEjefmeZ/4a7QYF5WzOPLjxxA8MCcKr9LvHFZcxMCTTy1kSQxREVXkUf1Gk oeAxwTJAIgdTOhWrqptOPZIyKdrzqjGsHND6YsnpAkWHAxt9yZyGGd0/r8aHikOVhLHOwXJvbY2 suzW9j X-Received: by 10.55.8.139 with SMTP id 133mr25018983qki.22.1500995650300; Tue, 25 Jul 2017 08:14:10 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id z47sm10414245qth.86.2017.07.25.08.14.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 08:14:09 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pl/perl extension fails on Windows To: Tom Lane , Robert Haas Cc: Ashutosh Sharma , Dave Page , Sandeep Thakkar , "pgsql-hackers@postgresql.org" References: <4569.1499873707@sss.pgh.pa.us> <6063dd4c-cd1e-d9d8-fa0d-3bddb1403c66@2ndQuadrant.com> <184f1fb9-dfa2-ef2d-024b-7933486e018a@2ndQuadrant.com> <16093.1499956602@sss.pgh.pa.us> <7480.1499965218@sss.pgh.pa.us> <30585.1500480763@sss.pgh.pa.us> <32468.1500498091@sss.pgh.pa.us> <6805.1500994804@sss.pgh.pa.us> Message-ID: <746dd417-aa4e-b638-6755-70d134532823@2ndQuadrant.com> Date: Tue, 25 Jul 2017 11:14:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <6805.1500994804@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 07/25/2017 11:00 AM, Tom Lane wrote: > Robert Haas writes: >> Perl also has a mechanism for flags added to Configure to be passed >> along when building loadable modules; if it didn't, not just plperl >> but every Perl module written in C would have this issue if any such >> flags where used. >> ... >> While I'm not sure of the details, I suspect that we need to use one >> of those methods to get the CCFLAGS used to build perl, and include >> those when SPI.o, Util.o, and plperl.o in src/pl/plperl. Or at least >> the -D switches from those CCFLAGS. > Hm, I had the idea that we were already asking ExtUtils::Embed for that, > but now I see we only inquire about LDFLAGS not CCFLAGS. Yes, this sounds > like a promising avenue to pursue. > > It would be useful to see the results of > > perl -MExtUtils::Embed -e ccopts > > on one of the affected installations, and compare that to the problematic > field(s). -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -I"C:\Perl64\lib\CORE" cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers