Dan Axtell wrote:
Hi,

I've recently upgraded my main linux machine, but unfortunately the distribution (OpenSuse 11.0, AMD x86_64) has everything with Perl 5.10. I have some software that runs under mod_perl that requires Perl 5.8.8. No problem, I just build 5.8.8, right?

Well, after two days I was able to get Perl and all my modules to build, but mod_perl won't link with this error:

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/perl5/5.8.8/x86_64-linux/CORE/libperl.a(perl.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompilewith -fPIC /usr/local/lib/perl5/5.8.8/x86_64-linux/CORE/libperl.a: could not read symbols: Bad value

I'm trying to recompile Perl with -fPIC, but I can't get it to build at all now. So trying to understand some basics here: what are the Perl requirements? Should Perl be built with static or dynamic libraries?

You will need to compile perl with -fPIC on x86_64, I think I did it with:

ccflags='-fPIC' sh Configure -Dprefix /path to perl

I can't remember _exactly_ if that was it though. The other options would be to manually the edit the Makefiles but I don't remember having to do that.



Thanks,
Dan

Reply via email to