Re: configure fails for perl check on CentOS8
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-10-19T15:55:39Z
Lists: pgsql-hackers
On 10/18/19 9:50 AM, Tom Lane wrote: > Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes: >> The immediately problematic command generated by autoconf is: >> ... >> /usr/bin/ld: /tmp/ccGxodNv.o: relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used when making a PIE object; recompile with -fPIC >> /usr/bin/ld: final link failed: Nonrepresentable section on output >> collect2: error: ld returned 1 exit status >> Very interestingly I don't get the error when the "-O0" is "-O2". It >> is because gcc eliminates the PL_memory_wrap maybe by inlining. > Yeah, probably so. But I don't like the idea of fixing a problem > triggered by user-supplied CFLAGS by injecting more cflags from > elsewhere. That seems likely to be counterproductive, or at > least it risks overriding what the user wanted. > > Can we fix this by using something other than perl_alloc() as > the tested-for function? That is surely a pretty arbitrary > choice. Are there any standard Perl entry points that are just > plain functions with no weird macro expansions? > I had a look in perl's proto.h but didn't see any obvious candidate. I tried a couple of others (e.g. Perl_get_context) and got the same result reported above. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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