CHH/php-build — pull request #54 by eriksencosta (2012-04-29 07:46:27+00:00)
Title: added check for the .dSYM files before trying to remove them

On Debian Squeeze, I was getting the following error:

BUILD ERROR
/var/tmp/php-build/source/5.3.11-default-icu/ext/pdo/pdo.c: In function 'php_pdo_parse_data_source':
/var/tmp/php-build/source/5.3.11-default-icu/ext/pdo/pdo.c:280: warning: initialization discards qualifiers from pointer target type
/var/tmp/php-build/source/5.3.11-default-icu/ext/sqlite/libsqlite/src/func.c: In function 'minmaxFunc':
/var/tmp/php-build/source/5.3.11-default-icu/ext/sqlite/libsqlite/src/func.c:38: warning: cast from pointer to integer of different size
/var/tmp/php-build/source/5.3.11-default-icu/ext/sqlite/libsqlite/src/func.c: In function 'minmaxStep':
/var/tmp/php-build/source/5.3.11-default-icu/ext/sqlite/libsqlite/src/func.c:526: warning: cast from pointer to integer of different size
/var/tmp/php-build/source/5.3.11-default-icu/Zend/zend_objects.c: In function 'zend_objects_destroy_object':
/var/tmp/php-build/source/5.3.11-default-icu/Zend/zend_objects.c:96: warning: assignment discards qualifiers from pointer target type PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
mv: cannot stat `/home/vagrant/.phpenv/versions/5.3.11-default-icu/bin/*.dSYM': No such file or directory

I struggled a little until I found that the error was occurring when php-build tries to move the `.dSYM` files, since I was able to compile the PHP source directly with the same configure options without problems.