php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67261 make test fails
Submitted: 2014-05-12 18:27 UTC Modified: 2018-08-26 16:59 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: dmtwersky at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.5.12 OS: Solaris 11.1 SPARC
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-05-12 18:27 UTC] dmtwersky at gmail dot com
Description:
------------
Configure Options:

./configure CPPFLAGS="-D_XPG6" CC="gcc -std=gnu99" LDFLAGS="-D_XPG6 -L/usr/lib/64 -L/lib/64 -L/lib -L/usr/lib -L/usr/lib/iconv/64 -m64" --prefix=/usr/php/5.5 --with-oci8=shared,$ORACLE_HOME --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --with-gd=shared --with-jpeg-dir=/usr --with-layout=PHP --with-ldap=shared --with-libmbfl --with-libxml-dir=/ --with-mysql-sock --enable-calendar=shared --enable-dom=shared --enable-gd-native-ttf --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-pdo --enable-session=shared --enable-short-tags --enable-soap=shared --enable-sockets=shared --enable-hash=shared --enable-phar=shared --enable-json=shared --enable-tokenizer=shared --with-mysqli=shared --with-pcre-dir=/usr --with-pdo-odbc=shared,unixODBC,/usr/local --with-png-dir=/usr --without-t1lib --with-openssl=shared --enable-shared --enable-zip=shared --enable-ftp --enable-bcmath --with-iconv=shared --disable-phar


make succeeds, but make test fails with this error:

 # make test

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


