Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maNyh-0005YO-42 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 20:02:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maNyg-00079j-4K for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 20:02:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maNyf-00079b-Sa for pgsql-hackers@lists.postgresql.org; Tue, 12 Oct 2021 20:02:21 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maNyd-0006Of-0y for pgsql-hackers@postgresql.org; Tue, 12 Oct 2021 20:02:21 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id EBAAC24000D; Tue, 12 Oct 2021 20:02:16 +0000 (UTC) Subject: Re: [RFC] building postgres with meson To: Andres Freund Cc: pgsql-hackers@postgresql.org References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20211012165926.phrxn7vwx6ysfioj@alap3.anarazel.de> <20211012180934.b22v5nznbgtaoxyn@alap3.anarazel.de> <20211012192942.5chfraeix6qih6ke@alap3.anarazel.de> From: Andrew Dunstan Message-ID: <1def3634-8d7d-a501-3caa-83e2f952418d@dunslane.net> Date: Tue, 12 Oct 2021 16:02:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20211012192942.5chfraeix6qih6ke@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/12/21 3:29 PM, Andres Freund wrote: > > Does that recipe get you to a build where ./configure --with-perl succeeds? > > I see this here: > > checking for Perl archlibexp... /usr/lib/perl5/core_perl > checking for Perl privlibexp... /usr/share/perl5/core_perl > checking for Perl useshrplib... true > checking for CFLAGS recommended by Perl... -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong > checking for CFLAGS to compile embedded Perl... -DPERL_USE_SAFE_PUTENV > checking for flags to link embedded Perl... no > configure: error: could not determine flags for linking embedded Perl. > This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not > installed. > > If I just include perl.h from a test file with gcc using the above flags it > fails to compile: You need to build against a native perl, like Strawberry or ActiveState. (I have had mixed success with Strawberry) You do that by putting a path to it at the start of the PATH. The wrinkle in this is that you need prove to point to one that understands virtual paths. So you do something like this: PATH="/c/perl/bin:$PATH" PROVE=/bin/core_perl/prove configure ... cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com