[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-amd64
Subject:    Re: mod_perl2 and libperl.a and -fPIC...
From:       Peter Wemm <peter () wemm ! org>
Date:       2004-03-31 8:28:02
Message-ID: 200403310028.02495.peter () wemm ! org
[Download RAW message or body]

On Wednesday 31 March 2004 12:07 am, Peter Losher wrote:
> I am trying to compile mod_perl2 as a DSO on my amd64 system, and cam
> across this error..
>
> -=-
> /usr/bin/ld: /usr/local/lib/perl5/5.6.1/mach/CORE/libperl.a(perl.o):
> relocation R_X86_64_32S can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/perl5/5.6.1/mach/CORE/libperl.a: could not read
> symbols: Bad value
> *** Error code 1
>
> Stop in
> /usr/ports/www/mod_perl2/work/mod_perl-1.99_12/src/modules/perl. ***
> Error code 1
> -=-
>
> Now as I understand it perl is built w/ -fPIC (even rebuilt the port
> to be sure), so is there something else at work here?

Yeah, the perl5.6.1 port doesn't build a shared object, so it can't be 
embedded inside another shared object.

However, the perl5.8 port does have shared object support enabled.

Don't ask me why 5.6.1 doesn't do it though. :-)

> Best Wishes - Peter

-- 
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
_______________________________________________
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic