Bug #78237 [Opn->Csd]: It doesn't compile

From: Date: Mon, 01 Jul 2019 15:21:40 +0000
Subject: Bug #78237 [Opn->Csd]: It doesn't compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221571@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78237&edit=1 ID: 78237 Updated by: nikic@php.net Reported by: luciano at mannucci dot org Summary: It doesn't compile -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: freebsd 11.2-RELEASE-p10 PHP Version: 7.4.0alpha2 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: This has already been fixed in git. I'd strongly recommend using mysqlnd instead of libmysql though. The latter is, as you have found, not really supported anymore. Previous Comments: ------------------------------------------------------------------------ [2019-07-01 15:06:40] luciano at mannucci dot org Description: ------------ This is the error I see: /bin/sh /usr/local/src/php/php-7.4.0alpha2/libtool --silent --preserve-dup-deps --mode=compile gcc8 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/mysqli/ -I/usr/local/src/php/php-7.4.0alpha2/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php/php-7.4.0alpha2/include -I/usr/local/src/php/php-7.4.0alpha2/main -I/usr/local/src/php/php-7.4.0alpha2 -I/usr/local/src/php/php-7.4.0alpha2/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/src/php/php-7.4.0alpha2/ext/mbstring/libmbfl -I/usr/local/src/php/php-7.4.0alpha2/ext/mbstring/libmbfl/mbfl -I/usr/local/include/mysql -I/usr/local/src/php/php-7.4.0alpha2/TSRM -I/usr/local/src/php/php-7.4.0alpha2/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS -c /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo In file included from /usr/local/include/mysql/my_global.h:68, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:57, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:32: /usr/local/include/mysql/my_config.h:417: warning: "WORDS_BIGENDIAN" redefined #define WORDS_BIGENDIAN 1 In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_config.h:1, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:43, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:27: /usr/local/src/php/php-7.4.0alpha2/include/../main/php_config.h:2415: note: this is the location of the previous definition #define WORDS_BIGENDIAN /**/ In file included from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:32: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c: In function 'php_mysqli_fetch_into_hash_aux': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:1183:94: note: in expansion of macro 'MYSQLI_LLU_SPEC' snprintf(tmp, sizeof(tmp), (mysql_fetch_field_direct(result, i)->flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval); ^~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:32: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:186:24: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LL_SPEC "%" PRId64 ^~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:1183:112: note: in expansion of macro 'MYSQLI_LL_SPEC' snprintf(tmp, sizeof(tmp), (mysql_fetch_field_direct(result, i)->flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval); ^~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:27: /usr/include/machine/_inttypes.h:53:25: note: format string is defined here #define PRId64 __PRI64"d" /* int64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/main/php.h:273, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:27: /usr/local/src/php/php-7.4.0alpha2/main/snprintf.h:105:18: warning: 'llval' may be used uninitialized in this function [-Wmaybe-uninitialized] #define snprintf ap_php_snprintf ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli.c:1167:18: note: 'llval' was declared here my_ulonglong llval; ^~~~~ /bin/sh /usr/local/src/php/php-7.4.0alpha2/libtool --silent --preserve-dup-deps --mode=compile gcc8 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/mysqli/ -I/usr/local/src/php/php-7.4.0alpha2/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php/php-7.4.0alpha2/include -I/usr/local/src/php/php-7.4.0alpha2/main -I/usr/local/src/php/php-7.4.0alpha2 -I/usr/local/src/php/php-7.4.0alpha2/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/src/php/php-7.4.0alpha2/ext/mbstring/libmbfl -I/usr/local/src/php/php-7.4.0alpha2/ext/mbstring/libmbfl/mbfl -I/usr/local/include/mysql -I/usr/local/src/php/php-7.4.0alpha2/TSRM -I/usr/local/src/php/php-7.4.0alpha2/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS -c /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo In file included from /usr/local/include/mysql/my_global.h:68, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:57, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:32: /usr/local/include/mysql/my_config.h:417: warning: "WORDS_BIGENDIAN" redefined #define WORDS_BIGENDIAN 1 In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_config.h:1, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:43, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/include/../main/php_config.h:2415: note: this is the location of the previous definition #define WORDS_BIGENDIAN /**/ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_affected_rows': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:156:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(rc); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'mysqli_stmt_fetch_libmysql': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:973:12: error: incompatible types when assigning to type 'zval *' {aka 'struct _zval_struct *'} from type 'zval' {aka 'struct _zval_struct'} result = stmt->result.vars[i]; ^ In file included from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:32: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:1064:83: note: in expansion of macro 'MYSQLI_LLU_SPEC' snprintf(tmp, sizeof(tmp), (stmt->stmt->fields[i].flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval); ^~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:32: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:186:24: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LL_SPEC "%" PRId64 ^~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:1064:101: note: in expansion of macro 'MYSQLI_LL_SPEC' snprintf(tmp, sizeof(tmp), (stmt->stmt->fields[i].flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval); ^~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:53:25: note: format string is defined here #define PRId64 __PRI64"d" /* int64_t */ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:1086:5: warning: implicit declaration of function 'ZEND_TRY_REF_ASSIGN_NULL'; did you mean 'ZEND_TRY_ASSIGN_NULL'? [-Wimplicit-function-declaration] ZEND_TRY_REF_ASSIGN_NULL(result); ^~~~~~~~~~~~~~~~~~~~~~~~ ZEND_TRY_ASSIGN_NULL /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:948:15: warning: variable 'uval' set but not used [-Wunused-but-set-variable] unsigned int uval; ^~~~ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_insert_id': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:1551:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(rc) ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_num_rows': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:1690:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(mysql_num_rows(result)); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_affected_rows': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:2048:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(rc) ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_insert_id': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:2140:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(rc) ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ In file included from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_num_rows': /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/php_mysqli_structs.h:185:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'my_ulonglong' {aka 'long long unsigned int'} [-Wformat=] #define MYSQLI_LLU_SPEC "%" PRIu64 ^~~ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:787:23: note: in definition of macro 'ZVAL_STR' zend_string *__s = (s); \ ^ /usr/local/src/php/php-7.4.0alpha2/Zend/zend_API.h:642:30: note: in expansion of macro 'RETVAL_STR' #define RETURN_STR(s) { RETVAL_STR(s); return; } ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:3: note: in expansion of macro 'RETURN_STR' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_priv.h:100:28: note: in expansion of macro 'MYSQLI_LLU_SPEC' RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \ ^~~~~~~~~~~~~~~ /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:2195:2: note: in expansion of macro 'MYSQLI_RETURN_LONG_INT' MYSQLI_RETURN_LONG_INT(rc) ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/inttypes.h:32, from /usr/local/src/php/php-7.4.0alpha2/main/php_stdint.h:72, from /usr/local/src/php/php-7.4.0alpha2/Zend/../TSRM/TSRM.h:23, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_portability.h:47, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend_types.h:25, from /usr/local/src/php/php-7.4.0alpha2/Zend/zend.h:27, from /usr/local/src/php/php-7.4.0alpha2/main/php.h:33, from /usr/local/src/php/php-7.4.0alpha2/ext/mysqli/mysqli_api.c:27: /usr/include/machine/_inttypes.h:100:25: note: format string is defined here #define PRIu64 __PRI64"u" /* uint64_t */ *** Error code 1 Stop. make: stopped in /usr/local/src/php/php-7.4.0alpha2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78237&edit=1

« previous php.bugs (#221571) next »