Re: configure fails for perl check on CentOS8
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2019-10-10T15:51:21Z
Lists: pgsql-hackers
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> On 10/10/19 1:46 AM, Kyotaro Horiguchi wrote:
>> 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.)
> ./configure --with-perl
> is working for me on Centos8 (double checked after a `dnf update`)
Yeah, I'm quite suspicious of this too. Although we don't seem to have
any buildfarm members covering exactly RHEL8/CentOS8, we have enough
coverage of different Fedora releases to make it hard to believe that
we missed any changes in Red Hat's packaging of Perl.
Is this error perhaps occurring with a non-vendor Perl installation?
What's the exact error message? config.log might contain some useful
clues, too.
regards, tom lane
Commits
-
Use CFLAGS_SL while probing linkability of libperl.
- 8835e0bd4e2d 9.5.20 landed
- 6d2b18d0701b 9.4.25 landed
- d995fd667f6d 13.0 landed
- ca658c91ae72 12.1 landed
- 4e19bd41d965 11.6 landed
- 34621cb12098 9.6.16 landed
- 328b81348cc8 10.11 landed
-
Select CFLAGS_SL at configure time, not in platform-specific Makefiles.
- e167b1ae37ad 10.11 landed
- 99c51d5ed88c 11.6 landed
- 727c2ccfefb5 9.4.25 landed
- 62ca50ad7ad0 9.6.16 landed
- 11330c311a17 9.5.20 landed
- aa5bb828af53 12.1 landed
- 44273ce4f664 13.0 landed