=====================================================================
PHP         : /var/tmp/php-5.5.12/sapi/cli/php 
PHP_SAPI    : cli
PHP_VERSION : 5.5.12
ZEND_VERSION: 2.5.0
PHP_OS      : SunOS - SunOS fmg-intra1 5.11 11.1 sun4v
INI actual  : /var/tmp/php-5.5.12/tmp-php.ini
More .INIs  :  
CWD         : /var/tmp/php-5.5.12
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2014-05-12 18:19:40
=====================================================================
PASS EXPECT [tests/run-test/test001.phpt] 
sh: line 12: 6033: Bus error(coredump)hpt]
*** Signal 10 - core dumped
The following command caused the error:
if test ! -z "/var/tmp/php-5.5.12/sapi/cli/php" && test -x "/var/tmp/php-5.5.12/sapi/cli/php"; then \
        INI_FILE=`/var/tmp/php-5.5.12/sapi/cli/php -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
        if test "$INI_FILE"; then \
                /usr/xpg4/bin/grep -E -h -v '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' "$INI_FILE" > /var/tmp/php-5.5.12/tmp-php.ini; \
        else \
                echo > /var/tmp/php-5.5.12/tmp-php.ini; \
        fi; \
        INI_SCANNED_PATH=`/var/tmp/php-5.5.12/sapi/cli/php -d 'display_errors=stderr' -r '$a = explode(",\n", trim(php_ini_scanned_files())); echo $a[0];' 2> /dev/null`; \
        if test "$INI_SCANNED_PATH"; then \
                INI_SCANNED_PATH=`/var/tmp/php-5.5.12/build/shtool path -d $INI_SCANNED_PATH`; \
                /usr/xpg4/bin/grep -E -h -v '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' "$INI_SCANNED_PATH"/*.ini >> /var/tmp/php-5.5.12/tmp-php.ini; \
        fi; \
        TEST_PHP_EXECUTABLE=/var/tmp/php-5.5.12/sapi/cli/php \
        TEST_PHP_SRCDIR=/var/tmp/php-5.5.12 \
        CC="gcc -std=gnu99" \
                /var/tmp/php-5.5.12/sapi/cli/php -n -c /var/tmp/php-5.5.12/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /var/tmp/php-5.5.12/run-tests.php -n -c /var/tmp/php-5.5.12/tmp-php.ini -d extension_dir=/var/tmp/php-5.5.12/modules/ `  if test "x/var/tmp/php-5.5.12/modules/openssl.la /var/tmp/php-5.5.12/modules/calendar.la /var/tmp/php-5.5.12/modules/curl.la /var/tmp/php-5.5.12/modules/dom.la /var/tmp/php-5.5.12/modules/gd.la /var/tmp/php-5.5.12/modules/hash.la /var/tmp/php-5.5.12/modules/iconv.la /var/tmp/php-5.5.12/modules/json.la /var/tmp/php-5.5.12/modules/ldap.la /var/tmp/php-5.5.12/modules/mbstring.la /var/tmp/php-5.5.12/modules/mysqli.la /var/tmp/php-5.5.12/modules/oci8.la /var/tmp/php-5.5.12/modules/pdo_odbc.la /var/tmp/php-5.5.12/modules/session.la /var/tmp/php-5.5.12/modules/soap.la /var/tmp/php-5.5.12/modules/sockets.la /var/tmp/php-5.5.12/modules/tokenizer.la /var/tmp/php-5.5.12/modules/xmlreader.la /var/tmp/php-5.5.12/modules/xmlwriter.la /var/tmp/php-5.5.12/modules/zip.la" != "x"; then  for i in /var/tmp/php-5.5.12/modules/openssl.la /var/tmp/php-5.5.12/modules/calendar.la /var/tmp/php-5.5.12/modules/curl.la /var/tmp/php-5.5.12/modules/dom.la /var/tmp/php-5.5.12/modules/gd.la /var/tmp/php-5.5.12/modules/hash.la /var/tmp/php-5.5.12/modules/iconv.la /var/tmp/php-5.5.12/modules/json.la /var/tmp/php-5.5.12/modules/ldap.la /var/tmp/php-5.5.12/modules/mbstring.la /var/tmp/php-5.5.12/modules/mysqli.la /var/tmp/php-5.5.12/modules/oci8.la /var/tmp/php-5.5.12/modules/pdo_odbc.la /var/tmp/php-5.5.12/modules/session.la /var/tmp/php-5.5.12/modules/soap.la /var/tmp/php-5.5.12/modules/sockets.la /var/tmp/php-5.5.12/modules/tokenizer.la /var/tmp/php-5.5.12/modules/xmlreader.la /var/tmp/php-5.5.12/modules/xmlwriter.la /var/tmp/php-5.5.12/modules/zip.la""; do  . $i; /var/tmp/php-5.5.12/build/shtool echo -n -- " -d extension=$dlname";  done;  fi;  if test "x/var/tmp/php-5.5.12/modules/opcache.la" != "x"; then  for i in /var/tmp/php-5.5.12/modules/opcache.la""; do  . $i; /var/tmp/php-5.5.12/build/shtool echo -n -- " -d zend_extension=/var/tmp/php-5.5.12/modules/$dlname";  done;  fi` ; \
        TEST_RESULT_EXIT_CODE=$?; \
        rm /var/tmp/php-5.5.12/tmp-php.ini; \
        exit $TEST_RESULT_EXIT_CODE; \
else \
        echo "ERROR: Cannot run tests without CLI sapi."; \
fi
make: Fatal error: Command failed for target `test'


Expected result:
----------------
make test success

Actual result:
--------------
make test failed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-12 19:24 UTC] dmtwersky at gmail dot com
I forgot to add, that I added the following lines to ext/sockets/conversions.c:

#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE_EXTENDED 1
#define __EXTENSIONS__

This fixes the following error.

