when trying to add an extension that is not in PHP you will need to run phpize in the source directory of the new extension. However, because the PHP ebuilds do not perform the install-build step of the PHP Makefile, phpize will fail. Reproducible: Always Steps to Reproduce: 1. unpack the a php tarball (does not matter what version) 2. cd into ext/gd (as an example) 3. run phpize Actual Results: korn gd # phpize /usr/bin/phpize: line 18: cd: /usr/lib/php/build: No such file or directory /usr/bin/phpize: line 19: cd: /usr/lib/php/build: No such file or directory /usr/bin/phpize: line 22: /usr/lib/php/build/pear.m4: No such file or Expected Results: root@soulfly gd # phpize You should update your `aclocal.m4' by running aclocal. Notice no errors about missing directories or files. all that needs to be done is in the src_install() section of the php ebuilds, modify the line to add the Makefile option, install-build make INSTALL_ROOT=${D} install-cli install-pear install-headers install- programs install-modules install-build || die
this is an already fixed bug and a dup. see i.e. #13525, #15772 etc.. solved in php-4.3.1-r1 and later
confirmed, closed.