I tested your package and it seems to ignore my LDFLAGS with "-Wl,--no-add-needed -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed". When I force my flags with my own gcc_specs file in link (!static) to test the package. I noticed that different parts doesn't link against needed libs.... should be fixed by upstream and gentoo >>> Emerging (1 of 1) perl-core/Scalar-List-Utils-1.19 * Scalar-List-Utils-1.19.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking Scalar-List-Utils-1.19.tar.gz to /var/tmp/portage/perl-core/Scalar-List-Utils-1.19/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/perl-core/Scalar-List-Utils-1.19/work/Scalar-List-Utils-1.19 ... * Using ExtUtils::MakeMaker Checking if your kit is complete... Looks good Writing Makefile for List::Util cp lib/List/Util.pm blib/lib/List/Util.pm cp lib/Scalar/Util.pm blib/lib/Scalar/Util.pm /usr/bin/perl5.8.8 "-Iinc" /usr/lib64/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib64/perl5/5.8.8/ExtUtils/typemap Util.xs > Util.xsc && mv Util.xsc Util.c x86_64-pc-linux-gnu-gcc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe -DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE" -DPERL_EXT Util.c Running Mkbootstrap for List::Util () chmod 644 Util.bs rm -f blib/arch/auto/List/Util/Util.so x86_64-pc-linux-gnu-gcc -shared -L/usr/local/lib64 Util.o -o blib/arch/auto/List/Util/Util.so \ \ Util.o: In function `XS_Scalar__Util_isweak': Util.c:(.text+0x7): undefined reference to `PL_markstack_ptr' Util.c:(.text+0xe): undefined reference to `PL_stack_base' Util.c:(.text+0x15): undefined reference to `PL_stack_sp' Util.c:(.text+0x58): undefined reference to `PL_sv_no' Util.c:(.text+0x87): undefined reference to `PL_sv_yes' Util.c:(.text+0x97): undefined reference to `Perl_croak' Util.o: In function `boot_List__Util': [...] Util.c:(.text+0x2ad4): undefined reference to `Perl_mg_set' collect2: ld returned 1 exit status make: *** [blib/arch/auto/List/Util/Util.so] Error 1 * * ERROR: perl-core/Scalar-List-Utils-1.19 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2412: Called perl-module_src_compile * environment, line 2145: Called die * The specific snippet of code: * make ${mymake} || die "compilation failed"; * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/perl-core/Scalar-List-Utils-1.19/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/perl-core/Scalar-List-Utils-1.19/temp/environment'. * >>> Failed to emerge perl-core/Scalar-List-Utils-1.19, Log file: >>> '/var/tmp/portage/perl-core/Scalar-List-Utils-1.19/temp/build.log' * Messages for package perl-core/Scalar-List-Utils-1.19: * * ERROR: perl-core/Scalar-List-Utils-1.19 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2412: Called perl-module_src_compile * environment, line 2145: Called die * The specific snippet of code: * make ${mymake} || die "compilation failed"; * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/perl-core/Scalar-List-Utils-1.19/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/perl-core/Scalar-List-Utils-1.19/temp/environment'. * Reproducible: Always Steps to Reproduce:
*** This bug has been marked as a duplicate of bug 233354 ***