D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/php-newt-1.2.9-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xQCE3x + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf newt-1.2.9 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/newt-1.2.9.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd newt-1.2.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RLQyS5 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd newt-1.2.9 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection) + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libdir=lib64 --with-newt=shared,/usr 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... lib64 checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-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/extensions checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 1.0.2 (ok) checking for gawk... gawk checking for newt support... yes, shared checking for the location of libcurses... no checking for the location of libslang... no checking for newtInit in -lnewt... yes checking for newtListitem in -lnewt... no checking for newtListitemSet in -lnewt... no checking for newtListitemGetData in -lnewt... no checking for newtResizeScreen in -lnewt... yes checking for newtListboxItemCount in -lnewt... yes checking for newtSetHelpCallback in -lnewt... yes checking for newtCursorOff in -lnewt... yes checking for newtCursorOn in -lnewt... yes checking for newtCheckboxTreeGetCurrent in -lnewt... yes checking for newtCheckboxTreeSetCurrent in -lnewt... yes checking for newtCheckboxTreeSetEntry in -lnewt... yes checking for newtCheckboxTreeSetWidth in -lnewt... yes checking for newtCheckboxTreeGetEntryValue in -lnewt... yes checking for newtCheckboxTreeSetEntryValue in -lnewt... yes checking for newtFormSetTimer in -lnewt... yes checking if newtExistStruct has u.watch... yes checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... 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 creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 /bin/sh /home/pterjan/rpmbuild/BUILD/newt-1.2.9/libtool --mode=compile cc -I. -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/include -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/main -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c -o newt.lo cc -I. -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/include -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/main -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c -fPIC -DPIC -o .libs/newt.o In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'php_newt_free_cb': /usr/include/php/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:335:3: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&cb->callback); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:336:3: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&cb->data); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'php_newt_fetch_resource': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:346:2: error: unknown type name 'zend_rsrc_list_entry'; did you mean 'zend_rsrc_list_dtors_entry'? zend_rsrc_list_entry *le; ^~~~~~~~~~~~~~~~~~~~ zend_rsrc_list_dtors_entry /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:354:4: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL (rsrc); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:358:69: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (&EG(regular_list), (void **) &le) == SUCCESS) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:358:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (&EG(regular_list), (void **) &le) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:358:9: note: each undeclared identifier is reported only once for each function it appears in /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:359:51: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:359:57: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'zend_ulong * {aka long unsigned int *}' but argument is of type 'uint * {aka unsigned int *}' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:359:67: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'HashPosition * {aka unsigned int *}' but argument is of type 'ulong * {aka long unsigned int *}' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:359:3: error: too many arguments to function 'zend_hash_get_current_key_ex' zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:195:30: note: declared here ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:360:8: error: request for member 'type' in something not a structure or union if(le->type == le_type && le->ptr == data) { ^~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:360:31: error: request for member 'ptr' in something not a structure or union if(le->type == le_type && le->ptr == data) { ^~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:362:20: error: lvalue required as left operand of assignment Z_TYPE_P (rsrc) = IS_RESOURCE; ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'newt_comp_callback_wrapper': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:617:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:3: error: too many arguments to function 'zend_hash_find' zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:617:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:626:77: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 2, args TSRMLS_CC) == SUCCESS) { ^ /usr/include/php/Zend/zend_API.h:479:73: note: in definition of macro 'call_user_function' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1) ^~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:631:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[0]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'newt_entry_filter_callback_wrapper': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:646:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:3: error: too many arguments to function 'zend_hash_find' zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:646:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:658:38: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING (args[2], (char*)&ch, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:658:3: error: 'ZVAL_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_LINE'? ZVAL_STRING (args[2], (char*)&ch, 1); ^~~~~~~~~~~ ZEND_STR_LINE In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:667:77: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 4, args TSRMLS_CC) == FAILURE ) { ^ /usr/include/php/Zend/zend_API.h:479:73: note: in definition of macro 'call_user_function' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1) ^~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:678:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[0]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:679:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[2]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:680:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[3]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'newt_suspend_callback_wrapper': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:697:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:3: error: too many arguments to function 'zend_hash_find' zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:697:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK (cb_key, cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:702:77: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 1, args TSRMLS_CC) == SUCCESS) { ^ /usr/include/php/Zend/zend_API.h:479:73: note: in definition of macro 'call_user_function' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1) ^~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'newt_help_callback_wrapper': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:721:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK ("php_newt_help_cb_key", cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:418:3: error: too many arguments to function 'zend_hash_find' zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:721:2: note: in expansion of macro 'PHP_NEWT_FETCH_CALLBACK' PHP_NEWT_FETCH_CALLBACK ("php_newt_help_cb_key", cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:729:31: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING (args[1], help, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:729:2: error: 'ZVAL_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_LINE'? ZVAL_STRING (args[1], help, 1); ^~~~~~~~~~~ ZEND_STR_LINE In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:731:77: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 2, args TSRMLS_CC) == SUCCESS) { ^ /usr/include/php/Zend/zend_API.h:479:73: note: in definition of macro 'call_user_function' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1) ^~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:737:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[0]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:738:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor (&args[1]); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'newt_call_php_function': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:750:39: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(z_func_name, func_name, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:750:2: error: 'ZVAL_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_LINE'? ZVAL_STRING(z_func_name, func_name, 1); ^~~~~~~~~~~ ZEND_STR_LINE In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:752:67: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function_ex(EG(function_table), NULL, z_func_name, ret_val, argc, args, 0, NULL TSRMLS_CC) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:481:48: note: in definition of macro 'call_user_function_ex' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation) ^~~~~~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:752:82: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (call_user_function_ex(EG(function_table), NULL, z_func_name, ret_val, argc, args, 0, NULL TSRMLS_CC) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:481:73: note: in definition of macro 'call_user_function_ex' _call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation) ^~~~~~ /usr/include/php/Zend/zend_API.h:476:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:110: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) ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:756:2: note: in expansion of macro 'zval_ptr_dtor' zval_ptr_dtor(&z_func_name); ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:100: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); ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_set_suspend_callback': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:935:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL (&z_callback); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:936:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:936:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:324:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [-Wincompatible-pointer-types] #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:936:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:253:29: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:939:39: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [-Wincompatible-pointer-types] if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_API.h:316:20: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name); ^~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:954:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:412:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:954:2: note: in expansion of macro 'PHP_NEWT_STORE_CALLBACK' PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_set_help_callback': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:975:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL (&z_callback); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:976:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:976:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:324:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [-Wincompatible-pointer-types] #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:976:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:253:29: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:979:39: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [-Wincompatible-pointer-types] if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_API.h:316:20: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name); ^~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:991:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:412:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:991:2: note: in expansion of macro 'PHP_NEWT_STORE_CALLBACK' PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_compact_button': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1111:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE'; did you mean 'ZEND_MAX_RESERVED_RESOURCES'? [-Wimplicit-function-declaration] ZEND_REGISTER_RESOURCE (return_value, button, le_newt_comp); ^~~~~~~~~~~~~~~~~~~~~~ ZEND_MAX_RESERVED_RESOURCES /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_get_value': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1181:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE'; did you mean 'ZEND_FETCH_DIM_R'? [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~~~~~~~ ZEND_FETCH_DIM_R /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1181:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1185:28: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(ret_value, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1185:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'? RETURN_STRING(ret_value, 1); ^~~~~~~~~~~~~ ZEND_STR_STRING /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_set_value': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1208:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_set_flags': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1227:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_radiobutton': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1252:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(prev_button, newtComponent, &z_prev_button, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_radio_get_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1274:34: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(set_member, newtComponent, &z_set_member, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_label_set_text': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1413:29: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(label, newtComponent, &z_label, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_scrollbar_set': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1453:33: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(scrollbar, newtComponent, &z_scrollbar, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_get_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1489:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1490:2: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA((ulong) newtListboxGetCurrent (listbox), return_value); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_set_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1507:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_set_current_by_key': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1526:32: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 PHP_NEWT_FETCH_KEY (z_key, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:396:10: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (&NEWT_G(data), (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1526:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_key, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1526:32: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 PHP_NEWT_FETCH_KEY (z_key, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:399:5: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? zend_hash_get_current_key(&NEWT_G(data), NULL, &key, 0); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1526:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_key, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1528:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_set_entry': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1548:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_set_width': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1566:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_set_data': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1587:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1587:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1587:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1587:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1589:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_append_entry': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1610:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1610:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1610:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1610:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1612:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_insert_entry': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1633:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, data_key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1633:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, data_key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1633:39: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, data_key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1633:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, data_key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1634:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key_key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1634:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key_key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1634:37: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_key, key_key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1636:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_delete_entry': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1655:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1655:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1655:33: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_key, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1655:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1657:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_clear': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1674:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_get_entry': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1696:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1702:32: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING (z_text, text, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1702:4: error: 'ZVAL_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_LINE'? ZVAL_STRING (z_text, text, 1); ^~~~~~~~~~~ ZEND_STR_LINE /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1707:3: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA (key, z_data); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_get_selection': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1728:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1734:4: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA (retval[i], z_val); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1735:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1735:4: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ _zend_hash_next_index_insert /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_clear_selection': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1755:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_select_item': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1775:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1775:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1775:33: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_key, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1775:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_key, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1777:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_listbox_item_count': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1795:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_get_selection': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1863:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1869:4: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA (retval[i], z_val); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1870:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1870:4: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ _zend_hash_next_index_insert /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_get_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1891:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1892:2: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA ((ulong) newtCheckboxTreeGetCurrent (checkboxtree), return_value); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_set_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1911:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1913:33: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 PHP_NEWT_FETCH_KEY (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:396:10: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (&NEWT_G(data), (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1913:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_data, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1913:33: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 PHP_NEWT_FETCH_KEY (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:399:5: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? zend_hash_get_current_key(&NEWT_G(data), NULL, &key, 0); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1913:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_data, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_get_multi_selection': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1942:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:386:6: error: too many arguments to function 'zend_hash_index_find' if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1948:4: note: in expansion of macro 'PHP_NEWT_FETCH_DATA' PHP_NEWT_FETCH_DATA (retval[i], z_val); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1949:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1949:4: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ _zend_hash_next_index_insert In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_add_item': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1977:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1982:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1984:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1984:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1984:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1984:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1993:7: warning: implicit declaration of function 'Z_TYPE_PP'; did you mean 'Z_TYPE_P'? [-Wimplicit-function-declaration] if (Z_TYPE_PP(args[i]) != IS_LONG) { ^~~~~~~~~ Z_TYPE_P /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1999:26: warning: implicit declaration of function 'Z_LVAL_PP'; did you mean 'Z_LVAL_P'? [-Wimplicit-function-declaration] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^~~~~~~~~ Z_LVAL_P /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:1999:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_add_array': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2028:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2030:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2030:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2030:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2030:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2037:77: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (Z_ARRVAL_P(z_indexes), (void **)&z_index) == SUCCESS) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2037:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (Z_ARRVAL_P(z_indexes), (void **)&z_index) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_find_item': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2079:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2081:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2081:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2081:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2081:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2090:18: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref (&z_val); ^ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2091:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL); ^ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2092:4: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL (&z_val); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_set_entry': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2116:37: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkbox_tree, newtComponent, &z_checkbox_tree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2118:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2118:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2118:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2118:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_set_width': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2138:37: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkbox_tree, newtComponent, &z_checkbox_tree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_get_entry_value': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:374:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL(&z_data); \ ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2160:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref(&z_data); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2160:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2160:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2 PHP_NEWT_STORE_DATA (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:377:3: error: 'zend_hash_next_index_insert' undeclared (first use in this function); did you mean '_zend_hash_next_index_insert'? zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2160:2: note: in expansion of macro 'PHP_NEWT_STORE_DATA' PHP_NEWT_STORE_DATA (z_data, key); ^~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2162:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2166:29: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING (ret_value, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2166:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'? RETURN_STRING (ret_value, 1); ^~~~~~~~~~~~~ ZEND_STR_STRING /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_checkbox_tree_set_entry_value': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2192:33: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 PHP_NEWT_FETCH_KEY (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:396:10: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (&NEWT_G(data), (void **)&z_data_pnfk) == SUCCESS) { \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2192:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_data, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2192:33: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 PHP_NEWT_FETCH_KEY (z_data, key); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:399:5: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? zend_hash_get_current_key(&NEWT_G(data), NULL, &key, 0); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2192:2: note: in expansion of macro 'PHP_NEWT_FETCH_KEY' PHP_NEWT_FETCH_KEY (z_data, key); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2194:36: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_textbox_set_text': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2264:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(textbox, newtComponent, &z_textbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_textbox_set_height': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2282:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(textbox, newtComponent, &z_textbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_textbox_get_num_lines': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2299:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(textbox, newtComponent, &z_textbox, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_reflow_text': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2332:24: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING (text, 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2332:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'? RETURN_STRING (text, 1); ^~~~~~~~~~~~~ ZEND_STR_STRING /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2353:35: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(vert_bar, newtComponent, &z_vert_bar, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_timer': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2376:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:405:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_watch_fd': /usr/include/php/main/php_streams.h:259:53: warning: passing argument 1 of 'zend_fetch_resource2_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2397:2: note: in expansion of macro 'php_stream_from_zval' php_stream_from_zval (stream, &z_stream); ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_list.h:66:16: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void *zend_fetch_resource2_ex(zval *res, const char *resource_type_name, int resource_type, int resource_type2); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2400:29: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_size': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2422:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_get_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2439:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_background': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2457:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_current': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2476:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2477:31: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(current, newtComponent, &z_current, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_add_component': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2496:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2497:33: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(component, newtComponent, &z_component, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_add_components': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2517:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2521:84: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (Z_ARRVAL_P(z_components), (void **)&z_component) == SUCCESS) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2521:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (Z_ARRVAL_P(z_components), (void **)&z_component) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2522:35: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE (component, newtComponent, z_component, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_height': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2542:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_set_width': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2560:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_run_form': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2577:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_run': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2602:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2607:102: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (HASH_OF(z_es), "reason", sizeof("reason"), (void *)&z_reason, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2607:2: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update (HASH_OF(z_es), "reason", sizeof("reason"), (void *)&z_reason, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~ _zend_hash_update /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2612:99: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (HASH_OF(z_es), "watch", sizeof("watch"), (void *)&z_watch, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2617:93: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (HASH_OF(z_es), "key", sizeof("key"), (void *)&z_key, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2621:111: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (HASH_OF(z_es), "component", sizeof("component"), (void *)&z_component, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_draw_form': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2637:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_add_hot_key': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2655:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_entry_set': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2700:30: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE (entry, newtComponent, &z_entry, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_entry_set_filter': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2722:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL (&z_callback); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2723:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2723:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:324:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [-Wincompatible-pointer-types] #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2723:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:253:29: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2726:39: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [-Wincompatible-pointer-types] if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_API.h:316:20: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name); ^~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2741:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:412:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2741:2: note: in expansion of macro 'PHP_NEWT_STORE_CALLBACK' PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2743:29: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(entry, newtComponent, &z_entry, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_entry_get_value': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2760:29: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(entry, newtComponent, &z_entry, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2762:43: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(newtEntryGetValue(entry), 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2762:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'? RETURN_STRING(newtEntryGetValue(entry), 1); ^~~~~~~~~~~~~ ZEND_STR_STRING /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_entry_set_flags': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2780:29: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(entry, newtComponent, &z_entry, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_scale_set': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2820:30: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE (scale, newtComponent, &z_scale, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_component_add_callback': /usr/include/php/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] zval *_zv = (zv); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2839:3: note: in expansion of macro 'SEPARATE_ZVAL' SEPARATE_ZVAL (&z_callback); ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:378:6: note: in expansion of macro 'Z_TYPE_P' if (Z_TYPE_P(pzv)!=upper_type) { \ ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2840:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:341:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [-Wincompatible-pointer-types] #define Z_TYPE(zval) zval_get_type(&(zval)) ^ /usr/include/php/Zend/zend_types.h:342:28: note: in expansion of macro 'Z_TYPE' #define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p)) ^~~~~~ /usr/include/php/Zend/zend_operators.h:284:35: note: in expansion of macro 'Z_TYPE_P' #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^~~~~~~~ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2840:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_types.h:331:38: note: expected 'const zval * {aka const struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:324:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_operators.h:284:83: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [-Wincompatible-pointer-types] #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); } ^ /usr/include/php/Zend/zend_operators.h:379:3: note: in expansion of macro 'convert_to_string' convert_to_##lower_type(pzv); \ ^~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:420:35: note: in expansion of macro 'convert_to_ex_master' #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING) ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2840:3: note: in expansion of macro 'convert_to_string_ex' convert_to_string_ex (&z_callback); ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_operators.h:253:29: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2846:39: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [-Wincompatible-pointer-types] if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_API.h:316:20: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name); ^~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2861:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:412:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \ ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2861:2: note: in expansion of macro 'PHP_NEWT_STORE_CALLBACK' PHP_NEWT_STORE_CALLBACK (cb); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2863:33: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(component, newtComponent, &z_component, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_component_takes_focus': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2881:33: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(component, newtComponent, &z_component, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_form_destroy': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2897:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_v_stacked': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2938:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2951:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2958:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(element, newtComponent, args[i+1], -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_v_close_stacked': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2986:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:2999:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3006:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(element, newtComponent, args[i+1], -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_h_stacked': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3034:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3047:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3054:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(element, newtComponent, args[i+1], -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_h_close_stacked': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3082:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3095:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_LVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3102:32: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(element, newtComponent, args[i+1], -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_basic_window': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3128:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(text, newtComponent, &z_text, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3129:30: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(middle, newtGrid, &z_middle, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3130:31: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(buttons, newtGrid, &z_buttons, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_simple_window': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3150:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(text, newtComponent, &z_text, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3151:30: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(middle, newtComponent, &z_middle, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3152:31: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(buttons, newtGrid, &z_buttons, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_set_field': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3176:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3177:27: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(val, newtComponent, &z_val, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_place': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3195:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_free': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3213:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_get_size': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3232:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_wrapped_window': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3260:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_wrapped_window_at': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3280:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_grid_add_components_to_form': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3299:28: error: expected expression before 'newtGrid' ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); ^~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3300:28: error: expected expression before 'newtComponent' ZEND_FETCH_RESOURCE(form, newtComponent, &z_form, -1, le_newt_comp_name, le_newt_comp); ^~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_button_bar': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3331:78: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (Z_ARRVAL_P(z_buttons), (void **)&z_button) == SUCCESS) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3331:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (Z_ARRVAL_P(z_buttons), (void **)&z_button) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3332:82: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 if (zend_hash_get_current_key(Z_ARRVAL_P(z_buttons), &button_text, &button_i, 0) == HASH_KEY_IS_STRING) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3332:7: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? if (zend_hash_get_current_key(Z_ARRVAL_P(z_buttons), &button_text, &button_i, 0) == HASH_KEY_IS_STRING) { ^~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_key_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3354:18: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref (&z_tmp); ^ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3355:120: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (Z_ARRVAL_P(z_buttons), newt_args[i], strlen(newt_args[i])+1, (void **)&z_tmp, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3355:4: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update (Z_ARRVAL_P(z_buttons), newt_args[i], strlen(newt_args[i])+1, (void **)&z_tmp, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~ _zend_hash_update In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_message': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3384:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_messagev': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3415:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_choice': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3446:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_ternary': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3481:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_menu': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3520:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3531:74: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (Z_ARRVAL_P(z_items), (void **)&z_item) == SUCCESS) { ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3531:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? while (zend_hash_get_current_data (Z_ARRVAL_P(z_items), (void **)&z_item) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3538:16: warning: implicit declaration of function 'Z_STRVAL_PP'; did you mean 'Z_STRVAL_P'? [-Wimplicit-function-declaration] items[i++] = Z_STRVAL_PP(z_item); ^~~~~~~~~~~ Z_STRVAL_P /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3538:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] items[i++] = Z_STRVAL_PP(z_item); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3565:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_STRVAL_PP(args[i]); ^ In file included from /usr/include/php/main/php.h:39:0, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c: In function 'zif_newt_win_entries': /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3605:42: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_get_parameters_array_ex (argc, args) == FAILURE) { ^ /usr/include/php/Zend/zend_API.h:260:45: note: in definition of macro 'zend_get_parameters_array_ex' _zend_get_parameters_array_ex(param_count, argument_array) ^~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:252:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval *** {aka struct _zval_struct ***}' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3617:9: error: too many arguments to function 'zend_hash_index_find' while (zend_hash_index_find (Z_ARRVAL_P(z_items), i, (void **)&z_item) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3626:22: warning: implicit declaration of function 'Z_ARRVAL_PP'; did you mean 'Z_ARRVAL_P'? [-Wimplicit-function-declaration] if(zend_hash_find (Z_ARRVAL_PP(z_item), "text", sizeof("text"), (void **)&z_item_text) == FAILURE) { ^~~~~~~~~~~ Z_ARRVAL_P /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3626:22: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: expected 'const HashTable * {aka const struct _zend_array *}' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3626:43: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if(zend_hash_find (Z_ARRVAL_PP(z_item), "text", sizeof("text"), (void **)&z_item_text) == FAILURE) { ^~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3626:6: error: too many arguments to function 'zend_hash_find' if(zend_hash_find (Z_ARRVAL_PP(z_item), "text", sizeof("text"), (void **)&z_item_text) == FAILURE) { ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3626:90: warning: comparison between pointer and integer if(zend_hash_find (Z_ARRVAL_PP(z_item), "text", sizeof("text"), (void **)&z_item_text) == FAILURE) { ^~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3632:22: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion] if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value) == FAILURE) { ^~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: expected 'const HashTable * {aka const struct _zend_array *}' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3632:43: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value) == FAILURE) { ^~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3632:6: error: too many arguments to function 'zend_hash_find' if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value) == FAILURE) { ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3632:93: warning: comparison between pointer and integer if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value) == FAILURE) { ^~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3638:19: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion] zend_hash_find (Z_ARRVAL_PP(z_item), "flags", sizeof("flags"), (void **)&z_item_flags); ^~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: expected 'const HashTable * {aka const struct _zend_array *}' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3638:40: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_find (Z_ARRVAL_PP(z_item), "flags", sizeof("flags"), (void **)&z_item_flags); ^~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3638:3: error: too many arguments to function 'zend_hash_find' zend_hash_find (Z_ARRVAL_PP(z_item), "flags", sizeof("flags"), (void **)&z_item_flags); ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3655:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion] items[i].text = Z_STRVAL_PP(z_item_text); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3656:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] strs[i] = Z_STRVAL_PP(z_item_value); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3685:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] newt_args[i] = (void *)Z_STRVAL_PP(args[i]); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3691:24: error: too many arguments to function 'zend_hash_index_find' if (items[i].text && zend_hash_index_find (Z_ARRVAL_P(z_items), i, (void **)&z_item) == SUCCESS) ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:163:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3695:23: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion] if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value_in) == SUCCESS && PZVAL_IS_REF (*z_item_value_in)) { ^~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: expected 'const HashTable * {aka const struct _zend_array *}' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3695:44: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value_in) == SUCCESS && PZVAL_IS_REF (*z_item_value_in)) { ^~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161: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); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3695:7: error: too many arguments to function 'zend_hash_find' if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value_in) == SUCCESS && PZVAL_IS_REF (*z_item_value_in)) { ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3695:111: warning: implicit declaration of function 'PZVAL_IS_REF'; did you mean 'ZVAL_NEW_REF'? [-Wimplicit-function-declaration] if(zend_hash_find (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void **)&z_item_value_in) == SUCCESS && PZVAL_IS_REF (*z_item_value_in)) { ^~~~~~~~~~~~ ZVAL_NEW_REF /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3697:64: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING (*z_item_value_in, (char *)*(items[i].value), 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3697:5: error: 'ZVAL_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_LINE'? ZVAL_STRING (*z_item_value_in, (char *)*(items[i].value), 1); ^~~~~~~~~~~ ZEND_STR_LINE /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3700:60: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING (z_item_value, (char *)*(items[i].value), 1); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3701:19: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [-Wincompatible-pointer-types] zval_add_ref (&z_item_value); ^ In file included from /usr/include/php/Zend/zend.h:39:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:27: /usr/include/php/Zend/zend_variables.h:129:15: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval ** {aka struct _zval_struct **}' ZEND_API void zval_add_ref(zval *p); ^~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3702:113: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void *)&z_item_value, sizeof(zval *), NULL); ^ /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt.c:3702:5: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update (Z_ARRVAL_PP(z_item), "value", sizeof("value"), (void *)&z_item_value, sizeof(zval *), NULL); ^~~~~~~~~~~~~~~~ _zend_hash_update make: *** [Makefile:198: newt.lo] Error 1 make: *** Waiting for unfinished jobs.... /bin/sh /home/pterjan/rpmbuild/BUILD/newt-1.2.9/libtool --mode=compile cc -I. -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/include -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/main -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt_vcall.c -o newt_vcall.lo mkdir .libs cc -I. -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/include -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9/main -I/home/pterjan/rpmbuild/BUILD/newt-1.2.9 -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/newt-1.2.9/newt_vcall.c -fPIC -DPIC -o .libs/newt_vcall.o error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RLQyS5 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RLQyS5 (%build) I: [iurt_root_command] ERROR: chroot