Created attachment 546678 [details]
emerge --info php apache, lddtree mod_php and equery d libnsl
/usr/lib/apache2/modules/mod_php.so depends on libnsl.so.2, as seen in the attached file, but neither dev-lang/php-7.1.8 nor www-servers/apache-2.4.34-r2 have it in the dependency graph
Created attachment 546680 [details]
build.log for dev-lang/php-7.1.8
Does this still happen on 7.2 and higher?