Bug #68382 [Com]: mysqlnd_memcache fails to compile

From: 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

« previous php.bugs (#216962) next »