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?
I don't think this is happening any more: * PHP's configure.ac only links against libnsl if gethostname or gethostbyaddr aren't found in libc. They should be. * My mod_php.so (php-8.1) isn't linked to it. I plan to mask php-7.4 in a few days (it's been EOL for a while) so I'm giving up on this. If you still see the problem with php-8.1 or php-8.2, please let me know.