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: http://pecl.php.net/bugs/bug.php?id=5111 Reproducible: Always Steps to Reproduce:
Created attachment 66412 [details, diff] Patch to the ebuild allowing building with mmap
The ebuild from Gentoo PHP overlay [1] already have this flag, will be fixed soon when they get into portage tree. [1] http://svn.gnqs.org/projects/gentoo-php-overlay/
Thanks, there seem to be some good additions to the ebuild there. I'll wait for it to come into the portage tree.