php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78237 It doesn't compile
Submitted: 2019-07-01 15:06 UTC Modified: 2019-07-01 15:21 UTC
From: luciano at mannucci dot org Assigned: nikic (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.4.0alpha2 OS: freebsd 11.2-RELEASE-p10
Private report: No CVE-ID: None
 [2019-07-01 15:06 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-01 15:21 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-07-01 15:21 UTC] nikic@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC