Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Perl's DynaLoader on AMD64

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Seth Alan Woolley <seth AT positivism.org>
  • To: "Sergey A. Lipnevich" <sergey AT optimaltec.com>
  • Cc: SM-Discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Perl's DynaLoader on AMD64
  • Date: Mon, 23 May 2005 09:00:12 -0700

I made a hack to fix this in the perl spell directly (the only place it can
be
fixed) in BUILD:

'./Configure' has an additional option '-Doptimize="$CFLAGS"'.

Perl used to not even take our optimization flags. Now it does.

So if you add -fPIC to the cflags (or use the prelink optimizations
option), everything should work out ok once perl is rebuilt.

I did this on 2005-05-11 in devel, test, and stable-rc.

Seth

On Mon, May 23, 2005 at 11:27:37AM -0400, Sergey A. Lipnevich wrote:
> Hi,
>
> Anyone porting to AMD64, do you have a problem with DynaLoader module of
> Perl
> not using PIC? Whenever things like Gaim or mod_perl try to link against it,
> thei fail on my machine. I remember there were fixes done to Perl, maybe I
> should just rebuild it?
> Thanks!
>
> Sergey.
>
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.0.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
> /usr/lib/perl5/5.8.6/x86_64-lin
> ux-thread-multi/auto/DynaLoader/DynaLoader.a(DynaLoader.o): relocation
> R_X86_64_32 against `a local symbol' can not be u
> sed when making a shared object; recompile with -fPIC
> /usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a:
> could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>

--
Seth Alan Woolley [seth at positivism.org], SPAM/UCE is unauthorized
Key id 00BA3AF3 = 8BE0 A72E A47E A92A 0737 F2FF 7A3F 6D3C 00BA 3AF3
Quality Assurance Team Leader; Security Team Member, Leader Emeritus
Linux so advanced, it may as well be magic http://www.sourcemage.org
Elected Coordinating Committee Member, Secretary, and Finances Chair
Pacific Green Party of Oregon - Peace - http://www.pacificgreens.org

Attachment: pgpddOP5qzIwC.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page