-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Nicholson wrote:
>> Think I found the silver bullet. File it under "perl sucks hard".
> Found someone having a similar problem on X86_64 trying to compile
> mod_perl.
> 
> http://www.nntp.perl.org/group/perl.modperl.modules.dev/2
> 
> 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 don't know enough about PIC, but maybe this isn't a problem on x86
> since I haven't seen it reported here before. CLFS guys? What do you
> think about this? I don't know what to make of the 64 bit issues.
> 
> -- 
> Dan

Hi Dan,
        It took me a while to work my way back to this issue because I had
received another suggestion to just configure it without perl support
which did in fact allow a clean compile. I installed it and went on to
other things but when I actually tried to use gaim I got a segfault. I
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. The
message I get when trying to run gaim tell me to get data from the core
file and send it in. I think I will do that. If nothing else it may
point me to something else I don't see during the compile.

Arnie

/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
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [perl.la] Error 1
make[3]: Leaving directory `/usr/src/secondary/gaim-1.5.0/plugins/perl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/secondary/gaim-1.5.0/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/secondary/gaim-1.5.0'
make: *** [all] Error 2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE5zzLI9lqJPlLBqQRAgqwAJwMBvg4MciSNzV0SyDRaHt6dTH/GQCfbEmm
IZn3c6ueAG1WtuiGdyuOw24=
=o338
-----END PGP SIGNATURE-----
-- 
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