You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Daniel Eggert <da...@mac.com> on 2002/12/14 12:34:34 UTC

Re: [mp2.0] Cannot load mod_perl.so into server: Unsupported relocation type 10 in non-PLT relocations

On søndag, nov 24, 2002, at 00:48 Europe/Copenhagen, Doug MacEachern 
wrote:

> On Thu, 21 Nov 2002, Daniel Eggert wrote:
>
>> Does anyone know, if this is due to the fact, that I'm running on a
>> macppc platform?
>
> sortof.  based on a google search, this error is caused by linking 
> non-PIC
> code into a shared library.  that is, C code compiled without the -fPIC
> flag, either in modperl, perl, or a static library pulled in by perl 
> (perl
> -V:libs).  based on your perl -V, it looks like the modperl code 
> should be
> ok.  you could try rebuilding perl with:
> Configure -Accflags=-fPIC ...
>
> otherwise, i'm not sure.  what is the output of:
> /usr/pkg/lib/perl5/5.6.1/powerpc-netbsd/CORE/libperl.so

When I do this I get a core dump... not what I want ;)

How can I check if libperl.so is compiled with '-fPIC'?

> also could be that an older libperl.so is in your library path, which 
> is
> being found before the one above.

Even when configuring Perl with "-Accflags=-fPIC" I get the same result:
> Cannot load /usr/pkg/lib/httpd/mod_perl.so into server: 
> /usr/pkg/lib/httpd/mod_perl.so: Unsupported relocation type 10 in 
> non-PLT relocations

This behaviour seems to be consistent for mod_perl on NetBSD 1.6 
running on macppc, as other people have reported the same problem. 
There even is a PR:
	http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=13771

Thanks in advance.

Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org