Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIRHM-0006DY-6V for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2019 05:46:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIRHK-0005MX-GA for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2019 05:46:22 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIRHK-0005MK-4U for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2019 05:46:22 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIRHD-0004Vn-PR for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2019 05:46:21 +0000 Received: by mail-pf1-x42e.google.com with SMTP id y22so3160878pfr.3 for ; Wed, 09 Oct 2019 22:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:subject:from:user-agent:mime-version :content-transfer-encoding; bh=CbxnanE8FuKPN44bLgf39EKv1MYY6m+5F9PBOq2kgog=; b=J8p3YtG3+UsLNduZqJ4fTJf5hodW3sZ8twB/F0tYtE4Qs5JOvvO2DO5YNPfA2teQfO tu+S1MHfoKjyxtzu0N0HNOmDWyjrzE8Y72Siuavvs18xn09Mc+43gntF7BvLFXNUL0AQ IY9vZ89G+NSfOkSM4nrE8KSMAuz5T/C+UNuaJRfgmKqYOef3hu95ZXD2A+wmaQ5HujYy LzpyAGtpf4sakFCTLChHTMh7vDvHtvTyMKeklhwvo61jP0XSK46v4I2HmS3nomwxMj5p tTSoY1iMm4TY8cKnviqPwMHhkPrpFyr1np/Uzr4ZFMftSeVclGLpLVrfBYXoyODyoBil QPeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:subject:from:user-agent :mime-version:content-transfer-encoding; bh=CbxnanE8FuKPN44bLgf39EKv1MYY6m+5F9PBOq2kgog=; b=bw35g5ULpxlX0FK0pa14Ns1KaevWpwxAQFN0mT+0JEd/2V2sTXN9SB8AZE28YA9y0r VVgSO8Ayp4E8HqdWi6AT9V3IjF14DUuQ+PiIwZBxws/7kJBGWoUjz3IvEZxZBRpaqmnq w6EN5+gl7gSc2hbuG2p9+ojEXMTACj3Vt5lr9WhvzzHylSD1hcGMLLnAul+LY1cg8hrI bBagAl3PsKY+oCIr/kdspc7ZgJoTczrETpei+t6Zlr+sc3sQtr+5FaPAKCwd7bocFGnA bv09JfL2mIM8swUCq/7TU6IenlF4BH/F0rKLbavcuKJp6whwjoDXm9gShZ0qdYp2YfyA VZAA== X-Gm-Message-State: APjAAAX28qE2J6y0ZzDr5ypuw9fgmYrNwHRsDnR57trCOBTgdtG1v2s4 MKEna9OgXRb7z34heuWhDoaxSnj0 X-Google-Smtp-Source: APXvYqzhoOeKHhvW7zowc3Hm1aSIL0f2TzRK6ljKwvtWyGKJAStVXibfVP2AnLyRW/PfDGk3J6U6yg== X-Received: by 2002:a63:6142:: with SMTP id v63mr9164723pgb.110.1570686372524; Wed, 09 Oct 2019 22:46:12 -0700 (PDT) Received: from localhost (w204177.dynamic.ppp.asahi-net.or.jp. [121.1.204.177]) by smtp.gmail.com with ESMTPSA id l24sm4507142pff.151.2019.10.09.22.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 22:46:11 -0700 (PDT) Date: Wed, 09 Oct 2019 22:46:11 -0700 (PDT) X-Google-Original-Date: Thu, 10 Oct 2019 14:45:33 +0900 =?iso-2022-jp?B?KBskQkVsNX4bKEIgKBskQkk4PWA7fhsoQikp?= Message-Id: <20191010.144533.263180400.horikyota.ntt@gmail.com> To: pgsql-hackers@lists.postgresql.org Subject: configure fails for perl check on CentOS8 From: Kyotaro Horiguchi User-Agent: Mew version 6.5 on Emacs 22.2 / Mule 5.0 =?iso-2022-jp?B?KBskQjpnGyhCKQ==?= / Meadow-3.01-dev (TSUBO-SUMIRE) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Oct_10_14_45_33_2019_775)--" Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ----Next_Part(Thu_Oct_10_14_45_33_2019_775)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, While I'm moving to CentOS8 environment, I got stuck at ./configure with the following error. configure: error: libperl library is requred for Perl It complains that it needs -fPIC. Configure uses only $Config{ccflags}, but it seems that $Config{cccdlflags} is also required. The attached patch make ./configure success. (configure itself is excluded in the patch.) regards. -- Kyotaro Horiguchi NTT Open Source Software Center ----Next_Part(Thu_Oct_10_14_45_33_2019_775)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cent8_perl_conf.patch" diff --git a/config/perl.m4 b/config/perl.m4 index 059e31c476..8563ac7869 100644 --- a/config/perl.m4 +++ b/config/perl.m4 @@ -69,10 +69,10 @@ AC_DEFUN([PGAC_CHECK_PERL_CONFIGS], AC_DEFUN([PGAC_CHECK_PERL_EMBED_CCFLAGS], [AC_REQUIRE([PGAC_PATH_PERL]) AC_MSG_CHECKING([for CFLAGS recommended by Perl]) -perl_ccflags=`$PERL -MConfig -e ['print $Config{ccflags}']` +perl_ccflags=`$PERL -MConfig -e ['print "$Config{ccflags} $Config{cccdlflags}"']` AC_MSG_RESULT([$perl_ccflags]) AC_MSG_CHECKING([for CFLAGS to compile embedded Perl]) -perl_embed_ccflags=`$PERL -MConfig -e ['foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}']` +perl_embed_ccflags=`$PERL -MConfig -e ['foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)} print "$Config{cccdlflags} "']` AC_SUBST(perl_embed_ccflags)dnl AC_MSG_RESULT([$perl_embed_ccflags]) ])# PGAC_CHECK_PERL_EMBED_CCFLAGS diff --git a/configure.in b/configure.in index 0d16c1a971..47770f54f0 100644 --- a/configure.in +++ b/configure.in @@ -2223,7 +2223,7 @@ fi # check for if test "$with_perl" = yes; then ac_save_CPPFLAGS=$CPPFLAGS - CPPFLAGS="$CPPFLAGS $perl_includespec" + CPPFLAGS="$CPPFLAGS $perl_includespec $perl_embed_ccflags" AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file is required for Perl])], [#include ]) # While we're at it, check that we can link to libperl. ----Next_Part(Thu_Oct_10_14_45_33_2019_775)----