Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-ares.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-f54e696dc43cb98525ad98f242fa7d778b8bc546/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-ares.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False sh: line 0: fg: no job control sh: line 0: fg: no job control Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/php-pecl-ares-0.8.0-3.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-ares.spec"], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-f54e696dc43cb98525ad98f242fa7d778b8bc546/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-ares.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zK6e3h + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php-pecl-ares-0.8.0 + /usr/bin/mkdir -p php-pecl-ares-0.8.0 + cd php-pecl-ares-0.8.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/ares-0.8.0.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + mv ares-0.8.0 NTS + cd NTS ++ sed -n '/#define PHP_ARES_VERSION/{s/.* "//;s/".*$//;p}' php_ares.h + extver=0.8.0 + test x0.8.0 '!=' x0.8.0 + cd .. + cp -pr NTS ZTS + cat + tee 40-ares.ini ; Enable Asynchronous Resolver extension module extension=ares.so + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WNUDqz + umask 022 + cd /builddir/build/BUILD + cd php-pecl-ares-0.8.0 + cd NTS + /usr/bin/phpize Configuring for: PHP Api Version: 20190902 Zend Module Api No: 20190902 Zend Extension Api No: 320190902 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' arm == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./build/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build/config.sub ++ basename ./build/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build/config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./build/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build/config.guess ++ basename ./build/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build/config.guess' + ./configure --build=armv7hl-redhat-linux-gnu --host=armv7hl-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-libdir=lib --with-php-config=/usr/bin/php-config configure: WARNING: unrecognized options: --disable-dependency-tracking 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 armv7hl-redhat-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for armv7hl-redhat-linux-gnu-cc... no checking for armv7hl-redhat-linux-gnu-gcc... no 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 for system library directory... lib checking if compiler supports -R... yes checking build system type... armv7hl-redhat-linux-gnu checking host system type... armv7hl-redhat-linux-gnu checking target system type... armv7hl-redhat-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/lib/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for gawk... gawk checking enable asynchronous resolver support... yes, shared checking for ares.h... found in /usr checking for ares_init in -lcares... yes checking for libares/libcares... cares checking for ares_cancel in -lcares... yes checking for ares_getnameinfo in -lcares... yes checking for ares_getsock in -lcares... yes checking for ares_version in -lcares... yes checking for ares_library_init in -lcares... yes checking for ares_library_cleanup in -lcares... yes checking for ares_set_local_dev in -lcares... yes checking for ares_set_local_ip4 in -lcares... yes checking for ares_set_local_ip6 in -lcares... yes checking for ares_inet_ntop in -lcares... yes checking for ares_inet_pton in -lcares... yes checking for new c-ares callback API... yes 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 netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking arpa/nameser_compat.h usability... yes checking arpa/nameser_compat.h presence... yes checking for arpa/nameser_compat.h... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert armv7hl-redhat-linux-gnu file names to armv7hl-redhat-linux-gnu format... func_convert_file_noop checking how to convert armv7hl-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for armv7hl-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for armv7hl-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for armv7hl-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for armv7hl-redhat-linux-gnu-strip... no checking for strip... strip checking for armv7hl-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for armv7hl-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: patching config.h.in configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 /bin/sh /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/include -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/main -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS -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 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c -o php_ares.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/include -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/main -I/builddir/build/BUILD/php-pecl-ares-0.8.0/NTS -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 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c -fPIC -DPIC -o .libs/php_ares.o In file included from /usr/include/php/Zend/zend.h:356:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /usr/include/php/Zend/zend_operators.h:548:2: warning: implicit declaration of function '__builtin_saddl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /usr/include/php/Zend/zend_operators.h:611:2: warning: implicit declaration of function '__builtin_ssubl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: At top level: /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:58:0: warning: "PHP_ARES_IS_CALLABLE" redefined [enabled by default] # define PHP_ARES_IS_CALLABLE(a,b,c) zend_is_callable((a), (b), (c) TSRMLS_CC) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:48:0: note: this is the location of the previous definition # define PHP_ARES_IS_CALLABLE(a,b,c) 1 ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_hostent_to_struct': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:322:2: warning: implicit declaration of function 'INIT_PZVAL' [-Wimplicit-function-declaration] INIT_PZVAL(&array); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:323:16: error: lvalue required as left operand of assignment Z_TYPE(array) = IS_ARRAY; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:327:54: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(&array, "name", hostent->h_name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:327:3: error: 'add_assoc_string' undeclared (first use in this function) add_assoc_string(&array, "name", hostent->h_name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:327:3: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:329:3: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(tmp); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:333:5: error: too many arguments to function 'add_next_index_string' add_next_index_string(tmp, *ptr, 1); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:432:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:346:6: error: too many arguments to function 'add_next_index_string' add_next_index_string(tmp, name, 1); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:432:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_hostent_dtor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:359:2: warning: implicit declaration of function 'STR_FREE' [-Wimplicit-function-declaration] STR_FREE(host->h_name); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_query_rsrc': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:406:23: warning: statement with no effect [-Wunused-value] TSRMLS_FETCH_FROM_CTX(query->ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:408:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE' [-Wimplicit-function-declaration] ZEND_REGISTER_RESOURCE(return_value, query, le_ares_query); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:410:2: warning: implicit declaration of function 'zend_list_addref' [-Wimplicit-function-declaration] zend_list_addref(query->id); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_query_dtor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:490:5: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&query->result.std.arr); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:503:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&query->callback); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'is_numeric': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:519:2: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] switch (Z_TYPE_PP(p)) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:521:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&tmp); ^ In file included from /usr/include/php/Zend/zend.h:27:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_types.h:440:38: note: expected 'const struct zval *' but argument is of type 'struct zval **' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:521:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&tmp); ^ In file included from /usr/include/php/Zend/zend.h:356:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_operators.h:249:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL convert_to_long(zval *op); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:526:4: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&tmp); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_options_ctor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:545:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "flags", sizeof("flags"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:545:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "flags", sizeof("flags"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:550:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "timeoutms", sizeof("timeoutms"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:550:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "timeoutms", sizeof("timeoutms"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:555:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "timeout", sizeof("timeout"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:555:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "timeout", sizeof("timeout"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:559:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "tries", sizeof("tries"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:559:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "tries", sizeof("tries"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:563:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "ndots", sizeof("ndots"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:563:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "ndots", sizeof("ndots"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:567:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "udp_port", sizeof("udp_port"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:567:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "udp_port", sizeof("udp_port"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:575:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "tcp_port", sizeof("tcp_port"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:575:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "tcp_port", sizeof("tcp_port"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:583:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "servers", sizeof("servers"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:583:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "servers", sizeof("servers"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:583:3: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] if ((SUCCESS == zend_hash_find(ht, "servers", sizeof("servers"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:275:6: error: invalid type argument of '->' (have 'int') (ht)->nNumOfElements ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:583:124: note: in expansion of macro 'zend_hash_num_elements' if ((SUCCESS == zend_hash_find(ht, "servers", sizeof("servers"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ /usr/include/php/Zend/zend_hash.h:256:47: error: invalid type argument of '->' (have 'int') zend_hash_internal_pointer_reset_ex(ht, &(ht)->nInternalPointer) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:585:10: note: in expansion of macro 'zend_hash_internal_pointer_reset' for ( zend_hash_internal_pointer_reset(Z_ARRVAL_PP(opt)); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:585:4: warning: passing argument 1 of 'zend_hash_internal_pointer_reset_ex' makes pointer from integer without a cast [enabled by default] for ( zend_hash_internal_pointer_reset(Z_ARRVAL_PP(opt)); ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:238:30: note: expected 'struct HashTable *' but argument is of type 'int' ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:586:77: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 SUCCESS == zend_hash_get_current_data(Z_ARRVAL_PP(opt), (void *) &entry); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:586:17: error: 'zend_hash_get_current_data' undeclared (first use in this function) SUCCESS == zend_hash_get_current_data(Z_ARRVAL_PP(opt), (void *) &entry); ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:244:37: error: invalid type argument of '->' (have 'int') zend_hash_move_forward_ex(ht, &(ht)->nInternalPointer) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:587:6: note: in expansion of macro 'zend_hash_move_forward' zend_hash_move_forward(Z_ARRVAL_PP(opt))) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:587:6: warning: passing argument 1 of 'zend_hash_move_forward_ex' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:232:30: note: expected 'struct HashTable *' but argument is of type 'int' ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:589:6: warning: implicit declaration of function 'Z_STRVAL_PP' [-Wimplicit-function-declaration] inet_pton(AF_INET, Z_STRVAL_PP(entry), &options->strct.servers[options->strct.nservers++]); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:589:6: warning: passing argument 2 of 'inet_pton' makes pointer from integer without a cast [enabled by default] In file included from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:36:0: /usr/include/arpa/inet.h:58:12: note: expected 'const char * __restrict__' but argument is of type 'int' extern int inet_pton (int __af, const char *__restrict __cp, ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:596:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "domains", sizeof("domains"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:596:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "domains", sizeof("domains"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /usr/include/php/Zend/zend_hash.h:275:6: error: invalid type argument of '->' (have 'int') (ht)->nNumOfElements ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:596:124: note: in expansion of macro 'zend_hash_num_elements' if ((SUCCESS == zend_hash_find(ht, "domains", sizeof("domains"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_ARRAY) && (i = zend_hash_num_elements(Z_ARRVAL_PP(opt)))) { ^ /usr/include/php/Zend/zend_hash.h:256:47: error: invalid type argument of '->' (have 'int') zend_hash_internal_pointer_reset_ex(ht, &(ht)->nInternalPointer) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:598:10: note: in expansion of macro 'zend_hash_internal_pointer_reset' for ( zend_hash_internal_pointer_reset(Z_ARRVAL_PP(opt)); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:598:4: warning: passing argument 1 of 'zend_hash_internal_pointer_reset_ex' makes pointer from integer without a cast [enabled by default] for ( zend_hash_internal_pointer_reset(Z_ARRVAL_PP(opt)); ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:238:30: note: expected 'struct HashTable *' but argument is of type 'int' ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:599:77: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 SUCCESS == zend_hash_get_current_data(Z_ARRVAL_PP(opt), (void *) &entry); ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:244:37: error: invalid type argument of '->' (have 'int') zend_hash_move_forward_ex(ht, &(ht)->nInternalPointer) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:600:6: note: in expansion of macro 'zend_hash_move_forward' zend_hash_move_forward(Z_ARRVAL_PP(opt))) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:600:6: warning: passing argument 1 of 'zend_hash_move_forward_ex' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:232:30: note: expected 'struct HashTable *' but argument is of type 'int' ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:602:6: warning: passing argument 1 of '_estrdup' makes pointer from integer without a cast [enabled by default] options->strct.domains[options->strct.ndomains++] = estrdup(Z_STRVAL_PP(entry)); ^ In file included from /usr/include/php/Zend/zend.h:30:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_alloc.h:82:31: note: expected 'const char *' but argument is of type 'int' ZEND_API char* ZEND_FASTCALL _estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:609:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "lookups", sizeof("lookups"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_STRING)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:609:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "lookups", sizeof("lookups"), (void *) &opt)) && (Z_TYPE_PP(opt) == IS_STRING)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:611:4: warning: passing argument 1 of '_estrdup' makes pointer from integer without a cast [enabled by default] options->strct.lookups = estrdup(Z_STRVAL_PP(opt)); ^ In file included from /usr/include/php/Zend/zend.h:30:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_alloc.h:82:31: note: expected 'const char *' but argument is of type 'int' ZEND_API char* ZEND_FASTCALL _estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:614:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "rotate", sizeof("rotate"), (void *) &opt)) && i_zend_is_true(*opt)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:614:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "rotate", sizeof("rotate"), (void *) &opt)) && i_zend_is_true(*opt)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:619:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if ((SUCCESS == zend_hash_find(ht, "ednspsz", sizeof("ednspsz"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:619:3: error: too many arguments to function 'zend_hash_find' if ((SUCCESS == zend_hash_find(ht, "ednspsz", sizeof("ednspsz"), (void *) &opt)) && is_numeric(opt, &lval)) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:175:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_parse': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:714:69: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "type", estrdup(php_ares_T_names[type]), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:714:3: error: 'add_assoc_string' undeclared (first use in this function) add_assoc_string(entry, "type", estrdup(php_ares_T_names[type]), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:716:71: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "class", estrdup(php_ares_C_names[class]), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:727:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "addr", name, 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:734:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "addr", name, 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:747:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "name", name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:759:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "name", name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:773:6: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&entry); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:777:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "name", name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:784:6: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&entry); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:788:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "name", name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:793:6: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&entry); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:797:44: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(entry, "mail", name, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:814:6: error: too many arguments to function 'add_next_index_stringl' add_next_index_stringl(entry, (const char *) &pointer[ltmp + 1], pointer[ltmp], 1); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:433:14: note: declared here ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:823:5: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&entry); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:700:24: warning: variable 'class' set but not used [-Wunused-but-set-variable] uint16_t stmp, type, class; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_callback_func_old': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:843:23: warning: statement with no effect [-Wunused-value] TSRMLS_FETCH_FROM_CTX(q->ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:855:4: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&parsed); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:868:23: error: lvalue required as left operand of assignment Z_TYPE_P(params[0]) = IS_RESOURCE; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:870:49: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(params[2], (char *) abuf, alen, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:870:3: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(params[2], (char *) abuf, alen, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:878:3: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] call_user_function(EG(function_table), NULL, q->callback, retval, parsed ? 4 : 3, params TSRMLS_CC); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:463:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:881:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:882:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[0]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:883:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[1]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:884:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[2]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:887:4: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[3]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_host_callback_func_old': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:896:23: warning: statement with no effect [-Wunused-value] TSRMLS_FETCH_FROM_CTX(q->ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:911:23: error: lvalue required as left operand of assignment Z_TYPE_P(params[0]) = IS_RESOURCE; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:917:3: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] call_user_function(EG(function_table), NULL, q->callback, retval, 3, params TSRMLS_CC); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:463:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:920:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:921:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[0]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:922:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[1]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:923:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[2]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_nameinfo_callback_func_old': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:932:23: warning: statement with no effect [-Wunused-value] TSRMLS_FETCH_FROM_CTX(q->ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:951:23: error: lvalue required as left operand of assignment Z_TYPE_P(params[0]) = IS_RESOURCE; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:954:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(params[2], node, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:954:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(params[2], node, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:959:37: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(params[3], service, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:965:3: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] call_user_function(EG(function_table), NULL, q->callback, retval, 4, params TSRMLS_CC); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_API.h:463:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:968:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:969:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[0]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:970:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[1]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:971:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[2]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:972:3: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(¶ms[3]); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_publish_fds': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1046:4: error: too many arguments to function 'zend_hash_index_find' if (resource_map && (SUCCESS == zend_hash_index_find(resource_map, i, (void *) &fd))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:177:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1047:5: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [enabled by default] zval_add_ref(fd); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:89:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_add_ref(zval *p); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1060:4: error: too many arguments to function 'zend_hash_index_find' if (resource_map && (SUCCESS == zend_hash_index_find(resource_map, i, (void *) &fd))) { ^ In file included from /usr/include/php/Zend/zend.h:33:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_hash.h:177:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1061:5: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [enabled by default] zval_add_ref(fd); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:89:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_add_ref(zval *p); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_extract_fds': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1082:2: warning: implicit declaration of function 'INIT_ZVAL' [-Wimplicit-function-declaration] INIT_ZVAL(zmap); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1084:15: error: lvalue required as left operand of assignment Z_TYPE(zmap) = IS_ARRAY; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1087:70: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(r), (void *) &fd); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1087:16: error: 'zend_hash_get_current_data' undeclared (first use in this function) SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(r), (void *) &fd); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1093:5: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE_NO_RETURN' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE_NO_RETURN(s, php_stream *, fd, -1, NULL, php_file_le_stream()); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1093:38: error: expected expression before 'php_stream' ZEND_FETCH_RESOURCE_NO_RETURN(s, php_stream *, fd, -1, NULL, php_file_le_stream()); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1095:6: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [enabled by default] zval_add_ref(fd); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:89:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_add_ref(zval *p); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1103:5: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] FD_SET(Z_LVAL_PP(fd), R); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1113:70: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(w), (void *) &fd); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1119:38: error: expected expression before 'php_stream' ZEND_FETCH_RESOURCE_NO_RETURN(s, php_stream *, fd, -1, NULL, php_file_le_stream()); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1121:6: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [enabled by default] zval_add_ref(fd); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:89:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_add_ref(zval *p); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_query_llist_dtor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1144:23: warning: statement with no effect [-Wunused-value] TSRMLS_FETCH_FROM_CTX(q->ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1145:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(q->id); ^ In file included from /usr/include/php/Zend/zend_API.h:26:0, from /usr/include/php/main/php.h:37, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_list.h:57:28: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int ZEND_FASTCALL zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_version': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1157:46: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(estrdup(ares_version(NULL)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1157:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(estrdup(ares_version(NULL)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_init': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1175:16: warning: statement with no effect [-Wunused-value] TSRMLS_SET_CTX(ares->tsrm_ls); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_set_local_dev': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1203:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1203:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_set_local_ip4': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1221:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_set_local_ip6': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1243:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_destroy': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1257:29: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1261:4: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(Z_LVAL_P(rsrc)); ^ In file included from /usr/include/php/Zend/zend_API.h:26:0, from /usr/include/php/main/php.h:37, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_list.h:57:28: note: expected 'struct zend_resource *' but argument is of type 'zend_long' ZEND_API int ZEND_FASTCALL zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_strerror': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1288:46: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(estrdup(ares_strerror(err)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1288:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(estrdup(ares_strerror(err)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_mkquery': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1308:40: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(query_str, query_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1308:2: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(query_str, query_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_search': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1327:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_query': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1354:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_send': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1380:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_gethostbyname': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1407:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_gethostbyaddr': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1436:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_getnameinfo': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1488:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1523:2: warning: implicit declaration of function 'Z_BVAL_P' [-Wimplicit-function-declaration] if (Z_BVAL_P(return_value)) { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_result': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1544:29: error: expected expression before 'php_ares_query' ZEND_FETCH_RESOURCE(query, php_ares_query *, &rsrc, -1, PHP_ARES_QUERY_LE_NAME, le_ares_query); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1562:69: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(query->result.std.buf, query->result.std.len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1562:7: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(query->result.std.buf, query->result.std.len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1571:107: error: macro "add_property_string" passed 4 arguments, but takes just 3 add_property_string(return_value, "node", query->result.ninfo.node ? query->result.ninfo.node : "", 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1571:6: error: 'add_property_string' undeclared (first use in this function) add_property_string(return_value, "node", query->result.ninfo.node ? query->result.ninfo.node : "", 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1572:116: error: macro "add_property_string" passed 4 arguments, but takes just 3 add_property_string(return_value, "service", query->result.ninfo.service ? query->result.ninfo.service : "", 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1587:64: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(zerror, estrdup(ares_strerror(query->error)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1587:5: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(zerror, estrdup(ares_strerror(query->error)), 0); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_packet': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1606:29: error: expected expression before 'php_ares_query' ZEND_FETCH_RESOURCE(query, php_ares_query *, &rsrc, -1, PHP_ARES_QUERY_LE_NAME, le_ares_query); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1621:108: error: macro "add_property_stringl" passed 5 arguments, but takes just 4 add_property_stringl(prop, "name", query->packet.data.search.name, query->packet.data.search.name_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1621:4: error: 'add_property_stringl' undeclared (first use in this function) add_property_stringl(prop, "name", query->packet.data.search.name, query->packet.data.search.name_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1629:106: error: macro "add_property_stringl" passed 5 arguments, but takes just 4 add_property_stringl(prop, "name", query->packet.data.query.name, query->packet.data.query.name_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1636:82: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(prop, query->packet.data.send.buf, query->packet.data.send.len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1636:4: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(prop, query->packet.data.send.buf, query->packet.data.send.len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1642:106: error: macro "add_property_stringl" passed 5 arguments, but takes just 4 add_property_stringl(prop, "name", query->packet.data.hname.name, query->packet.data.hname.name_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1649:106: error: macro "add_property_stringl" passed 5 arguments, but takes just 4 add_property_stringl(prop, "addr", query->packet.data.haddr.addr, query->packet.data.haddr.addr_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1657:106: error: macro "add_property_stringl" passed 5 arguments, but takes just 4 add_property_stringl(prop, "addr", query->packet.data.ninfo.addr, query->packet.data.ninfo.addr_len, 1); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1664:2: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&prop); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:19: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_cancel': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1677:29: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_process_all': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1695:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_process_once': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1712:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_process': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1729:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_timeout': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1791:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'zif_ares_fds': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1811:28: error: expected expression before 'php_ares' ZEND_FETCH_RESOURCE(ares, php_ares *, &rsrc, -1, PHP_ARES_LE_NAME, le_ares); ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_le_dtor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1827:32: error: 'rsrc' undeclared (first use in this function) php_ares *ares = (php_ares *) rsrc->ptr; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: In function 'php_ares_query_le_dtor': /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:1837:45: error: 'rsrc' undeclared (first use in this function) php_ares_query *query = (php_ares_query *) rsrc->ptr; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c: At top level: /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2296:45: error: 'BYREF_FORCE' undeclared here (not in a function) static unsigned char ai_ares_select[] = {3, BYREF_FORCE, BYREF_FORCE, BYREF_NONE}; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2296:71: error: 'BYREF_NONE' undeclared here (not in a function) static unsigned char ai_ares_select[] = {3, BYREF_FORCE, BYREF_FORCE, BYREF_NONE}; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: initializer element is not constant static unsigned char ai_ares_result[] = {4, BYREF_NONE, BYREF_FORCE, BYREF_FORCE}; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: (near initialization for 'ai_ares_result[1]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: initializer element is not constant /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: (near initialization for 'ai_ares_result[2]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: initializer element is not constant /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2297:1: error: (near initialization for 'ai_ares_result[3]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: initializer element is not constant static unsigned char ai_ares_fds[] = {4, BYREF_NONE, BYREF_FORCE, BYREF_FORCE}; ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: (near initialization for 'ai_ares_fds[1]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: initializer element is not constant /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: (near initialization for 'ai_ares_fds[2]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: initializer element is not constant /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2298:1: error: (near initialization for 'ai_ares_fds[3]') /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2321:2: warning: initialization from incompatible pointer type [enabled by default] PHP_FE(ares_result, ai_ares_result) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2321:2: warning: (near initialization for 'ares_functions[12].arg_info') [enabled by default] /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2326:2: warning: initialization from incompatible pointer type [enabled by default] PHP_FE(ares_select, ai_ares_select) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2326:2: warning: (near initialization for 'ares_functions[17].arg_info') [enabled by default] /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2327:2: warning: initialization from incompatible pointer type [enabled by default] PHP_FE(ares_fds, ai_ares_fds) ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:2327:2: warning: (near initialization for 'ares_functions[18].arg_info') [enabled by default] /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:69:20: warning: 'php_ares_C_names' defined but not used [-Wunused-variable] static const char *php_ares_C_names[] = { ^ /builddir/build/BUILD/php-pecl-ares-0.8.0/NTS/php_ares.c:91:20: warning: 'php_ares_T_names' defined but not used [-Wunused-variable] static const char *php_ares_T_names[] = { ^ RPM build errors: make: *** [php_ares.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.WNUDqz (%build) Bad exit status from /var/tmp/rpm-tmp.WNUDqz (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-ares.spec