develooper Front page | perl.perl5.porters | Postings from June 2015

Relocation errors - "recompile with -fPIC"

Thread Next
From:
Steve Hay
Date:
June 4, 2015 08:17
Subject:
Relocation errors - "recompile with -fPIC"
Message ID:
CADED=K64+Qu_L7hrLSkkJTYKp32ojaPvpR7RxehPK+a+hv5g7w@mail.gmail.com
Attempts to build mod_perl with some versions of perl (5.18.4, 5.22.0)
on some OSes (Debian/wheezy, FreeBSD 9.2) have generated linker errors
like this:

/usr/bin/ld: /opt/perl-5.18.4/lib/5.18.4/x86_64-linux/CORE/libperl.a(op.o):
relocation R_X86_64_32S against `PL_sv_yes' can not be used when
making a shared object; recompile with -fPIC
/opt/perl-5.18.4/lib/5.18.4/x86_64-linux/CORE/libperl.a: could not
read symbols: Bad value

/usr/bin/ld: /usr/perl5.22.0t/lib/5.22.0/amd64-freebsd-thread-multi/CORE/libperl.a(op.o):
relocation R_X86_64_32 against `PL_op_mutex' can not be used when
making a shared object; recompile with -fPIC
/usr/perl5.22.0t/lib/5.22.0/amd64-freebsd-thread-multi/CORE/libperl.a:
could not read symbols: Bad value

Many other users with various versions of perl and various OSes report
successful builds, so there is something specific about a few setups
that is not working, but I do not understand what these errors mean.

Is anyone here able to shed some light on what sort of thing the
problems might be?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About