morgon has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am having a problem installing mod_perl 2.0.4 on a 64-bit SLES 10 Linux.

I have compiled a Perl 5.10.0 and an Apache 2.2.11 from Source and when I try to build mod_perl I get the following error:

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/b +in/ld: /opt/perl510/lib/5.10.0/x86_64-linux-thread-multi/CORE/libperl +.a(gv.o): relocation R_X86_64_32 against `a local symbol' can not be +used when making a shared object; recompile with -fPIC /opt/perl510/lib/5.10.0/x86_64-linux-thread-multi/CORE/libperl.a: coul +d not read symbols: Bad value
Can someone help me here?
Many thanks!

Replies are listed 'Best First'.
Re: mod_perl and Apache 2.2.11
by Anonymous Monk on Jul 10, 2009 at 12:44 UTC
    Why not recompile with -fPIC?
      Which one - Perl or mod_perl?

      And how - is there a configure-switch to do this (I compiled Perl pretty much with default options and it would use -fPIC anyway)?

        $ ./configure --help

        Read the section on environment variables. CFLAGS looks like it could be used to set compiler flags.


        --
        Rohan