You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John D Groenveld <jd...@elvis.arl.psu.edu> on 2017/10/01 00:27:22 UTC

Re: Compiling with Apache 2.4

In message <0a...@mrbrklyn.com>, Ruben Safir wri
tes:
>/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o):
>relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
>making a shared object; recompile with -fPIC

$ perl -V

Looks like your Perl build is statically linked and multi-threaded
while your Apache is pre-fork and you intend to build mod_perl
as a DSO.

John
groenveld@acm.org

Re: Compiling with Apache 2.4

Posted by John D Groenveld <jd...@elvis.arl.psu.edu>.
In message <20...@www.mrbrklyn.com>, Ruben Safir writes:
>Yes!  I rebuilt it for threads and shared.  Different docs say different
>things.  I tried to rebuild it with the ithread option and that option
>is now Dusethread no longer Duseithread.  I think there was also a

Try 64-bit Perl Configured with
-Uuseithreads -Uusethreads -Duseshrplib -Duse64bitall 

John
groenveld@acm.org

Re: Compiling with Apache 2.4

Posted by Ruben Safir <ru...@mrbrklyn.com>.
On Sat, Sep 30, 2017 at 08:27:22PM -0400, John D Groenveld wrote:
> In message <0a...@mrbrklyn.com>, Ruben Safir wri
> tes:
> >/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o):
> >relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
> >making a shared object; recompile with -fPIC
> 
> $ perl -V
> 
> Looks like your Perl build is statically linked and multi-threaded
> while your Apache is pre-fork and you intend to build mod_perl
> as a DSO.
> 
> John
> groenveld@acm.org



Yes!  I rebuilt it for threads and shared.  Different docs say different
things.  I tried to rebuild it with the ithread option and that option
is now Dusethread no longer Duseithread.  I think there was also a
problem building it for 64 bits and I had to use an envar for CFLAG for
64 bits.  I think these items need to get into the docs.

[ruben@www3 ~]$ perl -v

This is perl 5, version 26, subversion 1 (v5.26.1) built for
x86_64-linux-thread-multi


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com 

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive 
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com 

Being so tracked is for FARM ANIMALS and and extermination camps, 
but incompatible with living as a free human being. -RI Safir 2013