php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51216 Segmentation fault when compiling PHP with PHAR
Submitted: 2010-03-05 16:38 UTC Modified: 2013-01-28 22:40 UTC
Votes:33
Avg. Score:4.5 ± 0.9
Reproduced:32 of 32 (100.0%)
Same Version:29 (90.6%)
Same OS:9 (28.1%)
From: dtm2mcs at gmail dot com Assigned:
Status: Not a bug Package: PHAR related
PHP Version: 5.3.2 OS: Ubuntu 6.04 + CentOS 5.4
Private report: No CVE-ID: None
 [2010-03-05 16:38 UTC] dtm2mcs at gmail dot com
Description:
------------
Compile crash when trying to compile PHAR

Test script:
---------------
Compile PHP with PHAR

Expected result:
----------------
Compiled PHP

Actual result:
--------------
 11384 Segmentation fault ` if test -x "/root/php53/php-5.3.2/sapi/cli/php"; then /root/php53/php-5.3.2/build/shtool echo -n -- "/root/php53/php-5.3.2/sapi/cli/php -n"; if test "x" != "x"; then /root/php53/php-5.3.2/build/shtool echo -n -- " -d extension_dir=/root/php53/php-5.3.2/modules"; for i in bz2 zlib phar; do if test -f "/root/php53/php-5.3.2/modules/$i.la"; then . /root/php53/php-5.3.2/modules/$i.la; /root/php53/php-5.3.2/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /root/php53/php-5.3.2/build/shtool echo -n -- "/root/php53/php-5.3.2/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /root/php53/php-5.3.2/ext/phar/build_precommand.php >ext/phar/phar.php

make: *** [ext/phar/phar.php] Error 139

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-05 17:01 UTC] dtm2mcs at gmail dot com
Tested on CentOS 5.4 - same problem
 [2010-03-05 19:55 UTC] jani@php.net
-Package: *Compile Issues +Package: PHAR related
 [2010-03-06 02:22 UTC] geissert@php.net
On what architecture? can you also provide a couple of lines of the log _before_ the segfault?
it might be related to #50987
 [2010-03-06 10:07 UTC] dtm2mcs at gmail dot com
Some lines before the segmentation fault:

/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -IZend/ -I/root/php-5.3.2/Zend/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/Zend/zend_objects.c -o Zend/zend_objects.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -IZend/ -I/root/php-5.3.2/Zend/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -IZend/ -I/root/php-5.3.2/Zend/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -IZend/ -I/root/php-5.3.2/Zend/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -IZend/ -I/root/php-5.3.2/Zend/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/Zend/zend_execute.c -o Zend/zend_execute.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -I/usr/include/httpd  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1   -I/usr/include/apr-1  -Isapi/apache2handler/ -I/root/php-5.3.2/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -I/usr/include/httpd  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1   -I/usr/include/apr-1  -Isapi/apache2handler/ -I/root/php-5.3.2/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -I/usr/include/httpd  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1   -I/usr/include/apr-1  -Isapi/apache2handler/ -I/root/php-5.3.2/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/apache2handler/apache_config.c -o sapi/apache2handler/apache_config.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -I/usr/include/httpd  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1   -I/usr/include/apr-1  -Isapi/apache2handler/ -I/root/php-5.3.2/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/apache2handler/php_functions.c -o sapi/apache2handler/php_functions.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -Imain/ -I/root/php-5.3.2/main/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c main/internal_functions.c -o main/internal_functions.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=link /root/php-5.3.2/meta_ccld -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS  -rpath /root/php-5.3.2/libs -avoid-version -module -L/usr/kerberos/lib64 -L/usr/lib64/mysql  -R /usr/kerberos/lib64 -R /usr/lib64/mysql ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gd/libgd/gd_gif_out.lo ext/gd/libgd/gd_security.lo ext/gd/libgd/gd_filter.lo ext/gd/libgd/gd_pixelate.lo ext/gd/libgd/gd_arc.lo ext/gd/libgd/gd_rotate.lo ext/gd/libgd/gd_color.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_salsa.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/sqlite/sqlite.lo ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo ext/sqlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo ext/sqlite/libsqlite/src/trigger.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt -lz -lcrypt -lrt -lmcrypt -lltdl -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lmysqlclient_r -lz -lcrypt -lnsl -lm -lmygcc -lmysqlclient_r -lz -lcrypt -lnsl -lm -lmygcc -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o libphp5.la
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -Isapi/cli/ -I/root/php-5.3.2/sapi/cli/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -Isapi/cli/ -I/root/php-5.3.2/sapi/cli/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /root/php-5.3.2/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.3.2/meta_ccld  -Imain/ -I/root/php-5.3.2/main/ -DPHP_ATOM_INC -I/root/php-5.3.2/include -I/root/php-5.3.2/main -I/root/php-5.3.2 -I/root/php-5.3.2/ext/date/lib -I/root/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/php-5.3.2/ext/mbstring/oniguruma -I/root/php-5.3.2/ext/mbstring/libmbfl -I/root/php-5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/php-5.3.2/ext/sqlite3/libsqlite -I/root/php-5.3.2/TSRM -I/root/php-5.3.2/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c main/internal_functions_cli.c -o main/internal_functions_cli.lo
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps --mode=link /root/php-5.3.2/meta_ccld -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS  -L/usr/kerberos/lib64 -L/usr/lib64/mysql  -R /usr/kerberos/lib64 -R /usr/lib64/mysql ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gd/libgd/gd_gif_out.lo ext/gd/libgd/gd_security.lo ext/gd/libgd/gd_filter.lo ext/gd/libgd/gd_pixelate.lo ext/gd/libgd/gd_arc.lo ext/gd/libgd/gd_rotate.lo ext/gd/libgd/gd_color.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_salsa.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/sqlite/sqlite.lo ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo ext/sqlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo ext/sqlite/libsqlite/src/trigger.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo main/internal_functions_cli.lo -lcrypt -lz -lcrypt -lrt -lmcrypt -lltdl -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lmysqlclient_r -lz -lcrypt -lnsl -lm -lmygcc -lmysqlclient_r -lz -lcrypt -lnsl -lm -lmygcc -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
Generating phar.php


The architecture on Ubuntu 6.04 is i686 GNU/Linux and on CentOS 5.4 it is x86_64 GNU/Linux.
 [2010-03-06 10:44 UTC] rasmus@php.net
That's a really old Ubuntu.  4+ years.  Does Ubuntu even support that anymore?  
Works perfectly fine on x86_64 Ubuntu 9.10.
 [2010-03-06 11:34 UTC] dtm2mcs at gmail dot com
Since i can't compile it on CentOS 5.4 either, it does not seem to be a problem of this older Ubuntu release.
 [2010-03-10 12:38 UTC] fsk141 at gmail dot com
I'm having the same issue trying to compile on Arch Linux on the ARM platform... :(

make: *** [ext/phar/phar.php] Error 139
 [2010-03-12 11:39 UTC] jedibc at free dot fr
Same issue on debian lenny x86 :

Generating phar.php
/bin/sh: line 1: 16624 Segmentation fault      ` if test -x "/root/php-5.3.2/sapi/cli/php"; then /root/php-5.3.2/build/shtool echo -n -- "/root/php-5.3.2/sapi/cli/php -n"; if test "x" != "x"; then /root/php-5.3.2/build/shtool echo -n -- " -d extension_dir=/root/php-5.3.2/modules"; for i in bz2 zlib phar; do if test -f "/root/php-5.3.2/modules/$i.la"; then . /root/php-5.3.2/modules/$i.la; /root/php-5.3.2/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /root/php-5.3.2/build/shtool echo -n -- "/root/php-5.3.2/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /root/php-5.3.2/ext/phar/build_precommand.php > ext/phar/phar.php

