Bug #75512 [NEW]: Compilation error on an ARMv5 NAS

From: Date: Sun, 12 Nov 2017 17:53:47 +0000
Subject: Bug #75512 [NEW]: Compilation error on an ARMv5 NAS
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212552@lists.php.net to get a copy of this message
From: diniboy74 at gmail dot com Operating system: embedded Linux 2.6.31.8 PHP version: 7.1.11 Package: Compile Failure Bug Type: Bug Bug description:Compilation error on an ARMv5 NAS Description: ------------ When I try to build PHP 7.1.11 from source, the make throws an error after a while (see the error in the Actual result field). The box has ARMv5 CPU arch, and uClibc. The configure flags are: ./configure --with-apxs2=/ffp/apache2/bin/apxs --prefix=/ffp --sbindir=/ffp/bin --sysconfdir=/ffp/etc/php --enable-fpm --with-layout=GNU --with-config-file-path=/ffp/etc/php --with-config-file-scan-dir=/ffp/etc/php/conf.d --enable-hash --enable-session --enable-posix=shared --enable-sockets=shared --enable-sysvsem=shared --enable-calendar=shared --enable-ctype=shared --enable-dom=shared --with-gd=shared --enable-gd-native-ttf --enable-xmlreader=shared --enable-libxml --enable-simplexml=shared --enable-soap=shared --with-libxml-dir=/ffp --enable-mbstring=shared --enable-mbregex=shared --enable-tokenizer=shared --enable-ftp=shared --enable-pcntl --with-pcre-regex=/ffp --with-pcre-dir=/ffp --with-sqlite3=shared,/ffp --with-pdo-sqlite=shared,/ffp --with-pdo-mysql=shared,/ffp --with-mysql-sock=/ffp/var/run/mysqld/mysqld.sock --with-mysqli=shared,/ffp/bin/mysql_config --enable-embedded-mysqli --with-zlib=/ffp --with-zlib-dir=/ffp --enable-zip=shared,/ffp --with-bz2=shared,/ffp --with-openssl=/ffp --with-openssl-dir=/ffp --with-gdbm=shared,/ffp --with-gmp=shared,/ffp --with-curl=shared,/ffp --with-jpeg-dir=/ffp --with-png-dir=/ffp --enable-exif=shared,/ffp --with-freetype-dir=/ffp --with-gettext=shared,/ffp --with-iconv=shared,/ffp --with-iconv-dir=/ffp --with-icu-dir=/ffp --enable-intl=shared --with-readline=/ffp --with-xmlrpc=shared --with-xsl=shared,/ffp Actual result: -------------- /bin/sh /i-data/bf835951/build/php-7.1.11/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/mysqli/ -I/i-data/bf835951/build/php-7.1.11/ext/mysqli/ -DPHP_ATOM_INC -I/i-data/bf835951/build/php-7.1.11/include -I/i-data/bf835951/build/php-7.1.11/main -I/i-data/bf835951/build/php-7.1.11 -I/i-data/bf835951/build/php-7.1.11/ext/date/lib -I/ffp/include/libxml2 -I/ffp/include/freetype2 -I/i-data/bf835951/build/php-7.1.11/ext/mbstring/libmbfl -I/i-data/bf835951/build/php-7.1.11/ext/mbstring/libmbfl/mbfl -I/ffp/include/mysql -I/ffp/include/mysql/.. -I/i-data/bf835951/build/php-7.1.11/ext/zip/lib -I/i-data/bf835951/build/php-7.1.11/TSRM -I/i-data/bf835951/build/php-7.1.11/Zend -I/ffp/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c -o ext/mysqli/mysqli_embedded.lo In file included from /ffp/include/mysql/my_global.h:75:0, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/php_mysqli_structs.h:63, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:28: /ffp/include/mysql/my_config.h:363:0: warning: "SIZEOF_OFF_T" redefined #define SIZEOF_OFF_T 8 ^ In file included from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config.h:1:0, from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config_common.h:13, from /i-data/bf835951/build/php-7.1.11/Zend/zend_virtual_cwd.h:27, from /i-data/bf835951/build/php-7.1.11/main/php.h:411, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/include/../main/php_config.h:2328:0: note: this is the location of the previous definition #define SIZEOF_OFF_T 4 ^ In file included from /ffp/include/mysql/my_global.h:75:0, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/php_mysqli_structs.h:63, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:28: /ffp/include/mysql/my_config.h:637:0: warning: "PACKAGE_NAME" redefined #define PACKAGE_NAME "MySQL Server" ^ In file included from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config.h:1:0, from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config_common.h:13, from /i-data/bf835951/build/php-7.1.11/Zend/zend_virtual_cwd.h:27, from /i-data/bf835951/build/php-7.1.11/main/php.h:411, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/include/../main/php_config.h:2181:0: note: this is the location of the previous definition #define PACKAGE_NAME "" ^ In file included from /ffp/include/mysql/my_global.h:75:0, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/php_mysqli_structs.h:63, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:28: /ffp/include/mysql/my_config.h:638:0: warning: "PACKAGE_STRING" redefined #define PACKAGE_STRING "MySQL Server 10.0.21" ^ In file included from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config.h:1:0, from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config_common.h:13, from /i-data/bf835951/build/php-7.1.11/Zend/zend_virtual_cwd.h:27, from /i-data/bf835951/build/php-7.1.11/main/php.h:411, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/include/../main/php_config.h:2184:0: note: this is the location of the previous definition #define PACKAGE_STRING "" ^ In file included from /ffp/include/mysql/my_global.h:75:0, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/php_mysqli_structs.h:63, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:28: /ffp/include/mysql/my_config.h:639:0: warning: "PACKAGE_TARNAME" redefined #define PACKAGE_TARNAME "mysql" ^ In file included from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config.h:1:0, from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config_common.h:13, from /i-data/bf835951/build/php-7.1.11/Zend/zend_virtual_cwd.h:27, from /i-data/bf835951/build/php-7.1.11/main/php.h:411, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/include/../main/php_config.h:2187:0: note: this is the location of the previous definition #define PACKAGE_TARNAME "" ^ In file included from /ffp/include/mysql/my_global.h:75:0, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/php_mysqli_structs.h:63, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:28: /ffp/include/mysql/my_config.h:640:0: warning: "PACKAGE_VERSION" redefined #define PACKAGE_VERSION "10.0.21" ^ In file included from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config.h:1:0, from /i-data/bf835951/build/php-7.1.11/TSRM/tsrm_config_common.h:13, from /i-data/bf835951/build/php-7.1.11/Zend/zend_virtual_cwd.h:27, from /i-data/bf835951/build/php-7.1.11/main/php.h:411, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/include/../main/php_config.h:2193:0: note: this is the location of the previous definition #define PACKAGE_VERSION "" ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c: In function 'zif_mysqli_embedded_server_start': /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:63:56: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type if (zend_hash_get_current_data_ex(Z_ARRVAL_P(args), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:36:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_hash.h:198:30: note: expected 'HashPosition *' but argument is of type 'void **' ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:63:8: error: too many arguments to function 'zend_hash_get_current_data_ex' if (zend_hash_get_current_data_ex(Z_ARRVAL_P(args), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:36:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_hash.h:198:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:63:79: warning: comparison between pointer and integer if (zend_hash_get_current_data_ex(Z_ARRVAL_P(args), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:31:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:67:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:331:38: note: expected 'const struct zval *' but argument is of type 'struct zval **' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:67:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:331:38: note: expected 'const struct zval *' but argument is of type 'struct zval **' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:324:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:67:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:253:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:69:23: warning: assignment makes pointer from integer without a cast arguments[++index] = Z_STRVAL_PP(item); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:84:56: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type if (zend_hash_get_current_data_ex(Z_ARRVAL_P(grps), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:36:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_hash.h:198:30: note: expected 'HashPosition *' but argument is of type 'void **' ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:84:8: error: too many arguments to function 'zend_hash_get_current_data_ex' if (zend_hash_get_current_data_ex(Z_ARRVAL_P(grps), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:36:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_hash.h:198:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:84:79: warning: comparison between pointer and integer if (zend_hash_get_current_data_ex(Z_ARRVAL_P(grps), (void **) &item, &pos) == FAILURE) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:31:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:88:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:331:38: note: expected 'const struct zval *' but argument is of type 'struct zval **' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:88:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_types.h:331:38: note: expected 'const struct zval *' but argument is of type 'struct zval **' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ In file included from /i-data/bf835951/build/php-7.1.11/Zend/zend.h:324:0, from /i-data/bf835951/build/php-7.1.11/main/php.h:35, from /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:25: /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:88:4: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex(item); ^ /i-data/bf835951/build/php-7.1.11/Zend/zend_operators.h:253:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^ /i-data/bf835951/build/php-7.1.11/ext/mysqli/mysqli_embedded.c:90:20: warning: assignment makes pointer from integer without a cast groups[++index] = Z_STRVAL_PP(item); ^ Makefile:1515: recipe for target 'ext/mysqli/mysqli_embedded.lo' failed make: *** [ext/mysqli/mysqli_embedded.lo] Error 1 -- Edit bug report at https://bugs.php.net/bug.php?id=75512&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75512&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75512&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75512&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75512&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75512&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75512&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75512&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75512&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75512&r=support Expected behavior: https://bugs.php.net/fix.php?id=75512&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75512&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75512&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75512&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75512&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75512&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75512&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75512&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75512&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75512&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75512&r=mysqlcfg

« previous php.bugs (#212552) next »