Created attachment 337554 [details]
Created attachment 337556 [details]
Created attachment 337558 [details]
Created attachment 337560 [details]
Patch is required in order to build as well.
Steps to success
1. mkdir -p /etc/portage/patches/dev-lang/php
2. wget -O /etc/portage/patches/dev-lang/php/php-5.4.11-fpm-fbsd.patch \
3. emerge dev-lang/php
Build success. Thanks.
seems to be fixed in 5.5.3-r1