Home: Perl Programming Help: mod_perl:
Building perl with -fPIC

New User

Mar 10, 2008, 4:41 AM

Views: 16742
Building perl with -fPIC

Hi, Im trying to build perl and mod_perl on x86_64-linux machine and getting the following error, while compiling mod_perl

/usr/bin/ld: /usr/genie/common-1.18/perl-5.8.8/lib/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/genie/common-1.18/perl-5.8.8/lib/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad value

Im very new to perl and dont know how to build perl with -fPIC.

Can anybody please help. Thanks in advance.

Shankar Hegde

New User

Jul 1, 2008, 7:01 AM

Views: 16256
Re: [shankarhegde] Building perl with -fPIC

which distro do you use? (ex. suse10.2, ubuntu, etc)