make: *** [ext/phar/phar.php] Error 139
 [2010-03-16 16:22 UTC] vnegrier at optilian dot com
Not PHAR related, this is actually the php-cli binary segfaulting during the make process.

Here is a trace :

0x0839c8f4 in zend_startup_module_ex (module=0x8732210, tsrm_ls=0x8712070)
    at /usr/src/php-5.3.2/Zend/zend_API.c:1618
1618                    EG(current_module) = NULL;
(gdb) where
#0  0x0839c8f4 in zend_startup_module_ex (module=0x8732210, tsrm_ls=0x8712070)
    at /usr/src/php-5.3.2/Zend/zend_API.c:1618
#1  0x083a177a in zend_hash_apply (ht=0x8711460,
    apply_func=0x839c850 <zend_startup_module_ex>, tsrm_ls=0x8712070)
    at /usr/src/php-5.3.2/Zend/zend_hash.c:673
#2  0x0839c75a in zend_startup_modules (tsrm_ls=0x8712070)
    at /usr/src/php-5.3.2/Zend/zend_API.c:1662
#3  0x083372f0 in php_module_startup (sf=0x86f82c0, additional_modules=0x0,
    num_additional_modules=0) at /usr/src/php-5.3.2/main/main.c:2022
#4  0x084299f1 in php_cli_startup (sapi_module=0x86f82c0)
    at /usr/src/php-5.3.2/sapi/cli/php_cli.c:401
#5  0x0842a32c in main (argc=1, argv=0xbfffcf74)
    at /usr/src/php-5.3.2/sapi/cli/php_cli.c:775

This was reproduced on debian 5.0.4 x86
 [2010-03-22 11:32 UTC] creatorbri at gmail dot com
I have the same problem when attempting to compile PHP 5.3.2. Details:

PHP Version:
PHP 5.3.2 - I downloaded the "stable" release dated "04 Mar 2010" directly from 
one of the usual php.net mirrors

Platform:
Ubuntu 9.10 Karmic Koala x64
[Asus G60Jx-RBBx05 - Core i5-430 2.26 GHz 4.0 GB RAM]

Configure Options:
./configure --prefix=PREFIX --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr --
with-mysqli=/usr/bin/mysql_config --with-pgsql=/usr --with-tidy=/usr --with-
curl=/usr/bin --with-curlwrappers --with-openssl-dir=/usr --with-zlib-dir=/usr -
-enable-mbstring --with-xpm-dir=/usr --with-pdo-pgsql=/usr --with-pdo-mysql=/usr 
--with-xsl=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr 
--enable-exif --enable-calendar --with-bz2=/usr --with-mcrypt=/usr --with-gd --
with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-
dir=/usr --enable-mbstring --enable-zip --with-pear

ERROR:
ext/sqlite3/libsqlite/.libs/sqlite3.o: In function `memset':
/usr/include/bits/string3.h:82: warning: memset used with constant zero length 
parameter; this could be due to transposed parameters
Generating phar.php
Segmentation fault
make: *** [ext/phar/phar.php] Error 139
 [2010-03-24 17:51 UTC] paul at boxuk dot com
i can also reproduce this, i believe it's something to do with the fix for bug 
#50829

amended that bug with the details
 [2010-03-26 00:16 UTC] mm_half3 at yahoo dot com
For what it is worth, I had the same issue on Solaris 10 sparc, compiling with gcc-4.3.1, and php-5.32 (tried with stable release and latest development src).   Further research found other solaris types getting segmentation faults during php 5.2.xx make test, see http://bugs.php.net/bug.php?id=47824&edit=1 .  Which I also could reproduce.  Setting CFLAGS=-O1, got php5.32 to compile and make test successfully with phar, and 5.2.xx to compile without fatal errors.  The seg fault is probably not a php issue, but something in the gcc version.  The make test looks like all the tests run, but there is an issue when the Test Summary is done for both:

WARNED TEST SUMMARY
---------------------------------------------------------------------
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes)
via [ext/sqlite/tests/pdo/common.phpt]
        SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes)
=====================================================================

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.
Do you want to send this report now? [Yns]: s
Please send /tmp/php-5.3.2/php_test_results_20100325_2040.txt to qa-reports@lists.php.net manually, thank you.
 [2010-03-30 17:39 UTC] tony at tonybibbs dot com
Same issue on 32bit Ubuntu 9.10
 [2010-04-07 23:34 UTC] holderm at lycos dot com
I'm getting the same thing with Solaris 10 and gcc 4.4.3.  It seems the Makefile is not generating a full ext/phar/phar.php (when compared to ext/phar/phar/phar.php).  The code ends with an open curly brace:

Generating phar.php
Segmentation Fault - core dumped
make: *** [ext/phar/phar.php] Error 139
/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > ll ext/phar/phar.php
-rw-r--r--   1 lmpjob   lmpjob       351 Apr  7 16:10 ext/phar/phar.php
/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > ll ext/phar/phar/phar.php
-rwxr-xr-x   1 lmpjob   lmpjob       992 Aug  1  2008 ext/phar/phar/phar.php
/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > cat ext/phar/phar.php
<?php
/** @file phar.php
 * @ingroup Phar
 * @brief class Phar Pre Command
 * @author  Marcus Boerger
 * @date    2007 - 2008
 *
 * Phar Command
 */
foreach(array("SPL", "Reflection", "Phar") as $ext) {
        if (!extension_loaded($ext)) {
                echo "$argv[0] requires PHP extension $ext.\n";
                exit(1);
        }
}

if (!class_exists('DirectoryTreeIterator', 0))
{

As far as I can tell this part of the Makefile is where the problem is:

ext/phar/phar.php: /app/psoft/devl/packages/php/php-5.3.2/ext/phar/build_precommand.php /app/psoft/devl/packages/php/php-5.3.2/ext/phar/phar/*.inc /app/psoft/devl/packages/php/php-5.3.2/ext/phar/phar/*.php $(SAPI_CLI_PATH)
        -@echo "Generating phar.php"
        @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /app/psoft/devl/packages/php/php-5.3.2/ext/phar/build_precommand.php > ext/phar/phar.php

My configure options were:

/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > cat config.nice
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/app/psoft/scripts/pkg/php5' \
'--enable-cli' \
'--disable-cgi' \
'--with-bz2' \
'--with-zlib' \
'--with-png-dir=/app/psoft/scripts/pkg/png-1.4.1' \
'--with-gd' \
'--with-oci8=/app/oracle/product/10.2.0' \
"$@"
 [2010-04-09 00:22 UTC] holderm at lycos dot com
The problem is in build_precommand.php.  When I run it it gets to the open curly brace and churns for a couple seconds, then it Seg faults.  I'm not sure how to fix it but will try changing it.

/app/psoft/devl/packages/php/php-5.3.2/ext/phar/
 hdlmpdu4/blk10.1/dev > ./build_precommand.php
<?php
/** @file phar.php
 * @ingroup Phar
 * @brief class Phar Pre Command
 * @author  Marcus Boerger
 * @date    2007 - 2008
 *
 * Phar Command
 */
foreach(array("SPL", "Reflection", "Phar") as $ext) {
        if (!extension_loaded($ext)) {
                echo "$argv[0] requires PHP extension $ext.\n";
                exit(1);
        }
}

if (!class_exists('DirectoryTreeIterator', 0))
{
Segmentation Fault(coredump)
 [2010-04-09 22:21 UTC] holderm at lycos dot com
I've got a workaround.  The problem seems to be that the build_precommand.php script cannot run on systems that do not have a working version of php.

I think the Makefile is doing this for me already but just to be sure I tried changing the shebang from #!/usr/bin/php to my local #!/app/psoft/devl/packages/php/php-5.3.2/sapi/cli/php (based on what I thought the Makefile was doing).  I kept running it from the command line and getting things like this (I was adding my own debugging info on lines that begin with // ):

/app/psoft/devl/packages/php/php-5.3.2/ext/phar/
 hdlmpdu4/blk10.1/dev > ./build_precommand.php
<?php
/** @file phar.php
 * @ingroup Phar
 * @brief class Phar Pre Command
 * @author  Marcus Boerger
 * @date    2007 - 2008
 *
 * Phar Command
 */
foreach(array("SPL", "Reflection", "Phar") as $ext) {
        if (!extension_loaded($ext)) {
                echo "$argv[0] requires PHP extension $ext.\n";
                exit(1);
        }
}

if (!class_exists('DirectoryTreeIterator', 0))
{
// name == DirectoryTreeIterator
// file(dirname('__FILE__') . '/phar/' . strtolower('DirectoryTreeIterator') . '.inc');
// g == __FILE__/phar/$name.inc
Segmentation Fault(coredump)

Finally I decided to bring over a working php executable from another server and give it a try:

/app/psoft/devl/packages/php/php-5.3.2/ext/phar/
 hdlmpdu4/blk10.1/dev > which php
/app/psoft/devl/bin/php
/app/psoft/devl/packages/php/php-5.3.2/ext/phar/
 hdlmpdu4/blk10.1/dev > /app/psoft/devl/bin/php --version
PHP 5.0.2 (cli) (built: Oct 21 2004 17:00:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies
/app/psoft/devl/packages/php/php-5.3.2/ext/phar/
 hdlmpdu4/blk10.1/dev > ./build_precommand.php
<?php
/** @file phar.php
 * @ingroup Phar
 * @brief class Phar Pre Command
 * @author  Marcus Boerger
 * @date    2007 - 2008
 *
 * Phar Command
 */
foreach(array("SPL", "Reflection", "Phar") as $ext) {
        if (!extension_loaded($ext)) {
                echo "$argv[0] requires PHP extension $ext.\n";
                exit(1);
        }
}

if (!class_exists('DirectoryTreeIterator', 0))
{
// name == DirectoryTreeIterator
// file(dirname('__FILE__') . '/phar/' . strtolower('DirectoryTreeIterator') . '.inc');
// g == __FILE__/phar/$name.inc
// f == Array
// f == Array
// c == 53

/** @file directorytreeiterator.inc
 * @ingroup Examples
 * @brief class DirectoryTreeIterator
 * @author  Marcus Boerger
 * @date    2003 - 2008
 *
 * SPL - Standard PHP Library
 */

/** @ingroup Examples
 * @brief   DirectoryIterator to generate ASCII graphic directory trees
 * @author  Marcus Boerger
 * @version 1.1
 */
class DirectoryTreeIterator extends RecursiveIteratorIterator
{
        /** Construct from a path.
         * @param $path directory to iterate
         */
        function __construct($path)

So, the problem is that the php executable that's built as an interem version for running the build_precommand.php script is not able to use the strtolower() function or the dirname() function (as far as my testing got, it bombed on each of those isolated cases).

I was able to make a kludge workaround by modifing the Makefile replacing $(PHP_PHARCMD_EXECUTABLE) with my executable, but the next step failed (target ext/phar/phar.phar:).  So I had to disable phar.
 [2010-04-09 23:18 UTC] holderm at lycos dot com
It looks like it's more than a phar problem.  I can build it rith phar disabled but it still won't run anything other than the --version option.

Build complete.
Don't forget to run 'make test'.

/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > make test

Build complete.
Don't forget to run 'make test'.

Segmentation Fault - core dumped
make: [test] Error 139 (ignored)
/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > ll ./sapi/cli/php
-rwxr-xr-x   1 lmpjob   lmpjob   18524408 Apr  9 16:25 ./sapi/cli/php
/app/psoft/devl/packages/php/php-5.3.2/
 hdlmpdu4/blk10.1/dev > ./sapi/cli/php --version
PHP 5.3.2 (cli) (built: Apr  8 2010 18:07:52)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
 [2010-04-19 18:54 UTC] remco at maxserv dot nl
I can confirm that this problem exists.

Compiled with apache MPM-prefork, everything went fine.

Switched to MPM-worker, breaks at the same point as mentioned in this report.
(Debian, Linux KPI 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux)

Configure used for apache:
./configure --prefix=/usr/local/apache2 --enable-so --enable-auth-digest --enable-cache --enable-deflate --enable-expires --enable-headers --enable-info --enable-logio --enable-mime-magic --enable-proxy --enable-rewrite --enable-speling --enable-ssl --enable-unique-id --with-mpm=worker

Configure used for PHP:
 './configure' '--prefix=/usr/lib/php5' '--host=x86-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--with-libdir=lib' '--with-pcre-regex=/usr' '--enable-cli' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--with-pear' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl' '--with-curlwrappers' '--enable-exif' '--enable-ftp' '--with-gettext' '--without-gmp' '--with-kerberos' '--enable-mbstring' '--with-mcrypt' '--with-mhash' '--with-mssql' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--without-pgsql' '--without-pspell' '--without-recode' '--disable-shmop' '--with-snmp' '--enable-soap' '--enable-sockets' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-wddx' '--with-xmlrpc' '--with-xsl' '--enable-zip' '--with-zlib' '--disable-debug' '--without-enchant' '--disable-intl' '--enable-phar' '--enable-dba' '--without-cdb' '--without-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-unixODBC=/usr' '--without-adabas' '--without-birdstep' '--without-dbmaker' '--without-empress' '--without-esoob' '--without-ibm-db2' '--without-iodbc' '--without-sapdb' '--without-solid' '--with-pdo-dblib' '--with-pdo-mysql=/usr' '--with-pdo-odbc=unixODBC,/usr' '--without-pdo-pgsql' '--with-readline' '--without-libedit' '--without-mm' '--without-sqlite'

Building without phar works, but then 'make install' fails with a segmentation fault as well.
 [2010-04-22 10:24 UTC] ywliu at hotmail dot com
I can confirm this one: 

1. On CentOS 5.4

2. Apache Worker MPM.

3. With mysqlnd, it wouldn't trigger segfault. But with external mysql library (my own build of 5.0.81) , it segfaults.

So looks like maybe it's the combination of worker MPM with the external mysql library.

ywliu
 [2010-05-07 23:50 UTC] leonard dot f dot elia at nasa dot gov
I am getting this bug with

gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
GNU Make 3.81  built for sparc-sun-solaris2.10
SunOS xxxxxxx 5.10 Generic_142900-01 sun4u sparc SUNW,Sun-Fire-480R Solaris
Memory: 1024M phys mem, 608M free mem, 2048M total swap, 2018M free swap

Any workarounds are gratefully appreciated
 [2010-05-07 23:52 UTC] leonard dot f dot elia at nasa dot gov
Almost forgot, I am building php 5.3.2 as a NSAPI module for iPlanet 7 using mysql 5.1.40

./configure --prefix=/usr/local/php532-dist \
--with-curl=/usr/local --enable-exif --with-gd \
--with-nsapi=/usr/local/iplanet7 \
--with-mysql=/usr/local/mysql-client/mysql-5.1.40 \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-oci8=instantclient,/usr/local/oracle \
--with-pdo-mysql=/usr/local/mysql-client/mysql-5.1.40 \
--with-pdo-oci=/usr/local/oracle \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
--enable-libgcc

thank you
 [2010-05-08 00:54 UTC] leonard dot f dot elia at nasa dot gov
So, I tried compiling without phar:

./configure --prefix=/usr/local/php532-dist \
--with-curl=/usr/local --enable-exif --with-gd \
--with-nsapi=/usr/local/iplanet7 \
--with-mysql=/usr/local/mysql-client/mysql-5.1.40 \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-oci8=instantclient,/usr/local/oracle \
--with-pdo-mysql=/usr/local/mysql-client/mysql-5.1.40 \
--with-pdo-oci=/usr/local/oracle \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
--enable-libgcc \
--disable-phar

The make now completes as expected but make install now throws up:

[root@allegro php5]# make install
Installing PHP SAPI module:       nsapi
Installing PHP CLI binary:        /usr/local/php532-dist/bin/
Installing PHP CLI man page:      /usr/local/php532-dist/man/man1/
Installing build environment:     /usr/local/php532-dist/lib/php/build/
Installing header files:          /usr/local/php532-dist/include/php/
Installing helper programs:       /usr/local/php532-dist/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php532-dist/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php532-dist/lib/php/
Segmentation Fault
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2

And this bug, my friends, isn't in the bug database (that I have found).

Any ideas?

My system has a working php in the path (5.3.1) and is up to date on patches etc.
 [2010-07-08 17:00 UTC] bluefox012 at gmail dot com
centos 5.4
have the same problem,

[activating module `php5' in /home/services/web/config/httpd.conf]
Installing PHP CLI binary:        /usr/local/php/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2
 [2010-07-13 23:01 UTC] srinatar@php.net
-Status: Open +Status: Feedback
 [2010-07-13 23:01 UTC] srinatar@php.net
please see if this issue can be reproduced with php 5.3.3 (RC2)- http://qa.php.net/ 

and if yes, please provide us a stack trace as mentioned here. 
http://bugs.php.net/bugs-generating-backtrace.php
 [2010-07-14 04:51 UTC] ywliu at hotmail dot com
Just tried 5.3.3RC2. This problem on the latest CentOS 5.5 is gone.
 [2010-07-14 20:08 UTC] srinatar@php.net
-Status: Feedback +Status: Bogus
 [2010-07-14 20:08 UTC] srinatar@php.net
closing it as not reproducible with latest release (5.3.3)
 [2010-07-24 17:31 UTC] sneakyimp at hotmail dot com
I can also confirm this problem on Mac OSX 10.5.8 with php source for 5.3.2.

I'm compiling with --enable-maintainer-zts because I want to work on a php extension.

Generating phar.php
/bin/sh: line 1: 61359 Segmentation fault      ` if test -x "/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php"; then /Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n -- "/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php -n"; if test "x" != "x"; then /Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n -- " -d extension_dir=/Users/christopherwalsh/src/php-5.3.2/modules"; for i in bz2 zlib phar; do if test -f "/Users/christopherwalsh/src/php-5.3.2/modules/$i.la"; then . /Users/christopherwalsh/src/php-5.3.2/modules/$i.la; /Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n -- "/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /Users/christopherwalsh/src/php-5.3.2/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
 [2011-03-24 21:05 UTC] david at universe dot sonoma dot edu
I have a working php 5.3.5 and all I'm trying to add is gd stuff:

Generating phar.php
/bin/sh: line 1: 17327 Segmentation fault

./configure \
        --with-mysql=/usr/bin\ \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-openssl-dir=/usr/local/ssl \
        --with-libxml-dir=/usr/lib64 \
        --disable-cgi \
        --with-zlib-dir=/usr/local/lib \
        --with-imap=/usr/local/imap-2007e \
        --with-imap-ssl \
        --with-mcrypt=/usr/lib \
        --enable-zip \
        --with-gettext \
        --enable-mbstring \
        --with-curl=/usr/bin/curl \
        --enable-sockets \
        --with-jpeg-dir=/usr/lib64 \
        --with-png-dir=/usr/lib64 \
        --with-gd
 [2011-03-24 21:57 UTC] david at universe dot sonoma dot edu
and if I disable-phar:

Build complete.
Don't forget to run 'make test'.


Build complete.
Don't forget to run 'make test'.

/bin/sh: line 19: 22851 Segmentation fault      TEST_PHP_EXECUTABLE=/usr/local/src/php-5.3.5/sapi/cli/php TEST_PHP_SRCDIR=/usr/local/src/php-5.3.5 CC="gcc" /usr/local/src/php-5.3.5/sapi/cli/php -n -c /
usr/local/src/php-5.3.5/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/local/src/php-5.3.5/run-tests.php -n -c /usr/local/src/php-5.3.5/tmp-php.ini -d extension_dir=/u
sr/local/src/php-5.3.5/modules/ ` if test "x" != "x"; then for i in ""; do . $i; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""
; do . $i; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d zend_extension=/usr/local/src/php-5.3.5/modules/$dlname"; done; fi`
PATH="$PATH:/sbin" ldconfig -n /usr/local/src/php-5.3.5/libs
 [2011-03-24 22:57 UTC] david at universe dot sonoma dot edu
and now even stranger:
./configure \
        --with-mysql=/usr/bin\ \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-openssl-dir=/usr/local/ssl \
        --with-libxml-dir=/usr/lib64 \
        --disable-cgi \
        --with-zlib-dir=/usr/local/lib \
        --with-imap=/usr/local/imap-2007e \
        --with-imap-ssl \
        --with-mcrypt=/usr/local/lib \
        --enable-zip \
        --with-gettext \
        --enable-mbstring \
        --with-curl=/usr/bin/curl \
        --enable-sockets \
        --with-gd=/usr/local/




/usr/local/imap-2007e/c-client/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/local/imap-2007e/c-client/osdep.c:337: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Generating phar.php
/bin/sh: line 1: 19438 Segmentation fault      ` if test -x "/usr/local/src/php-5.3.5/sapi/cli/php"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/local/src/php-5.3.5/sapi/cli/php -n"; if
 test "x" != "x"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension_dir=/usr/local/src/php-5.3.5/modules"; for i in bz2 zlib phar; do if test -f "/usr/local/src/php-5.3.5/modules/$i.
la"; then . /usr/local/src/php-5.3.5/modules/$i.la; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/l
ocal/src/php-5.3.5/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /usr/local/src/php-5.3.5/ext/phar/build_precommand.php > ext/p
har/phar.php
make: *** [ext/phar/phar.php] Error 139
Generating phar.phar
make: *** [ext/phar/phar.phar] Segmentation fault
 [2011-03-25 01:32 UTC] david at universe dot sonoma dot edu
./configure \
        --with-mysql=/usr/bin\ \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-openssl-dir=/usr/local/ssl \
        --with-libxml-dir=/usr/lib64 \
        --with-zlib-dir=/usr/local/lib \
        --with-imap=/usr/local/imap-2007e \
        --with-imap-ssl \
        --with-mcrypt=/usr/local/lib \
        --with-jpeg-dir=/usr/lib64 \
        --with-png-dir=/usr/lib64 \
        --enable-zip \
        --with-gettext \
        --enable-mbstring \
        --with-curl=/usr/bin/curl \
        --enable-sockets \
        --with-pdo-mysql=/usr/bin/mysql \
        --with-gd=/usr/local

produces:

/usr/local/imap-2007e/c-client/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/local/imap-2007e/c-client/osdep.c:337: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Generating phar.php
/bin/sh: line 1:  6945 Segmentation fault      ` if test -x "/usr/local/src/php-5.3.5/sapi/cli/php"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/local/src/php-5.3.5/sapi/cli/php -n"; if
 test "x" != "x"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension_dir=/usr/local/src/php-5.3.5/modules"; for i in bz2 zlib phar; do if test -f "/usr/local/src/php-5.3.5/modules/$i.
