|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-18 09:53 UTC] pushpender007 at gmail dot com
Description: ------------ php make test fails with below error. /bin/sh: line 1: 9257 Segmentation fault TEST_PHP_EXECUTABLE=/usr/src/php5.2-200912180730/sapi/cli/php TEST_PHP_SRCDIR=/usr/src/php5.2-200912180730 CC="gcc" /usr/src/php5.2-200912180730/sapi/cli/php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/src/php5.2-200912180730/run-tests.php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d extension_dir=/usr/src/php5.2-200912180730/modules/ ` if test "x/usr/src/php5.2-200912180730/modules/wddx.la" != "x"; then for i in /usr/src/php5.2-200912180730/modules/wddx.la""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d zend_extension=/usr/src/php5.2-200912180730/modules/$dlname"; done; fi` make: [test] Error 139 (ignored) Reproduce code: --------------- complied with following options ./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --disable-debug \ --enable-ftp \ --libdir=lib64 \ --enable-inline-optimization \ --enable-magic-quotes \ --enable-mbstring \ --enable-wddx=shared \ --enable-xml \ --with-gd \ --with-gettext \ --with-mysql=/usr/local/mysql \ --with-regex=system \ --with-zlib-dir=/usr/local/lib \ --with-jpeg-dir=/usr/local/lib Expected result: ---------------- make install should not give any error. Actual result: -------------- make test failing with following output. /bin/sh: line 1: 9257 Segmentation fault TEST_PHP_EXECUTABLE=/usr/src/php5.2-200912180730/sapi/cli/php TEST_PHP_SRCDIR=/usr/src/php5.2-200912180730 CC="gcc" /usr/src/php5.2-200912180730/sapi/cli/php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/src/php5.2-200912180730/run-tests.php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d extension_dir=/usr/src/php5.2-200912180730/modules/ ` if test "x/usr/src/php5.2-200912180730/modules/wddx.la" != "x"; then for i in /usr/src/php5.2-200912180730/modules/wddx.la""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d zend_extension=/usr/src/php5.2-200912180730/modules/$dlname"; done; fi` make: [test] Error 139 (ignored) Though php -version comes fines. adeonline:/usr/src/php5.2-200912180730 # /usr/src/php5.2-200912180730/sapi/cli/php -version PHP 5.2.13-dev (cli) (built: Dec 18 2009 04:34:06) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies my gcc version to compile php is adeonline:/usr/src/php5.2-200912180730 # gcc -v Using built-in specs. Target: s390x-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-tune=z9-109 --with-arch=z900 --with-long-double-128 --host=s390x-suse-linux Thread model: posix gcc version 4.1.2 20070115 (SUSE Linux) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 22:00:01 2025 UTC |
I exported CFLAGS=-01 and that did not help. I modified my Makefile since gcc was complaining about -01. Changes to Makefile: removed -01 from CFLAGS_CLEAN added -01 to CFLAGS and left the exported CFLAGS set with -01 Compile completed successfully and make test worked as expected.