Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-sdl.spec'], chrootPath='/var/lib/mock/community-php72-armhfp-80f77add29fe19c50364ce7fe2437ce565f1b85e/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-sdl.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/php: No such file or directory sh: /usr/bin/php: No such file or directory Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/php-pecl-sdl-0.9.3-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-sdl.spec'], chrootPath='/var/lib/mock/community-php72-armhfp-80f77add29fe19c50364ce7fe2437ce565f1b85e/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-sdl.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IxC4jd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php-pecl-sdl-0.9.3 + /usr/bin/mkdir -p php-pecl-sdl-0.9.3 + cd php-pecl-sdl-0.9.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/sdl-0.9.3.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv sdl-0.9.3 NTS + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + cat + tee phpsdl #!/bin/sh exec /usr/bin/php -d extension=sdl.so "$@" + cat + tee zts-phpsdl #!/bin/sh exec /usr/bin/zts-php -d extension=sdl.so "$@" + cp -r NTS ZTS + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UJS2Et + umask 022 + cd /builddir/build/BUILD + cd php-pecl-sdl-0.9.3 + cd NTS + /usr/bin/phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 + peclconf /usr/bin/php-config + 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 ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './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-sdl --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-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 whether cc understands -c and -o together... yes 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 re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for sdl support... yes, shared checking for sdl-config... found in /usr/bin/sdl-config 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 ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 /bin/sh /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl.c -o php_sdl.lo /bin/sh /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_audio.c -o php_sdl_audio.lo /bin/sh /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_event.c -o php_sdl_event.lo /bin/sh /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_thread.c -o php_sdl_thread.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl.c -fPIC -DPIC -o .libs/php_sdl.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_thread.c -fPIC -DPIC -o .libs/php_sdl_thread.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_event.c -fPIC -DPIC -o .libs/php_sdl_event.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/include -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/main -I/builddir/build/BUILD/php-pecl-sdl-0.9.3/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 -I/usr/include/SDL -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-sdl-0.9.3/NTS/php_sdl_audio.c -fPIC -DPIC -o .libs/php_sdl_audio.o In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19:0: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:30:21: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiospec(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:31:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiocvt(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:27:21: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiospec(zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:28:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiocvt(zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c: In function 'convert_zval_to_sdl_audiospec': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:34:2: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "freq", sizeof("freq"), (void **)&zv_value) != FAILURE) { ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:140:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_cdrom.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_cdrom (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:140:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_cdrom.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_cdrom (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:141:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_time.h:27:17: error: unknown type name 'zend_rsrc_list_entry' void _sdl_timer(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:142:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_mutex (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:141:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_time.h:27:17: error: unknown type name 'zend_rsrc_list_entry' void _sdl_timer(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:143:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_joystick.h:27:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_joystick(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:142:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_mutex (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:34:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:143:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_joystick.h:27:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_joystick(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:34:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "freq", sizeof("freq"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl_audio.c:34:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(zv_var), "freq", sizeof("freq"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:144:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:30:21: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiospec(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:34:85: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "freq", sizeof("freq"), (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:31:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiocvt(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:35:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_audio.c:35:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:144:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:30:21: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiospec(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_audio.h:31:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiocvt(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:36:3: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] converted_audiospec->freq = (Sint16)Z_LVAL_PP(zv_value); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:38:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "format", sizeof("format"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:38:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "format", sizeof("format"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl_audio.c:38:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(zv_var), "format", sizeof("format"), (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:33:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_mutex (zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c: In function 'php_sdl_event_to_array': In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:67:4: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(active); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:140:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_cdrom.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_cdrom (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c: In function 'zif_sdl_createmutex': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:52:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE' [-Wimplicit-function-declaration] ZEND_REGISTER_RESOURCE(return_value, mutex, le_mutex); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c: In function 'zif_sdl_destroymutex': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:66:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(mutex, SDL_mutex *, &z_mutex, -1, le_mutex_name, le_mutex); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:66:29: error: expected expression before 'SDL_mutex' ZEND_FETCH_RESOURCE(mutex, SDL_mutex *, &z_mutex, -1, le_mutex_name, le_mutex); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:141:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_time.h:27:17: error: unknown type name 'zend_rsrc_list_entry' void _sdl_timer(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:70:2: warning: implicit declaration of function 'Z_RESVAL_P' [-Wimplicit-function-declaration] zend_list_delete(Z_RESVAL_P(z_mutex)); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:70:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:23: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int zend_list_delete(zend_resource *res); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:142:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.h:27:18: error: unknown type name 'zend_rsrc_list_entry' void _sdl_mutex (zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c: In function 'zif_sdl_mutexp': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:84:29: error: expected expression before 'SDL_mutex' ZEND_FETCH_RESOURCE(mutex, SDL_mutex *, &z_mutex, -1, le_mutex_name, le_mutex); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:143:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_joystick.h:27:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_joystick(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c: In function 'zif_sdl_mutexv': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_thread.c:100:29: error: expected expression before 'SDL_mutex' ZEND_FETCH_RESOURCE(mutex, SDL_mutex *, &z_mutex, -1, le_mutex_name, le_mutex); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:38:89: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "format", sizeof("format"), (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:39:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_audio.c:39:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_operators.h:251:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL convert_to_long(zval *op); ^ In file included from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.h:144:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:26: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:30:21: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiospec(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:31:20: error: unknown type name 'zend_rsrc_list_entry' void _sdl_audiocvt(zend_rsrc_list_entry *rsrc TSRMLS_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:42:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "channels", sizeof("channels"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:42:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "channels", sizeof("channels"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl_audio.c:42:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(zv_var), "channels", sizeof("channels"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:42:93: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "channels", sizeof("channels"), (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:43:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:56:27: error: unknown type name 'zend_rsrc_list_entry' static void _sdl_surface (zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:57:31: error: unknown type name 'zend_rsrc_list_entry' static void _sdl_pixelformat (zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:58:26: error: unknown type name 'zend_rsrc_list_entry' static void _sdl_cursor (zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:43:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:59:27: error: unknown type name 'zend_rsrc_list_entry' static void _sdl_overlay (zend_rsrc_list_entry *rsrc TSRMLS_DC) {} ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_audio.c:46:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "samples", sizeof("samples"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:46:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "samples", sizeof("samples"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl_audio.c:46:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(zv_var), "samples", sizeof("samples"), (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:46:91: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(zv_var), "samples", sizeof("samples"), (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:47:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_audio.c:47:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(zv_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_audio.c: In function 'convert_sdl_audiospec_to_zval': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:60:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL( zv_spec ); ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c: In function 'convert_zval_to_uint8': /usr/include/php/Zend/zend_hash.h:249:6: error: invalid type argument of '->' (have 'int') (ht)->nNextFreeElement ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:86:14: note: in expansion of macro 'zend_hash_next_free_element' var_count = zend_hash_next_free_element(Z_ARRVAL_PP(&zv_var)); ^ make: *** [php_sdl_thread.lo] Error 1 make: *** Waiting for unfinished jobs.... /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:92:3: warning: passing argument 1 of 'zend_hash_index_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_index_find(Z_ARRVAL_PP(&zv_var), i, (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:170:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:92:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_PP(&zv_var), i, (void **)&zv_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.h:22, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:19: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_audio.c:92:73: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_PP(&zv_var), i, (void **)&zv_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c: In function 'zif_sdl_peepevents': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:319:5: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(events_arg), 0, (void**)&tmp) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:319:71: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(events_arg), 0, (void**)&tmp) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:324:5: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] if (Z_TYPE_PP(tmp) == IS_LONG) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:344:11: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] get_active_function_name(TSRMLS_C), numevents, zend_hash_num_elements(Z_ARRVAL_PP(&events_arg))); ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_hash.h:246:6: error: invalid type argument of '->' (have 'int') (ht)->nNumOfElements ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:344:58: note: in expansion of macro 'zend_hash_num_elements' get_active_function_name(TSRMLS_C), numevents, zend_hash_num_elements(Z_ARRVAL_PP(&events_arg))); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:349:7: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(events_arg), i, (void**)&tmp) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:349:73: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(events_arg), i, (void**)&tmp) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:407:5: 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:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /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 ZEND_FILE_LINE_DC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c: In function 'zif_sdl_getkeyname': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:528:25: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(keyname,1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:528:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(keyname,1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:528:2: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:520:8: warning: variable 'keyname' set but not used [-Wunused-but-set-variable] char *keyname = NULL; ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c: In function 'zif_sdl_getmousestate': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:575:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&x_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_event.c:575:2: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&x_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_event.c:576:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&y_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_event.c:576:2: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&y_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_event.c: In function 'zif_sdl_getrelativemousestate': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:602:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&x_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_event.c:602:2: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&x_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl_event.c:603:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&y_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl_event.c:603:2: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&y_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl_event.c:23: /usr/include/php/Zend/zend_operators.h:251:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL convert_to_long(zval *op); ^ make: *** [php_sdl_audio.lo] Error 1 /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'php_sdl_init_globals': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:662:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(sdl_globals->user_events); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zm_startup_sdl': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:673:49: error: '_sdl_cdrom' undeclared (first use in this function) le_cdrom = zend_register_list_destructors_ex(_sdl_cdrom, NULL, le_cdrom_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:673:49: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:674:56: error: '_sdl_audiospec' undeclared (first use in this function) le_sdl_audiospec = zend_register_list_destructors_ex(_sdl_audiospec, NULL, le_sdl_audiospec_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:675:55: error: '_sdl_audiocvt' undeclared (first use in this function) le_sdl_audiocvt = zend_register_list_destructors_ex(_sdl_audiocvt, NULL, le_sdl_audiocvt_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:676:51: error: '_sdl_surface' undeclared (first use in this function) le_surface = zend_register_list_destructors_ex(_sdl_surface, NULL, le_surface_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:677:54: error: '_sdl_pixelformat' undeclared (first use in this function) le_pixelformat = zend_register_list_destructors_ex(_sdl_pixelformat, NULL, le_pixelformat_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:678:50: error: '_sdl_cursor' undeclared (first use in this function) le_cursor = zend_register_list_destructors_ex(_sdl_cursor, NULL, le_cursor_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:679:51: error: '_sdl_overlay' undeclared (first use in this function) le_overlay = zend_register_list_destructors_ex(_sdl_overlay, NULL, le_overlay_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:680:49: error: '_sdl_mutex' undeclared (first use in this function) le_mutex = zend_register_list_destructors_ex(_sdl_mutex, NULL, le_mutex_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:682:49: error: '_sdl_timer' undeclared (first use in this function) le_timer = zend_register_list_destructors_ex(_sdl_timer, NULL, le_timer_name, module_number); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:683:52: error: '_sdl_joystick' undeclared (first use in this function) le_joystick = zend_register_list_destructors_ex(_sdl_joystick, NULL, le_joystick_name, module_number); ^ make: *** [php_sdl_event.lo] Error 1 /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_listmodes': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1219:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(format_arg), "BitsPerPixel", sizeof("BitsPerPixel"), (void **)&BitsPerPixel_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1219:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(format_arg), "BitsPerPixel", sizeof("BitsPerPixel"), (void **)&BitsPerPixel_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1219:116: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(format_arg), "BitsPerPixel", sizeof("BitsPerPixel"), (void **)&BitsPerPixel_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1224:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(BitsPerPixel_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1224:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(BitsPerPixel_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1225:3: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] bpp = Z_LVAL_PP(BitsPerPixel_value); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_geterror': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1289:33: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(SDL_GetError(), 1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1289:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(SDL_GetError(), 1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_mustlock': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1327:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1327:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1327:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1333:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1333:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'php_array_to_sdl_color': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1348:2: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] if(zend_hash_find(Z_ARRVAL_PP(array), "r", sizeof("r"), (void **)&r) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1348:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1348:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "r", sizeof("r"), (void **)&r) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1348:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "r", sizeof("r"), (void **)&r) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1348:71: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "r", sizeof("r"), (void **)&r) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1349:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(r); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1349:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(r); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1353:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "g", sizeof("g"), (void **)&g) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1353:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "g", sizeof("g"), (void **)&g) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1353:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "g", sizeof("g"), (void **)&g) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1353:71: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "g", sizeof("g"), (void **)&g) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1354:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(g); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1354:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(g); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1358:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "b", sizeof("b"), (void **)&b) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1358:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "b", sizeof("b"), (void **)&b) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1358:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "b", sizeof("b"), (void **)&b) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1358:71: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "b", sizeof("b"), (void **)&b) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1359:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(b); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1359:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(b); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c: In function 'php_array_to_sdl_rect': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1373:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "x", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1373:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "x", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1373:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "x", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1373:84: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "x", character_size, (void **)&array_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1374:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1374:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1378:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "y", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1378:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "y", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1378:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "y", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1378:84: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "y", character_size, (void **)&array_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1379:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1379:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1383:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "w", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1383:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "w", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1383:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "w", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1383:84: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "w", character_size, (void **)&array_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1384:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1384:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c:1388:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "h", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1388:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "h", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1388:2: error: too many arguments to function 'zend_hash_find' if(zend_hash_find(Z_ARRVAL_PP(array), "h", character_size, (void **)&array_value) != FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1388:84: warning: comparison between pointer and integer [enabled by default] if(zend_hash_find(Z_ARRVAL_PP(array), "h", character_size, (void **)&array_value) != FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1389:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:1389:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(array_value); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c: In function 'php_sdl_php_array_to_sdl_event': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1589:7: warning: passing argument 2 of '_zend_get_parameters_array_ex' from incompatible pointer type [enabled by default] if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) { ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_API.h:260:14: note: expected 'struct zval *' but argument is of type 'struct zval ***' ZEND_API int _zend_get_parameters_array_ex(int param_count, zval *argument_array); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1596:8: warning: passing argument 1 of 'zval_add_ref' from incompatible pointer type [enabled by default] zval_add_ref(args[i]); ^ In file included from /usr/include/php/Zend/zend.h:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_variables.h:106: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-sdl-0.9.3/NTS/php_sdl.c: In function 'php_sdl_pixelformat_to_array': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1634:9: warning: assignment makes integer from pointer without a cast [enabled by default] handle = zend_list_insert(pixelformat, le_pixelformat TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1640:2: warning: passing argument 4 of 'add_assoc_resource_ex' makes pointer from integer without a cast [enabled by default] add_assoc_resource(pixelformat_array, "handle", handle); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_API.h:411:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1641:2: warning: implicit declaration of function 'zend_list_addref' [-Wimplicit-function-declaration] zend_list_addref(handle); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'php_sdl_surface_to_array': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1689:9: warning: assignment makes integer from pointer without a cast [enabled by default] handle = zend_list_insert(surface, le_surface TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1695:2: warning: passing argument 4 of 'add_assoc_resource_ex' makes pointer from integer without a cast [enabled by default] add_assoc_resource(surface_array, "handle", handle); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_API.h:411:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_videodrivername': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1782:65: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(SDL_VideoDriverName((char*)namebuf, (2048 - 1)),1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1782:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(SDL_VideoDriverName((char*)namebuf, (2048 - 1)),1); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1780:7: warning: unused variable 'namebuf' [-Wunused-variable] char namebuf[2048]; ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_updaterect': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1837:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1837:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1837:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1843:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_updaterects': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1871:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1871:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1871:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1877:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1906:4: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(rects_arg), i, (void **)&rect_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1906:77: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(rects_arg), i, (void **)&rect_array) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_flip': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1932:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(screen_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1932:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(screen_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1932:100: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(screen_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1938:30: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(screen, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setcolors': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1958:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:1958:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1958:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1964:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1969:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(colors_arg), i, (void **)&color) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:1969:72: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(colors_arg), i, (void **)&color) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setpalette': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2000:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2000:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2000:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2006:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2011:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(colors_arg), i, (void **)&color) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2011:72: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(colors_arg), i, (void **)&color) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setgammaramp': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2089:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(redtable_arg), i, (void **)&red) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2089:72: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(redtable_arg), i, (void **)&red) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2097:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(greentable_arg), i, (void **)&green) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2097:76: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(greentable_arg), i, (void **)&green) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2105:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(bluetable_arg), i, (void **)&blue) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2105:74: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(bluetable_arg), i, (void **)&blue) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_maprgb': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2131:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2131:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2131:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2137:27: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(fmt, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_maprgba': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2156:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2156:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2156:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2162:27: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(fmt, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_getrgb': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2182:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2182:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2182:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2188:27: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(fmt, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_getrgba': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2212:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2212:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2212:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2218:27: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(fmt, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_locksurface': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2266:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2266:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2266:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2272:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_unlocksurface': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2290:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2290:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2290:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2296:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_savebmp': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2335:2: error: unknown type name 'zend_uint' zend_uint pathlen; ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2341:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2341:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2341:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2347:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setcolorkey': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2366:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2366:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2366:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2372:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setalpha': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2391:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2391:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2391:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2397:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setcliprect': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2418:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2418:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2418:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2424:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2431:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "clip_rect", sizeof("clip_rect"), (void **)&clip_rect_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2431:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "clip_rect", sizeof("clip_rect"), (void **)&clip_rect_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2431:107: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "clip_rect", sizeof("clip_rect"), (void **)&clip_rect_array) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_getcliprect': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2457:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2457:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2457:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2463:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_convertsurface': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2489:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2489:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2489:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2495:27: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(src, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2497:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2497:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2497:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(fmt_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2503:27: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(fmt, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_blitsurface': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2533:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2533:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2533:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(src_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2539:27: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(src, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2541:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2541:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2541:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2547:27: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(dst, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2549:2: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] int dstRectIsNull = Z_TYPE_PP(&dstrect_arg) == IS_ARRAY ? 0 : 1; ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_fillrect': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2579:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2579:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2579:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(dst_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2585:27: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(dst, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2589:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_array_ex(&dstrect_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:2589:3: warning: passing argument 1 of 'convert_to_array' from incompatible pointer type [enabled by default] convert_to_array_ex(&dstrect_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:256:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL convert_to_array(zval *op); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_displayformat': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2616:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2616:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2616:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2622:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_displayformatalpha': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2649:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2649:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2649:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2655:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_createcursor': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2725:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(data_arg), i, (void **)&data_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2725:75: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(data_arg), i, (void **)&data_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2730:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(mask_arg), i, (void **)&mask_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2730:75: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(mask_arg), i, (void **)&mask_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2746:10: warning: assignment makes integer from pointer without a cast [enabled by default] handle = zend_list_insert(cursor, le_cursor TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2750:3: warning: implicit declaration of function 'RETURN_RESOURCE' [-Wimplicit-function-declaration] RETURN_RESOURCE(handle); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_freesurface': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2797:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2797:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2797:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2804:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2805:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(handle); ^ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2807:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "format", sizeof("format"), (void **)&format_array) == FAILURE) { ^ RPM build errors: In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2807:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "format", sizeof("format"), (void **)&format_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2807:98: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "format", sizeof("format"), (void **)&format_array) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2813:2: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(format_array), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2813:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(format_array), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2813:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(format_array), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2813:103: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(format_array), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2820:30: error: expected expression before 'SDL_PixelFormat' ZEND_FETCH_RESOURCE(format, SDL_PixelFormat *, handle_resource, -1, le_pixelformat_name, le_pixelformat); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2821:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(handle); ^ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_freecursor': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2838:30: error: expected expression before 'SDL_Cursor' ZEND_FETCH_RESOURCE(cursor, SDL_Cursor *, &cursor_arg, -1, le_cursor_name, le_cursor); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2840:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(Z_LVAL_P(cursor_arg)); ^ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'zend_long' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_setcursor': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2856:30: error: expected expression before 'SDL_Cursor' ZEND_FETCH_RESOURCE(cursor, SDL_Cursor *, &cursor_arg, -1, le_cursor_name, le_cursor); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_getcursor': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2877:10: warning: assignment makes integer from pointer without a cast [enabled by default] handle = zend_list_insert(cursor, le_cursor TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_gl_loadlibrary': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2909:5: error: unknown type name 'zend_uint' zend_uint pathlen; ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_gl_getattribute': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2946:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_long_ex(&value_arg); ^ In file included from /usr/include/php/Zend/zend.h:29:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_types.h:389: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-sdl-0.9.3/NTS/php_sdl.c:2946:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default] convert_to_long_ex(&value_arg); ^ In file included from /usr/include/php/Zend/zend.h:328:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_operators.h:251: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-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_createyuvoverlay': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2996:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(display_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:2996:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(display_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:2996:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(display_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3002:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(display, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3015:9: warning: assignment makes integer from pointer without a cast [enabled by default] handle = zend_list_insert(overlay, le_overlay TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3021:2: warning: passing argument 4 of 'add_assoc_resource_ex' makes pointer from integer without a cast [enabled by default] add_assoc_resource(return_value, "handle", handle); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_API.h:411:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_lockyuvoverlay': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3044:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3044:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3044:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3050:31: error: expected expression before 'SDL_Overlay' ZEND_FETCH_RESOURCE(overlay, SDL_Overlay *, handle_resource, -1, le_overlay_name, le_overlay); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_unlockyuvoverlay': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3068:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3068:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3068:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3074:31: error: expected expression before 'SDL_Overlay' ZEND_FETCH_RESOURCE(overlay, SDL_Overlay *, handle_resource, -1, le_overlay_name, le_overlay); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_displayyuvoverlay': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3093:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3093:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3093:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3099:31: error: expected expression before 'SDL_Overlay' ZEND_FETCH_RESOURCE(overlay, SDL_Overlay *, handle_resource, -1, le_overlay_name, le_overlay); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_freeyuvoverlay': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3120:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3120:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3120:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(overlay_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3127:31: error: expected expression before 'SDL_Overlay' ZEND_FETCH_RESOURCE(overlay, SDL_Overlay *, handle_resource, -1, le_overlay_name, le_overlay); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3128:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(handle); ^ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'int' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_getpixels': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3151:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3151:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3151:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3157:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:249:6: error: invalid type argument of '->' (have 'int') (ht)->nNextFreeElement ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3159:17: note: in expansion of macro 'zend_hash_next_free_element' pixels_count = zend_hash_next_free_element(Z_ARRVAL_PP(&pixels_arg)); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3162:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(pixels_arg), i, (void **)&pixel_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3162:78: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(pixels_arg), i, (void **)&pixel_array) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3167:3: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3167:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3167:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3167:85: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3176:3: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3176:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3176:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3176:85: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'zif_sdl_putpixels': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3224:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3224:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3224:101: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(surface_arg), "handle", sizeof("handle"), (void **)&handle_resource) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3230:31: error: expected expression before 'SDL_Surface' ZEND_FETCH_RESOURCE(surface, SDL_Surface *, handle_resource, -1, le_surface_name, le_surface); ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:249:6: error: invalid type argument of '->' (have 'int') (ht)->nNextFreeElement ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3232:17: note: in expansion of macro 'zend_hash_next_free_element' pixels_count = zend_hash_next_free_element(Z_ARRVAL_PP(&pixels_arg)); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3235:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_P(pixels_arg), i, (void **)&pixel_array) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:170:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3235:78: warning: comparison between pointer and integer [enabled by default] if (zend_hash_index_find(Z_ARRVAL_P(pixels_arg), i, (void **)&pixel_array) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3240:3: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3240:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3240:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3240:85: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "x", sizeof("x"), (void **)&x_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3246:3: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3246:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3246:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3246:85: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "y", sizeof("y"), (void **)&y_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3252:3: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "pixel", sizeof("pixel"), (void **)&pixel_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3252:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "pixel", sizeof("pixel"), (void **)&pixel_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3252:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "pixel", sizeof("pixel"), (void **)&pixel_value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3252:97: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_PP(pixel_array), "pixel", sizeof("pixel"), (void **)&pixel_value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c: In function 'php_sdl_find_key_with_type': /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3299:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(Z_ARRVAL_P(array), key, key_len, (void**)value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168: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-sdl-0.9.3/NTS/php_sdl.c:3299:2: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(Z_ARRVAL_P(array), key, key_len, (void**)value) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:34:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:23: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3299:69: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(Z_ARRVAL_P(array), key, key_len, (void**)value) == FAILURE) { ^ /builddir/build/BUILD/php-pecl-sdl-0.9.3/NTS/php_sdl.c:3306:8: error: 'zval' has no member named 'type' dummy.type = expected_type; ^ make: *** [php_sdl.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.UJS2Et (%build) Bad exit status from /var/tmp/rpm-tmp.UJS2Et (%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 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, 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 /builddir/build/SPECS/php-pecl-sdl.spec