Bug #68382 [Com]: mysqlnd_memcache fails to compile
| From: | miteugene at yandex dot ru | Date: | Mon, 10 Sep 2018 16:53:39 +0000 |
| Subject: | Bug #68382 [Com]: mysqlnd_memcache fails to compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216962@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68382&edit=1
ID: 68382
Comment by: miteugene at yandex dot ru
Reported by: cir_reg at mail dot ru
Summary: mysqlnd_memcache fails to compile
Status: Duplicate
Type: Bug
Package: *General Issues
Operating System: Centos7
PHP Version: 5.6.2
Block user comment: N
Private report: N
New Comment:
root@debian:/home/norsi# pecl install mysqlnd_memcache
downloading mysqlnd_memcache-1.0.1.tgz ...
Starting to download mysqlnd_memcache-1.0.1.tgz (30,072 bytes)
.....done: 30,072 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
building in /tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1
running: /tmp/pear/temp/mysqlnd_memcache/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main
-I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext
-I/usr/include/php/20170718/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20170718
checking for PHP installed headers prefix... /usr/include/php/20170718
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... gawk
checking whether to enable mysqlnd_memcache support... yes, shared
checking for libmemcached... yes, shared
checking for libmemcached location... /usr
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format...
func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1/libtool --mode=compile cc -I.
-I/tmp/pear/temp/mysqlnd_memcache -DPHP_ATOM_INC
-I/tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1/include
-I/tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1/main -I/tmp/pear/temp/mysqlnd_memcache
-I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM
-I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext
-I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c -o mysqlnd_memcache.lo
libtool: compile: cc -I. -I/tmp/pear/temp/mysqlnd_memcache -DPHP_ATOM_INC
-I/tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1/include
-I/tmp/pear/temp/pear-build-rootIMww7R/mysqlnd_memcache-1.0.1/main -I/tmp/pear/temp/mysqlnd_memcache
-I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM
-I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext
-I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c -fPIC -DPIC -o .libs/mysqlnd_memcache.o
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function âmymem_result_fetch_intoâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:270:3: warning: implicit declaration of function
âALLOC_INIT_ZVALâ [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(data);
^~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:274:85: error: macro
"zend_hash_next_index_insert" passed 4 arguments, but takes just 2
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &data, sizeof(zval *), NULL);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:274:4: error:
âzend_hash_next_index_insertâ undeclared (first use in this function)
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &data, sizeof(zval *), NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:274:4: note: each undeclared identifier is
reported only once for each function it appears in
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:278:165: error: macro "zend_hash_add"
passed 6 arguments, but takes just 3
zend_hash_add(Z_ARRVAL_P(return_value), result_data->mapping->value_columns.v[i],
strlen(result_data->mapping->value_columns.v[i])+1, &data, sizeof(zval *), NULL);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:278:4: error: âzend_hash_addâ
undeclared (first use in this function)
zend_hash_add(Z_ARRVAL_P(return_value), result_data->mapping->value_columns.v[i],
strlen(result_data->mapping->value_columns.v[i])+1, &data, sizeof(zval *), NULL);
^~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:37:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_variables.h:87:48: warning: passing argument 1 of
â_zval_ptr_dtorâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:280:3: note: in expansion of macro
âzval_ptr_dtorâ
zval_ptr_dtor(&data);
^~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:79:15: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval ** {aka struct _zval_struct **}â
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:289:29: error: macro "ZVAL_STRING"
passed 3 arguments, but takes just 2
ZVAL_STRING(data, value, 1);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:289:3: error: âZVAL_STRINGâ undeclared
(first use in this function)
ZVAL_STRING(data, value, 1);
^~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:293:85: error: macro
"zend_hash_next_index_insert" passed 4 arguments, but takes just 2
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &data, sizeof(zval *), NULL);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:297:165: error: macro "zend_hash_add"
passed 6 arguments, but takes just 3
zend_hash_add(Z_ARRVAL_P(return_value), result_data->mapping->value_columns.v[i],
strlen(result_data->mapping->value_columns.v[i])+1, &data, sizeof(zval *), NULL);
^
In file included from /usr/include/php/20170718/Zend/zend.h:37:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_variables.h:87:48: warning: passing argument 1 of
â_zval_ptr_dtorâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:299:3: note: in expansion of macro
âzval_ptr_dtorâ
zval_ptr_dtor(&data);
^~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:79:15: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval ** {aka struct _zval_struct **}â
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:306:2: warning: implicit declaration of function
âCONN_SET_STATEâ [-Wimplicit-function-declaration]
CONN_SET_STATE(result->conn, CONN_READY);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function âmymem_result_fetch_allâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:362:83: error: macro
"zend_hash_next_index_insert" passed 4 arguments, but takes just 2
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &row, sizeof(zval *), NULL);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:362:3: error:
âzend_hash_next_index_insertâ undeclared (first use in this function)
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &row, sizeof(zval *), NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âmymem_result_fetch_field_dataâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:376:48: error: macro "ZVAL_STRING"
passed 3 arguments, but takes just 2
ZVAL_STRING(return_value, result_data->data, 1);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:376:2: error: âZVAL_STRINGâ undeclared
(first use in this function)
ZVAL_STRING(return_value, result_data->data, 1);
^~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: At top level:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:486:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_use_result, /* func_mysqlnd_res__use_result use_result; */
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:486:2: note: (near initialization for
âmymem_query_result_funcs.fetch_intoâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:487:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_store_result, /* func_mysqlnd_res__store_result store_result; */
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:487:2: note: (near initialization for
âmymem_query_result_funcs.fetch_row_câ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:488:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_into, /* func_mysqlnd_res__fetch_into fetch_into; */
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:488:2: note: (near initialization for
âmymem_query_result_funcs.fetch_allâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:489:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_row_c, /* func_mysqlnd_res__fetch_row_c fetch_row_c; */
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:489:2: note: (near initialization for
âmymem_query_result_funcs.fetch_field_dataâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:490:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_all, /* func_mysqlnd_res__fetch_all fetch_all; */
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:490:2: note: (near initialization for
âmymem_query_result_funcs.num_rowsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:491:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_field_data, /* func_mysqlnd_res__fetch_field_data fetch_field_data; */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:491:2: note: (near initialization for
âmymem_query_result_funcs.num_fieldsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:492:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_num_rows, /* func_mysqlnd_res__num_rows num_rows; */
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:492:2: note: (near initialization for
âmymem_query_result_funcs.skip_resultâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:493:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_num_fields, /* func_mysqlnd_res__num_fields num_fields; */
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:493:2: note: (near initialization for
âmymem_query_result_funcs.seek_dataâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:495:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_seek_data, /* func_mysqlnd_res__seek_data seek_data; */
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:495:2: note: (near initialization for
âmymem_query_result_funcs.field_tellâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:496:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_seek_field, /* func_mysqlnd_res__seek_field seek_field; */
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:496:2: note: (near initialization for
âmymem_query_result_funcs.fetch_fieldâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:497:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_field_tell, /* func_mysqlnd_res__field_tell field_tell; */
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:497:2: note: (near initialization for
âmymem_query_result_funcs.fetch_field_directâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:499:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_field_direct, /* func_mysqlnd_res__fetch_field_direct fetch_field_direct; */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:499:2: note: (near initialization for
âmymem_query_result_funcs.read_result_metadataâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:500:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_fields, /* func_mysqlnd_res__fetch_fields fetch_fields; */
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:500:2: note: (near initialization for
âmymem_query_result_funcs.fetch_lengthsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:502:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_fetch_lengths, /* func_mysqlnd_res__fetch_lengths fetch_lengths; */
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:502:2: note: (near initialization for
âmymem_query_result_funcs.free_result_buffersâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:506:2: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
mymem_result_free_result, /* func_mysqlnd_res__free_result free_result; */
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:506:2: note: (near initialization for
âmymem_query_result_funcs.result_meta_initâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:515:2: warning: excess elements in struct
initializer
NULL, /* func_mysqlnd_res__result_meta_init result_meta_init; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:515:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:517:2: warning: excess elements in struct
initializer
NULL, /* void * unused1; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:517:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:518:2: warning: excess elements in struct
initializer
NULL, /* void * unused2; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:518:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:519:2: warning: excess elements in struct
initializer
NULL, /* void * unused3; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:519:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:520:2: warning: excess elements in struct
initializer
NULL, /* void * unused4; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:520:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:521:2: warning: excess elements in struct
initializer
NULL, /* void * unused5; */
^~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:521:2: note: (near initialization for
âmymem_query_result_funcsâ)
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function âmymem_verify_patternsâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:574:2: warning: implicit declaration of function
âINIT_ZVALâ [-Wimplicit-function-declaration]
INIT_ZVAL(return_value); /* This will be a long or bool, no need for a zval_dtor */
^~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:583:6: error: too many arguments to function
âzend_hash_index_findâ
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 2, (void**)&table) == FAILURE ||
Z_TYPE_PP(table) != IS_STRING) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:170:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:583:67: warning: comparison between pointer and
integer
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 2, (void**)&table) == FAILURE ||
Z_TYPE_PP(table) != IS_STRING) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:583:81: warning: implicit declaration of function
âZ_TYPE_PPâ [-Wimplicit-function-declaration]
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 2, (void**)&table) == FAILURE ||
Z_TYPE_PP(table) != IS_STRING) {
^~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:588:6: error: too many arguments to function
âzend_hash_index_findâ
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 3, (void**)&id_field) == FAILURE ||
Z_TYPE_PP(id_field) != IS_STRING) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:170:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:588:70: warning: comparison between pointer and
integer
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 3, (void**)&id_field) == FAILURE ||
Z_TYPE_PP(id_field) != IS_STRING) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:593:70: warning: implicit declaration of function
âZ_STRVAL_PPâ [-Wimplicit-function-declaration]
key_len = spprintf(&key, 0, "%s.%s.%s", conn->connect_or_select_db,
Z_STRVAL_PP(table), Z_STRVAL_PP(id_field));
^~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:596:48: warning: passing argument 2 of
âzend_hash_findâ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(&connection_data->mapping, key, key_len+1, (void**)mapping) == FAILURE)
{
^~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: expected âzend_string * {aka struct
_zend_string *}â but argument is of type âchar *â
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:596:6: error: too many arguments to function
âzend_hash_findâ
if (zend_hash_find(&connection_data->mapping, key, key_len+1, (void**)mapping) == FAILURE)
{
^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:596:81: warning: comparison between pointer and
integer
if (zend_hash_find(&connection_data->mapping, key, key_len+1, (void**)mapping) == FAILURE)
{
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:603:6: error: too many arguments to function
âzend_hash_index_findâ
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 5, (void**)&value) == FAILURE ||
Z_TYPE_PP(value) != IS_STRING) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:170:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:603:67: warning: comparison between pointer and
integer
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 5, (void**)&value) == FAILURE ||
Z_TYPE_PP(value) != IS_STRING) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:604:7: error: too many arguments to function
âzend_hash_index_findâ
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 4, (void**)&value) == FAILURE ||
Z_TYPE_PP(value) != IS_STRING) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:170:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:604:68: warning: comparison between pointer and
integer
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 4, (void**)&value) == FAILURE ||
Z_TYPE_PP(value) != IS_STRING) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:610:6: error: too many arguments to function
âzend_hash_index_findâ
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 1, (void**)&tmp) == FAILURE || Z_TYPE_PP(tmp) !=
IS_STRING) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:170:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:610:65: warning: comparison between pointer and
integer
if (zend_hash_index_find(Z_ARRVAL_P(subpats), 1, (void**)&tmp) == FAILURE || Z_TYPE_PP(tmp) !=
IS_STRING) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:615:30: warning: passing argument 1 of
âmymem_check_field_listâ makes pointer from integer without a cast [-Wint-conversion]
if (!mymem_check_field_list(Z_STRVAL_PP(tmp), (**mapping)->value_columns.v,
(**mapping)->value_columns.num)) {
^~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:528:18: note: expected âchar *â but
argument is of type âintâ
static zend_bool mymem_check_field_list(char *list_s, char **list_c, int list_c_len) /* {{{ */
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function âmymem_notify_decisionâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:664:25: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âretval_ptr_ptrâ
conn_data->callback.fci.retval_ptr_ptr = &retval;
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:666:33: warning: assignment from incompatible
pointer type [-Wincompatible-pointer-types]
conn_data->callback.fci.params = args;
^
In file included from /usr/include/php/20170718/Zend/zend.h:37:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_variables.h:87:48: warning: passing argument 1 of
â_zval_ptr_dtorâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:669:3: note: in expansion of macro
âzval_ptr_dtorâ
zval_ptr_dtor(&retval);
^~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:79:15: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval ** {aka struct _zval_struct **}â
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:87:48: warning: passing argument 1 of
â_zval_ptr_dtorâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:671:2: note: in expansion of macro
âzval_ptr_dtorâ
zval_ptr_dtor(&arg);
^~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:79:15: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval ** {aka struct _zval_struct **}â
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âmysqlnd_mymem_conn_data_query_pubâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:706:27: warning: implicit declaration of function
âZ_STRLEN_PPâ [-Wimplicit-function-declaration]
key_len = prefix_len + Z_STRLEN_PP(query_key);
^~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:709:27: warning: passing argument 2 of
âmemcpyâ makes pointer from integer without a cast [-Wint-conversion]
memcpy(key+prefix_len, Z_STRVAL_PP(query_key), Z_STRLEN_PP(query_key));
^~~~~~~~~~~
In file included from /usr/include/php/20170718/main/php_config.h:2591:0,
from /usr/include/php/20170718/main/php.h:34,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/string.h:42:14: note: expected âconst void * restrictâ but argument is of
type âintâ
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:714:8: warning: assignment makes pointer from
integer without a cast [-Wint-conversion]
key = Z_STRVAL_PP(query_key);
^
In file included from /usr/include/php/20170718/Zend/zend.h:37:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âmymem_free_connection_data_dataâ:
/usr/include/php/20170718/Zend/zend_variables.h:87:48: warning: passing argument 1 of
â_zval_ptr_dtorâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:781:3: note: in expansion of macro
âzval_ptr_dtorâ
zval_ptr_dtor(&conn_data->connection.zv);
^~~~~~~~~~~~~
/usr/include/php/20170718/Zend/zend_variables.h:79:15: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval ** {aka struct _zval_struct **}â
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:789:42: error: incompatible types when assigning
to type âzval {aka struct _zval_struct}â from type âvoid *â
conn_data->callback.fci.function_name = NULL;
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:790:31: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âobject_ptrâ; did you mean âobjectâ?
if (conn_data->callback.fci.object_ptr) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:37:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:791:43: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âobject_ptrâ; did you mean âobjectâ?
zval_ptr_dtor(&conn_data->callback.fci.object_ptr);
^
/usr/include/php/20170718/Zend/zend_variables.h:87:49: note: in definition of macro
âzval_ptr_dtorâ
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:792:28: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âobject_ptrâ; did you mean âobjectâ?
conn_data->callback.fci.object_ptr = NULL;
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function âmymem_init_mysqlndâ:
/usr/include/php/20170718/Zend/zend_hash.h:75:111: warning: passing argument 3 of
â_zend_hash_initâ from incompatible pointer type [-Wincompatible-pointer-types]
#define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent)
_zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:979:2: note: in expansion of macro
âzend_hash_initâ
zend_hash_init(&plugin_data_p->mapping, mysqlnd_num_rows(res), 0, mymem_free_mapping, 0);
^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:71:29: note: expected âdtor_func_t {aka void
(*)(struct _zval_struct *)}â but argument is of type âvoid (*)(void *)â
ZEND_API void ZEND_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor,
zend_bool persistent ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1045:96: error: macro "zend_hash_add"
passed 6 arguments, but takes just 3
zend_hash_add(&plugin_data_p->mapping, key, key_len+1, &mapping,
sizeof(mymem_mapping*), NULL);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1045:3: error: âzend_hash_addâ
undeclared (first use in this function)
zend_hash_add(&plugin_data_p->mapping, key, key_len+1, &mapping,
sizeof(mymem_mapping*), NULL);
^~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âzif_mysqlnd_memcache_setâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1073:23: error: too few arguments to function
âzval_to_mysqlndâ
if (!(mysqlnd_conn = zval_to_mysqlnd(mysqlnd_conn_zv TSRMLS_CC))) {
^~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:36:0:
/usr/include/php/20170718/ext/mysqlnd/mysqlnd_reverse_api.h:36:18: note: declared here
PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned
int * save_client_api_capabilities);
^~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1083:43: warning: implicit declaration of
function âzend_object_store_get_objectâ [-Wimplicit-function-declaration]
memcached_obj = (fake_memcached_object *)zend_object_store_get_object(memcached_zv TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1083:18: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
memcached_obj = (fake_memcached_object *)zend_object_store_get_object(memcached_zv TSRMLS_CC);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1104:60: warning: passing argument 1 of
âpcre_get_compiled_regex_cacheâ from incompatible pointer type
[-Wincompatible-pointer-types]
conn_data->regexp.pattern = pcre_get_compiled_regex_cache(conn_data->regexp.str,
conn_data->regexp.len TSRMLS_CC);
^~~~~~~~~
In file included from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:39:0:
/usr/include/php/20170718/ext/pcre/php_pcre.h:59:26: note: expected âzend_string * {aka struct
_zend_string *}â but argument is of type âchar *â
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1104:30: error: too many arguments to function
âpcre_get_compiled_regex_cacheâ
conn_data->regexp.pattern = pcre_get_compiled_regex_cache(conn_data->regexp.str,
conn_data->regexp.len TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:39:0:
/usr/include/php/20170718/ext/pcre/php_pcre.h:59:26: note: declared here
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:29:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1107:14: error: incompatible type for argument 1
of âzval_addref_pâ
Z_ADDREF_P(fci.function_name);
^
/usr/include/php/20170718/Zend/zend_types.h:857:41: note: in definition of macro
âZ_ADDREF_Pâ
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^~
/usr/include/php/20170718/Zend/zend_types.h:890:36: note: expected âzval * {aka struct
_zval_struct *}â but argument is of type âzval {aka struct _zval_struct}â
static zend_always_inline uint32_t zval_addref_p(zval* pz) {
^~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1108:10: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âobject_ptrâ; did you mean âobjectâ?
if (fci.object_ptr) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:29:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1109:18: error: âzend_fcall_info {aka struct
_zend_fcall_info}â has no member named âobject_ptrâ; did you mean âobjectâ?
Z_ADDREF_P(fci.object_ptr);
^
/usr/include/php/20170718/Zend/zend_types.h:857:41: note: in definition of macro
âZ_ADDREF_Pâ
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âmymemm_add_mapping_to_zvâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1135:24: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
ADD_MAPPING_STR(prefix);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1134:28: error: âadd_assoc_stringâ
undeclared (first use in this function)
#define ADD_MAPPING_STR(f) add_assoc_string(current, #f, mapping->f, 1)
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1135:2: note: in expansion of macro
âADD_MAPPING_STRâ
ADD_MAPPING_STR(prefix);
^~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1136:29: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
ADD_MAPPING_STR(schema_name);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1137:28: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
ADD_MAPPING_STR(table_name);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1138:31: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
ADD_MAPPING_STR(id_field_name);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1139:27: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
ADD_MAPPING_STR(separator);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1142:3: error: too many arguments to function
âadd_next_index_stringâ
add_next_index_string(fields, mapping->value_columns.v[i], 1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/main/php.h:40:0,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_API.h:450:14: note: declared here
ZEND_API int add_next_index_string(zval *arg, const char *str);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âzif_mysqlnd_memcache_get_configâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1164:23: error: too few arguments to function
âzval_to_mysqlndâ
if (!(mysqlnd_conn = zval_to_mysqlnd(mysqlnd_conn_zv TSRMLS_CC))) {
^~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:36:0:
/usr/include/php/20170718/ext/mysqlnd/mysqlnd_reverse_api.h:36:18: note: declared here
PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned
int * save_client_api_capabilities);
^~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1177:92: error: macro
"add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(return_value, "pattern", conn_data->regexp.str,
conn_data->regexp.len, 1);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1177:2: error: âadd_assoc_stringlâ
undeclared (first use in this function)
add_assoc_stringl(return_value, "pattern", conn_data->regexp.str,
conn_data->regexp.len, 1);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1182:53: warning: passing argument 2 of
âzend_hash_apply_with_argumentâ from incompatible pointer type
[-Wincompatible-pointer-types]
zend_hash_apply_with_argument(&conn_data->mapping, mymemm_add_mapping_to_zv, mapping
TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:147:29: note: expected âapply_func_arg_t {aka int
(*)(struct _zval_struct *, void *)}â but argument is of type âint (*)(void *, void
*)â
ZEND_API void ZEND_FASTCALL zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t
apply_func, void *);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1185:84: error: macro
"add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "mapping_query", (char*)conn_data->mapping_query, 1);
^
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1185:2: error: âadd_assoc_stringâ
undeclared (first use in this function)
add_assoc_string(return_value, "mapping_query", (char*)conn_data->mapping_query, 1);
^~~~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c: In function
âzm_startup_mysqlnd_memcacheâ:
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1240:38: warning: passing argument 2 of
âzend_hash_findâ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(CG(class_table), "memcached", sizeof("memcached"), (void
**) &memcached_ce)==FAILURE) {
^~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: expected âzend_string * {aka struct
_zend_string *}â but argument is of type âchar *â
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1240:6: error: too many arguments to function
âzend_hash_findâ
if (zend_hash_find(CG(class_table), "memcached", sizeof("memcached"), (void
**) &memcached_ce)==FAILURE) {
^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:26:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1240:96: warning: comparison between pointer and
integer
if (zend_hash_find(CG(class_table), "memcached", sizeof("memcached"), (void
**) &memcached_ce)==FAILURE) {
^~
/tmp/pear/temp/mysqlnd_memcache/mysqlnd_memcache.c:1264:28: warning: assignment from incompatible
pointer type [-Wincompatible-pointer-types]
conn_data_methods->query = MYSQLND_METHOD(mymem_conn_data, query);
^
Makefile:193: recipe for target 'mysqlnd_memcache.lo' failed
make: *** [mysqlnd_memcache.lo] Error 1
ERROR: `make' failed
Previous Comments:
------------------------------------------------------------------------
[2015-03-29 14:52:51] tyrael@php.net
I already fixed this problem in HEAD, but we need a new release with the fix:
https://bugs.php.net/bug.php?id=68520
------------------------------------------------------------------------
[2014-11-10 09:34:51] aharvey@php.net
Please re-raise this bug against the mysqlnd_memcache package: http://pecl.php.net/package/mysqlnd_memcache
------------------------------------------------------------------------
[2014-11-09 16:16:31] cir_reg at mail dot ru
Description:
------------
make: *** [mysqlnd_memcache.lo] Error 1
ERROR: `make' failed
Test script:
---------------
[root@centos7 ~]# pecl install mysqlnd_memcache
downloading mysqlnd_memcache-1.0.1.tgz ...
Starting to download mysqlnd_memcache-1.0.1.tgz (30,072 bytes)
....done: 22,984 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
building in /var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1
running: /var/tmp/mysqlnd_memcache/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM
-I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable mysqlnd_memcache support... yes, shared
checking for libmemcached... yes, shared
checking for libmemcached location... /usr
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format...
func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format...
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1/libtool --mode=compile cc -I.
-I/var/tmp/mysqlnd_memcache -DPHP_ATOM_INC
-I/var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1/include
-I/var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1/main -I/var/tmp/mysqlnd_memcache
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c -o mysqlnd_memcache.lo
libtool: compile: cc -I. -I/var/tmp/mysqlnd_memcache -DPHP_ATOM_INC
-I/var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1/include
-I/var/tmp/pear-build-rootfAk5MY/mysqlnd_memcache-1.0.1/main -I/var/tmp/mysqlnd_memcache
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c -fPIC -DPIC -o .libs/mysqlnd_memcache.o
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:486:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_use_result, /* func_mysqlnd_res__use_result use_result; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:486:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_into') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:487:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_store_result, /* func_mysqlnd_res__store_result store_result; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:487:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_row_c') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:488:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_into, /* func_mysqlnd_res__fetch_into fetch_into; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:488:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_all') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:489:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_row_c, /* func_mysqlnd_res__fetch_row_c fetch_row_c; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:489:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_field_data') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:490:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_all, /* func_mysqlnd_res__fetch_all fetch_all; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:490:2: warning: (near initialization for
'mymem_query_result_funcs.num_rows') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:491:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_field_data, /* func_mysqlnd_res__fetch_field_data fetch_field_data; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:491:2: warning: (near initialization for
'mymem_query_result_funcs.num_fields') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:492:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_num_rows, /* func_mysqlnd_res__num_rows num_rows; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:492:2: warning: (near initialization for
'mymem_query_result_funcs.skip_result') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:493:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_num_fields, /* func_mysqlnd_res__num_fields num_fields; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:493:2: warning: (near initialization for
'mymem_query_result_funcs.seek_data') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:495:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_seek_data, /* func_mysqlnd_res__seek_data seek_data; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:495:2: warning: (near initialization for
'mymem_query_result_funcs.field_tell') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:496:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_seek_field, /* func_mysqlnd_res__seek_field seek_field; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:496:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_field') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:497:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_field_tell, /* func_mysqlnd_res__field_tell field_tell; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:497:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_field_direct') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:499:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_field_direct, /* func_mysqlnd_res__fetch_field_direct fetch_field_direct; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:499:2: warning: (near initialization for
'mymem_query_result_funcs.read_result_metadata') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:500:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_fields, /* func_mysqlnd_res__fetch_fields fetch_fields; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:500:2: warning: (near initialization for
'mymem_query_result_funcs.fetch_lengths') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:502:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_fetch_lengths, /* func_mysqlnd_res__fetch_lengths fetch_lengths; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:502:2: warning: (near initialization for
'mymem_query_result_funcs.free_result_buffers') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:506:2: warning: initialization from incompatible
pointer type [enabled by default]
mymem_result_free_result, /* func_mysqlnd_res__free_result free_result; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:506:2: warning: (near initialization for
'mymem_query_result_funcs.result_meta_init') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:515:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* func_mysqlnd_res__result_meta_init result_meta_init; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:515:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:517:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* void * unused1; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:517:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:518:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* void * unused2; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:518:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:519:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* void * unused3; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:519:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:520:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* void * unused4; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:520:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:521:2: warning: excess elements in struct initializer
[enabled by default]
NULL, /* void * unused5; */
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:521:2: warning: (near initialization for
'mymem_query_result_funcs') [enabled by default]
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c: In function 'zif_mysqlnd_memcache_set':
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:1073:2: error: too few arguments to function
'zval_to_mysqlnd'
if (!(mysqlnd_conn = zval_to_mysqlnd(mysqlnd_conn_zv TSRMLS_CC))) {
^
In file included from /var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:36:0:
/usr/include/php/ext/mysqlnd/mysqlnd_reverse_api.h:37:18: note: declared here
PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned
int * save_client_api_capabilities TSRMLS_DC);
^
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c: In function
'zif_mysqlnd_memcache_get_config':
/var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:1164:2: error: too few arguments to function
'zval_to_mysqlnd'
if (!(mysqlnd_conn = zval_to_mysqlnd(mysqlnd_conn_zv TSRMLS_CC))) {
^
In file included from /var/tmp/mysqlnd_memcache/mysqlnd_memcache.c:36:0:
/usr/include/php/ext/mysqlnd/mysqlnd_reverse_api.h:37:18: note: declared here
PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned
int * save_client_api_capabilities TSRMLS_DC);
^
make: *** [mysqlnd_memcache.lo] Error 1
ERROR: `make' failed
[root@centos7dev ~]# make: *** [mysqlnd_memcache.lo] Error 1
-bash: make:: command not found
[root@centos7dev ~]# ERROR: `make' failed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68382&edit=1