/bin/sh /root/php-5.5.12/libtool --silent --preserve-dup-deps --mode=compile gcc -std=gnu99  -Iext/sockets/ -I/root/php-5.5.12/ext/sockets/ -DPHP_ATOM_INC -I/root/php-5.5.12/include -I/root/php-5.5.12/main -I/root/php-5.5.12 -I/root/php-5.5.12/ext/date/lib -I/root/php-5.5.12/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/ssl/include -I/root/php-5.5.12/ext/mbstring/oniguruma -I/root/php-5.5.12/ext/mbstring/libmbfl -I/root/php-5.5.12/ext/mbstring/libmbfl/mbfl -I/export/home/oracle/product/11.2.0.4/client_1/rdbms/public -I/export/home/oracle/product/11.2.0.4/client_1/rdbms/demo -I/root/php-5.5.12/ext/sqlite3/libsqlite -I/root/php-5.5.12/TSRM -I/root/php-5.5.12/Zend  -D_XPG6 -D_POSIX_PTHREAD_SEMANTICS  -I/usr/local/include -g -O2 -fvisibility=hidden   -c /root/php-5.5.12/ext/sockets/conversions.c -o ext/sockets/conversions.lo 
/root/php-5.5.12/ext/sockets/conversions.c: In function ‘from_zval_write_control’:
/root/php-5.5.12/ext/sockets/conversions.c:906:2: warning: implicit declaration of function ‘CMSG_SPACE’
/root/php-5.5.12/ext/sockets/conversions.c:920:2: warning: implicit declaration of function ‘CMSG_LEN’
/root/php-5.5.12/ext/sockets/conversions.c:923:2: warning: implicit declaration of function ‘CMSG_DATA’
/root/php-5.5.12/ext/sockets/conversions.c: In function ‘from_zval_write_control_array’:
/root/php-5.5.12/ext/sockets/conversions.c:973:8: error: ‘struct msghdr’ has no member named ‘msg_control’
/root/php-5.5.12/ext/sockets/conversions.c:974:8: error: ‘struct msghdr’ has no member named ‘msg_controllen’
/root/php-5.5.12/ext/sockets/conversions.c: In function ‘to_zval_read_control_array’:
/root/php-5.5.12/ext/sockets/conversions.c:1037:2: warning: implicit declaration of function ‘CMSG_FIRSTHDR’
/root/php-5.5.12/ext/sockets/conversions.c:1037:12: warning: assignment makes pointer from integer without a cast
/root/php-5.5.12/ext/sockets/conversions.c:1039:4: warning: implicit declaration of function ‘CMSG_NXTHDR’
/root/php-5.5.12/ext/sockets/conversions.c:1039:9: warning: assignment makes pointer from integer without a cast
/root/php-5.5.12/ext/sockets/conversions.c: In function ‘from_zval_write_controllen’:
/root/php-5.5.12/ext/sockets/conversions.c:1146:8: error: ‘struct msghdr’ has no member named ‘msg_control’
/root/php-5.5.12/ext/sockets/conversions.c:1147:8: error: ‘struct msghdr’ has no member named ‘msg_controllen’
/root/php-5.5.12/ext/sockets/conversions.c: In function ‘to_zval_read_msghdr’:
/root/php-5.5.12/ext/sockets/conversions.c:1248:34: error: ‘struct msghdr’ has no member named ‘msg_flags’
*** Error code 1
make: Fatal error: Command failed for target `ext/sockets/conversions.lo'

Thanks,
David
 [2014-05-29 16:12 UTC] nekotenshi0 at gmail dot com
Experiencing the same problem. Also documented in bug #66934 and bug #66969. It appears to be due to PCRE bug# 1427, a misaligned access that affects SPARC but not AMD64. Working on a workaround now.

see: https://lists.exim.org/lurker/message/20131231.005837.c62b68a4.en.html
 [2018-07-08 14:40 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-07-08 14:40 UTC] cmb@php.net
Does this problem still persist?  According to the discussion in
the PCRE bugtracker[1], it should have been fixed long ago (albeit
the bug is still open).
 [2018-08-26 16:59 UTC] cmb@php.net
-Status: Feedback +Status: No Feedback
 [2018-08-26 16:59 UTC] cmb@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 08:01:23 2020 UTC