On 8/19/06, Arnie Stender <[EMAIL PROTECTED]> wrote:
Dan Nicholson wrote:
>
> The problem is that perl itself needs to be compiled with -fPIC. Blame
> it on faulty Configurey. Here's the patch that Fedora uses.
>
> 
http://cvs.fedora.redhat.com/viewcvs/devel/perl/perl-5.8.1-fpic.patch?view=markup

I guess there's more to it than this. Sorry about that.

then came back to your suggestion and pulled down the Fedora patch and
applied it. I went back to CLFS to get the correct configuration and
compile commands and re compiled the perl with the -fPIC option. I then
went back to gaim-1.5.0 and recompiled using the patched perl and got
the same errors as before. I'll add them here for completeness sake.

Thanks for getting back. Sorry it didn't work.

/bin/sh ../../libtool --silent --tag=CC --mode=link gcc  -g -O2 -Wall
- -g3   -o perl.la -rpath /usr/lib/gaim -module -avoid-version -lglib-2.0
  -Wl,-E -L/usr/local/lib
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
- -L/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lnsl -ldl
- -lm -lcrypt -lutil -lpthread -lc perl.lo perl-common.lo perl-handlers.lo
- -Wl,-E -L/usr/local/lib
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
- -L/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lnsl -ldl
- -lm -lcrypt -lutil -lpthread -lc -lnsl

*** Warning: Linking the shared library perl.la against the
*** static library
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
is not portable!
/usr/bin/ld:
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/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

Looks like it didn't try to build with -fPIC again. Out of curiosity,
could you print the info from `perl -V'?

Interestingly, I stumbled on this build log of a GAIM perl module on
x86_64. Look at the output at the bottom where it shows info about
perl. A lot more tweaking went into this guy's build then what comes
with perl out of the box. Particularly, he has the '-Duseshrplib=true'
like Joe mentioned. He also is passing '-Acccdlflags=-fPIC' and in
the Dynamic Linking section he has "cccdlflags=' -fPIC'". This is
probably generated from the previous flag. If I had a 64 bit box, I
would play around with this. Unfortunately, things seem to work on
x86. Here's the log:

http://www.nntp.perl.org/group/perl.cpan.testers/332119

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to