Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1danfl-0002ir-VS for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jul 2017 18:38:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1danfl-00047I-AO for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jul 2017 18:38:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1daneF-0001MO-5R for pgsql-hackers@postgresql.org; Thu, 27 Jul 2017 18:36:35 +0000 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1daneB-0000zj-2d for pgsql-hackers@postgresql.org; Thu, 27 Jul 2017 18:36:34 +0000 Received: by mail-qt0-x232.google.com with SMTP id 16so28020311qtz.4 for ; Thu, 27 Jul 2017 11:36:30 -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=Xy0C1mgVMuKNgKdHteLAv8UJZFa3vZFbhp80BDg5n0Q=; b=ohYeAm6KGy9NvB0htmAqWfLnO9ijKYQnZ58WaCiRylAvge2kQ+9npZ1nMPId2H5du8 UoGIse7eJjxT65EhlSL7YaRcvhYLweK/HrhR1ag+FJjN7rjM6JAr94Zs5A5OGSYOgdqQ 83XDyBB4NBTeoxjrVqyrSw/ynkFi9J32orfxZd7n0WMRncu32pyQRhcCdiA/wJ/EOxah XF0DyqZ1rEgt9Ol1mc3j7I4ijHj3kO/gKGvWw8z9Wt48lcR7zqUulforFvLkI4KCBB8N ykXtXoRFW8iynJ6n7BB2gdk8vXIZ5DqzRRzvTD7ssEA0l4wQqTxAT4XNO2aFObqfjhd/ 0Y0w== 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=Xy0C1mgVMuKNgKdHteLAv8UJZFa3vZFbhp80BDg5n0Q=; b=Xu8U/5flmPQLVmQYL+i9MJAGwPIlK2jszmqc9dpJyuHr8I8vUVGfFwJ3imS9C+6sm4 JQKDvO1EK5c5D8L57948a1v9WSUooQC3sIOUssIYAcBv49m++rIU6aV1dUOfgsWi3lk9 EhuysnAIZwHWbAZy5kpjJjURiV/3WKZc2KMXM4nplFvAwzvyrD8ger3VrYQLMh2Jb78U Wgmzc6iamF5Tyr+MvBt+BlHocXLAx29K78i59bqppyHcT73nemOjoShrBnSD4j4dYWai FAhOb9oBlsZgbbgvfULRPdCsDrWTueeExRz5PdklBYOj10zDtjbUvTSIL4q/eAYaXGhw oiRg== X-Gm-Message-State: AIVw1138c2VOeNvrD9RAGlTLkxMmejqlqCb7ntIFTiUaxRGfHmYd8UrJ zFVS3wMFwqTjSSoYfNbBszfr0Izgt72Oo55zWZTD8priPwhUzwL0UZR8URrEGF3qywWjyQtejOY 3sNjZ/ACrnqK/UKKcFYL2eRMMrI+2Nkm02aywFpVjNMwnADEITx3WGq90khWIqBO7okYjVpHJYC EYBaxf X-Received: by 10.237.42.55 with SMTP id c52mr7437120qtd.311.1501180588965; Thu, 27 Jul 2017 11:36:28 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id 55sm3014284qtm.49.2017.07.27.11.36.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 11:36:28 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pl/perl extension fails on Windows To: Ashutosh Sharma , Tom Lane Cc: Robert Haas , Dave Page , Sandeep Thakkar , "pgsql-hackers@postgresql.org" References: <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> <20729.1501039314@sss.pgh.pa.us> <22864.1501165302@sss.pgh.pa.us> Message-ID: Date: Thu, 27 Jul 2017 14:36:27 -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: 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/27/2017 12:34 PM, Ashutosh Sharma wrote: > On Thu, Jul 27, 2017 at 7:51 PM, Tom Lane > wrote: > > Ashutosh Sharma > writes: > >> Anyways, attached is the patch that corrects this issue. The patch now > >> imports all the switches used by perl into plperl module but, after > >> doing so, i am seeing some compilation errors on Windows. Following is > >> the error observed, > > > >> SPI.obj : error LNK2019: unresolved external symbol PerlProc_setjmp > >> referenced in function do_plperl_return_next > > > > That's certainly a mess, but how come that wasn't happening before? > > Earlier we were using Perl-5.20 version which i think didn't have > handshaking mechanism. From perl-5.22 onwards, the functions like > Perl_xs_handshake() or HS_KEY were introduced for handshaking purpose > and to ensure that the handshaking between plperl and perl doesn't > fail, we are now trying to import the switches used by perl into > plperl. As a result of this, macros like PERL_IMPLICIT_SYS is getting > defined in plperl which eventually opens the following definitions > from XSUB.h resulting in the compilation error. > > 499 #if defined(PERL_IMPLICIT_SYS) && !defined(PERL_CORE) > 518 # undef ioctl > 519 # undef getlogin > 520*# undef setjmp* > ........... > ........... > > 651 # define times PerlProc_times > 652 # define wait PerlProc_wait > 653 *# define setjmp PerlProc_setjmp > > * What is the minimal set of extra defines required to sort out the handshake fingerprint issue? 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