Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73680 - perl's (5.8.2-r1) MakeMaker Config.pm has wrong shared option for gcc
Summary: perl's (5.8.2-r1) MakeMaker Config.pm has wrong shared option for gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 09:27 UTC by isoh
Modified: 2005-05-15 01:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description isoh 2004-12-07 09:27:38 UTC
Emerging XML-Parser gives this:
####################################################
Calculating dependencies  >>> Checking XML-Parser-2.34.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
make[1]: Entering directory `/local_portage/tmp/portage/XML-Parser-2.34/work/XML-Parser-2.34/Expat'
gcc -c   -fno-strict-aliasing -O2 -pipe   -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib/perl5/5.8.2/powerpc64-linux/CORE"   Expat.c
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
LD_RUN_PATH="/usr/lib" gcc  -Wl,-shared -L/usr/local/lib Expat.o  -o ../blib/arch/auto/XML/Parser/Expat/Expat.so   -lexpat   
/usr/lib64/libc_nonshared.a(elf-init.oS)(.toc+0x0): undefined reference to `__init_array_end'
/usr/lib64/libc_nonshared.a(elf-init.oS)(.toc+0x8): undefined reference to `__init_array_start'
/usr/lib64/libc_nonshared.a(elf-init.oS)(.toc+0x10): undefined reference to `__fini_array_end'
/usr/lib64/libc_nonshared.a(elf-init.oS)(.toc+0x18): undefined reference to `__fini_array_start'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.1/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../blib/arch/auto/XML/Parser/Expat/Expat.so: hidden symbol `__fini_array_end' isn't defined
collect2: ld returned 1 exit status
make[1]: *** [../blib/arch/auto/XML/Parser/Expat/Expat.so] Error 1
make[1]: Leaving directory `/local_portage/tmp/portage/XML-Parser-2.34/work/XML-Parser-2.34/Expat'
make: *** [subdirs] Error 2


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Solution; I think that: "-Wl,-shared" -option should be: "-shared"
Note; this might be solved with newer perl versions, but
5.8.2-r1 seems to be only non-masked version for ppc64
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-05-14 13:17:07 UTC
those flags are generated based on your flags when you built perl (to see the flags, parse through the output of perl -V)
Comment 2 isoh 2005-05-15 01:30:34 UTC
> Those flags are generated based on your flags when you built perl...

Obviously so, but still perl-5.8.2-r1's flags are generated wrongly.
btw. now perl-5.8.5-r5 has correct flags.