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
those flags are generated based on your flags when you built perl (to see the flags, parse through the output of perl -V)
> 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.