Created attachment 509886 [details] build.log Looks like an undeclared dependency on net-libs/libnsl, which I don't currently have installed, but I don't understand where that's coming from or why it's needed. Both perl5 and irssi currently run fine separately.
ebuild ... does not fetch dependencies or dependencies of dependencies. Please *attach* the logfiles of emerge irssi, https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29 and reopen this ticket (Status:unconfirmed).
Created attachment 510042 [details] build.log
irssi-1.0.5 $ grep -i nsl configure.ac AC_SEARCH_LIBS([inet_addr], [nsl]) But note to irssi maintainers, there is also an auxiliary bug where perl may retain -lnsl in its linker flags due to perl's Config.pm So ensure machines that exhibit this (or similar) bugs don't show -lnsl in: grep nsl $( grep Config.pm <( qlist perl ))
I assume the nsl build error comes from the mentioned perl bug. irssi seems to use the libnsl on some systems for inet_addr, which is part of libc these days. the configure result for this check in the build log: > checking for library containing inet_addr... none required so irssi itself does not want to link to it.