When emerging apache like the docs Code Listing 8.1: The emerge fails due to a missing /usr/sbin entry: apxs. This is fixable by adding a symbolic link from apxs to apxs2.
Update, this is in the mod_php build. After creating the symlink to apxs the following error message shows up: Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2 !!! ERROR: dev-php/mod_php-4.3.1-r1 failed. !!! Function src_compile, Line 219, Exitcode 1 !!! bad ./configure
Try this: USE="apache2" emerge mod_php and don't have the symlink
Adding apache2 to the USE variable helped. Then I ran into the same problem as bug 16910. After adjusting the mod_php ebuild script mod_php-4.3.1.ebuild, I emerged again and it defaults to the -r1.ebuild. I then had to emerge the proper ebuild and it finally worked. Thanks for the help and bugzilla.... :)
:\