ID:               50514
 Updated by:       [email protected]
 Reported By:      pushpender007 at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: SUSE Enterprise Server s390x
 PHP Version:      5.2SVN-2009-12-18 (snap)
 New Comment:

Try this (exactly!) configure line instead:

# rm config.cache && \
./configure \
--disable-cgi \
--libdir=lib64 \
--enable-mbstring \
--enable-xml \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-zlib-dir=/usr/local/ \
--with-jpeg-dir=/usr/local/




Previous Comments:
------------------------------------------------------------------------

[2009-12-18 14:28:52] pushpender007 at gmail dot com

I have uploaded all the diff files I have found in my php src
directory.I dont know how to upload to that php directory.
Please take files from this link.
http://pushpender007.byethost6.com/diff.tar
Thanks

------------------------------------------------------------------------

[2009-12-18 11:10:57] [email protected]

That is totally useless, we really need to know WHY they failed. Check
the *.diff files, might give some hint. Or you could simply post the
results and provide link to them via http://news.php.net/php.qa.reports


------------------------------------------------------------------------

[2009-12-18 10:53:46] pushpender007 at gmail dot com

I found this after enabling debug.

Test imagecolorallocate() function : usage variations  - passing
different data types to fourth argument
[ext/gd/tests/imagecolorallocate_variation4.phpt]
Bug #45923 (mb_st[r]ripos() offset not handled correctly)
[ext/mbstring/tests/bug45923.phpt]
mb_stripos() [ext/mbstring/tests/mb_stripos.phpt]
Test mb_stripos() function : basic functionality
[ext/mbstring/tests/mb_stripos_basic.phpt]
Test mb_stripos() function : basic functionality
[ext/mbstring/tests/mb_stripos_basic2.phpt]
Test mb_stripos() function : usage variations - pass different data
types as $needle arg [ext/mbstring/tests/mb_stripos_variation2.phpt]
Test mb_stripos() function : usage variations - pass different data
types as $offset arg [ext/mbstring/tests/mb_stripos_variation3.phpt]
Test mb_stripos() function : usage variations - pass different data
types as $encoding arg [ext/mbstring/tests/mb_stripos_variation4.phpt]
Test mb_stripos() function : usage variations - Pass different integers
as $offset argument
[ext/mbstring/tests/mb_stripos_variation5_Bug45923.phpt]
Test mb_stristr() function : basic functionality
[ext/mbstring/tests/mb_stristr_basic.phpt]
Test mb_stristr() function : usage variation - different values for
part [ext/mbstring/tests/mb_stristr_variation3.phpt]
Test mb_stristr() function : usage variation - multiple needles
[ext/mbstring/tests/mb_stristr_variation5.phpt]
Test mb_strrichr() function : basic functionality
[ext/mbstring/tests/mb_strrichr_basic.phpt]
Test mb_strrichr() function : usage variation - different values for
part [ext/mbstring/tests/mb_strrichr_variation3.phpt]
Test mb_strrichr() function : usage variation - multiple needles
[ext/mbstring/tests/mb_strrichr_variation5.phpt]
Test mb_strripos() function : basic functionality
[ext/mbstring/tests/mb_strripos_basic.phpt]
Test mb_strripos() function : basic functionality
[ext/mbstring/tests/mb_strripos_basic2.phpt]
Test mb_strripos() function : usage variations - pass different data
types as $needle arg [ext/mbstring/tests/mb_strripos_variation2.phpt]
Test mb_strripos() function : usage variations - pass different data
types as $offset arg
[ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt]
Test mb_strripos() function : usage variations - pass different data
types as $encoding arg [ext/mbstring/tests/mb_strripos_variation4.phpt]
Test mb_strripos() function : usage variations - Pass different
integers as $offset argument
[ext/mbstring/tests/mb_strripos_variation5_Bug45923.phpt]
mysql_fetch_array [ext/mysql/tests/002.phpt]
mysql_fetch_object [ext/mysql/tests/003.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #34630 (inserting streams as LOBs)
[ext/pdo_sqlite/tests/bug_34630.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #39398 (Booleans are not automatically
translated to integers) [ext/pdo_sqlite/tests/bug_39398.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #39656 (Crash when calling fetch() on a
PDO statment object after closeCursor())
[ext/pdo_sqlite/tests/bug_39656.phpt]
Testing PDOStatement::debugDumpParams() with bound params
[ext/pdo_sqlite/tests/debugdumpparams_001.phpt]
via [ext/sqlite/tests/pdo/common.phpt]
        SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs)
[ext/sqlite/tests/pdo/bug_34630.phpt]
Test var_dump() function
[ext/standard/tests/general_functions/var_dump_64bit.phpt]
Test decbin function : 64bit long tests
[ext/standard/tests/math/decbin_basiclong_64bit.phpt]
Test dechex function : 64bit long tests
[ext/standard/tests/math/dechex_basiclong_64bit.phpt]
Test decoct function : 64bit long tests
[ext/standard/tests/math/decoct_basiclong_64bit.phpt]
Test split() function : usage variations  - out-of-range values for
limit [ext/standard/tests/reg/split_variation_004.phpt]
Test spliti() function : usage variations  - out-of-range values for
limit [ext/standard/tests/reg/spliti_variation_004.phpt]
Bug #38770 (unpack() broken with longs on 64 bit machines)
[ext/standard/tests/strings/bug38770.phpt]
Test chunk_split() function : usage variations - unexpected values for
'chunklen' argument(Bug#42796)
[ext/standard/tests/strings/chunk_split_variation2.phpt]
Test chunk_split() function : usage variations - different integer
values for 'chunklen' argument(Bug#42796)
[ext/standard/tests/strings/chunk_split_variation5.phpt]
Test chunk_split() function : usage variations - different integer
values for 'chunklen' with heredoc string as 'str'(Bug#42796)
[ext/standard/tests/strings/chunk_split_variation8.phpt]
HTML entities with invalid chars
[ext/standard/tests/strings/htmlentities-utf.phpt]
Test setlocale() function : usage variations - Setting all available
locales in the platform
[ext/standard/tests/strings/setlocale_variation2.phpt]
substr_compare() [ext/standard/tests/strings/substr_compare.phpt]
Test vprintf() function : usage variations - unsigned formats with
unsigned values
[ext/standard/tests/strings/vprintf_variation15_64bit.phpt]
Test vsprintf() function : usage variations - unsigned formats with
unsigned values
[ext/standard/tests/strings/vsprintf_variation15_64bit.phpt]
xmlwriter_write_attribute_ns with missing param
[ext/xmlwriter/tests/xmlwriter_write_attribute_ns_error_001.phpt]
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism [tests/output/ob_011.phpt]
ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush()
[tests/output/ob_start_basic_unerasable_005.phpt]
SPL: ArrayObject::exchangeArray() basic usage with object as underlying
data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
=====================================================================

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]: Yns

------------------------------------------------------------------------

[2009-12-18 10:10:27] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2009-12-18 09:53:00] 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)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50514&edit=1

Reply via email to