A very simple modification to the ebuild to enable the flag --enable-apc-mmap if
the USE flag "apc-mmap" is set. Perhaps this should be "mmap", but I don't want
it conflicting with other ebuilds.
Compiling PECL-apc this way seems to help with the bug at:
Steps to Reproduce:
Created attachment 66412 [details, diff]
Patch to the ebuild allowing building with mmap
The ebuild from Gentoo PHP overlay  already have this flag, will be fixed
soon when they get into portage tree.
Thanks, there seem to be some good additions to the ebuild there. I'll wait for
it to come into the portage tree.