la"; then . /usr/local/src/php-5.3.5/modules/$i.la; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/l
ocal/src/php-5.3.5/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /usr/local/src/php-5.3.5/ext/phar/build_precommand.php > ext/p
har/phar.php
make: *** [ext/phar/phar.php] Error 139
Generating phar.phar
make: *** [ext/phar/phar.phar] Segmentation fault

:-((
 [2011-03-25 01:34 UTC] david at universe dot sonoma dot edu
Forgot to mention:  this is RHEL 
Linux XXXXXXXXX 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
 [2011-03-25 02:04 UTC] david at universe dot sonoma dot edu
so I tried something different:

./configure \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-openssl-dir=/usr/local/ssl \
        --with-mysql=/usr/bin/ \
        --enable-libgcc \
        --with-libdir=lib64 \
        --with-libxml-dir=/usr/lib64 \
        --disable-cgi \
        --with-zlib-dir=/usr/local/include \
        --enable-zip \
        --with-gd \
        --with-png-dir=/usr/lib \
        --with-jpeg-dir=/usr/lib \
        --with-mcrypt=/usr/lib \
        --with-gettext \
        --enable-mbstring \
        --with-curl=/usr/bin/curl \
        --enable-sockets \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd

and I got:

 -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
Generating phar.php
/usr/local/src/php-5.3.5/sapi/cli/php: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
Generating phar.phar
/usr/local/src/php-5.3.5/sapi/cli/php: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.phar] Error 127
 [2011-03-25 02:09 UTC] rasmus@php.net
Why aren't you using 5.3.6? Not saying it is fixed there, but it is more useful 
to us if reports are against the current code.
 [2012-03-28 04:13 UTC] daykinandy at gmail dot com
I got the issue on opensuse 12.1 kde trying to install PHP 5.4 with a source compiled version of apache (2.2.22). 

Here is the output:

/bin/sh: line 1: 31873 Segmentation fault      ` if test -x "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php"; then /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php -n"; if test "x" != "x"; then /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- " -d extension_dir=/home/adminuser/Downloads/php-5.4.0/modules"; for i in bz2 zlib phar; do if test -f "/home/adminuser/Downloads/php-5.4.0/modules/$i.la"; then . /home/adminuser/Downloads/php-5.4.0/modules/$i.la; /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /home/adminuser/Downloads/php-5.4.0/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139


Here is my configure statement for PHP:

./configure --datadir=/usr/share/php5 --with-libdir=/lib --includedir=/usr/include --bindir=/usr/bin --with-pear --with-pcre-regex --enable-bcmath --enable-calendar --enable-debug --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc/php5 --with-config-file-scan-dir=/etc/php5/conf.d --sysconfdir=/etc/php5


This was my apache configure statement:

./configure --enable-cache --enable-deflate --enable-expires --enable-headers --enable-rewrite --enable-ssl --enable-vhost-alias --enable-so --sysconfdir=/etc/apache2
 [2012-07-26 14:07 UTC] adamjonr at gmail dot com
Same issue.

Ubuntu 12.04

./configure --enable-debug --enable-maintainer-zts

Generating phar.php
/bin/bash: line 1: 27380 Segmentation fault      (core dumped) ` if test -x 
"/usr/local/src/php-5.4.4/sapi/cli/php"; then /usr/local/src/php-
5.4.4/build/shtool echo -n -- "/usr/local/src/php-5.4.4/sapi/cli/php -n"; if test 
"x" != "x"; then /usr/local/src/php-5.4.4/build/shtool echo -n -- " -d 
extension_dir=/usr/local/src/php-5.4.4/modules"; for i in bz2 zlib phar; do if 
test -f "/usr/local/src/php-5.4.4/modules/$i.la"; then . /usr/local/src/php-
5.4.4/modules/$i.la; /usr/local/src/php-5.4.4/build/shtool echo -n -- " -d 
extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.4.4/build/shtool echo 
-n -- "/usr/local/src/php-5.4.4/sapi/cli/php"; fi;` -d 'open_basedir=' -d 
'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' 
/usr/local/src/php-5.4.4/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
 [2013-01-04 13:15 UTC] olemarkus@php.net
Several Gentoo users have reported the same issue:
https://bugs.gentoo.org/show_bug.cgi?id=449386
 [2013-01-28 19:42 UTC] renton at renton dot name
php-5.3.20 # make
...
Generating phar.phar
make: *** [ext/phar/phar.phar] Segmentation fault

Gentoo.
 [2013-01-28 22:40 UTC] johannes@php.net
Apparently this is due to Gentoo bugs or such, please a) try running  `./sapi/cli/php -m`  or such in the working dir after building PHP, maybe under gdb. And then verify the patches ...
 [2013-04-19 23:26 UTC] uorsini1 at gmail dot com
I just ran into this on SPARC Solaris 5.9, php-5.3.x and 5.4.x. I remembered that long ago, way before phar, I had php coredumping when running tests. According to Andy Poliakov that was the result of a change in gcc's behavior, esp. when building code that interacts with openssl. Back then he suggested adding -fno-strict-aliasing to the CFLAGS in the main PHP Makefile.

So I did the same in php-5.4.14, and voila, it gets past the phar stage and runs all tests fine. It's nothing to do with phar, it's just that 5.2.x and earlier weren't trying to use the mis-compiled php for anything during make. Anyone with this problem may want to try that.
 [2013-04-21 03:19 UTC] uorsini1 at gmail dot com
I should have said CFLAGS_CLEAN I think, since that's what cli builds use.
 [2013-04-25 09:02 UTC] olemarkus@php.net
It is a bit simple to say it is due to a Gentoo bug. It is not like we add many 
patches on top of PHP anymore. The few patches we have are mainly related to 
patching the build system.

As mentioned, this segfault had nothing to do with PHAR. It is just the only time 
that php itself is being executed. In our case, the bug was compiling PHP with 
gcc 4.7 under certain conditions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 07:01:30 2024 UTC