Compiling =dev-perl/Tk-804.33.0 failes with: /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: cannot find -lnsl Emerging net-libs/libnsl allowed Tk to build successfully. So, is it an undeclared dependency?
Created attachment 511686 [details] build.log
Created attachment 511688 [details] emerge --info
my @try = qw(-lsocket -lnsl -lm); push(@try,'-lc') if $^O =~ /svr4/i; *sigh*
I'm currently trying to reproduce this and I don't seem to able to replicate the problem, even without libnsl installed. Despite the mentions of -lnsl in the source code, those are "soft-auto-detect" paths, and you shouldn't need libnsl installed to make dev-perl/Tk compile. Its possible you've run afoul of Perl auto-including nsl in its configure (see bug #638518 for details ), so please make sure that: /usr/bin/perl -V | grep nsl Emits no output before re-attempting.
Let's hope this is fixed with newer dev-lang/perl.