Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-sqlite.spec'], chrootPath='/var/lib/mock/community-php72-armhfp-c5190c88f975f44f4159aab2ffc47c8e8f67c3a3/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-sqlite.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: line 0: fg: no job control sh: line 0: fg: no job control Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/php-pecl-sqlite-2.0.0-0.9.svn332053.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-sqlite.spec'], chrootPath='/var/lib/mock/community-php72-armhfp-c5190c88f975f44f4159aab2ffc47c8e8f67c3a3/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-sqlite.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.SDwlz9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php-pecl-sqlite-2.0.0 + /usr/bin/mkdir -p php-pecl-sqlite-2.0.0 + cd php-pecl-sqlite-2.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/sqlite-svn332053.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv sqlite/package.xml . + mv sqlite NTS + sed -i -e '/stable/s/stable/beta/' package.xml + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + cd NTS ++ sed -n '/#define PHP_SQLITE_MODULE_VERSION/{s/.*\t"//;s/".*$//;p}' sqlite.c + extver=2.0-dev + test x2.0-dev '!=' x2.0-dev + cd .. + cat + cp -pr NTS ZTS + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.twE9hl + umask 022 + cd /builddir/build/BUILD + cd php-pecl-sqlite-2.0.0 + cd NTS + /usr/bin/phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 + 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-sqlite=/usr --enable-pdo --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 sqlite support... yes, shared checking for pdo driver... yes checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... no checking for PDO includes... checking for PDO includes... /usr/include/php/ext checking for sqlite_open in -lsqlite... yes checking for usleep... yes checking for nanosleep... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert armv7hl-redhat-linux-gnu file names to armv7hl-redhat-linux-gnu format... func_convert_file_noop checking how to convert armv7hl-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for armv7hl-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for armv7hl-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for armv7hl-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for armv7hl-redhat-linux-gnu-strip... no checking for strip... strip checking for armv7hl-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for armv7hl-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: 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-sqlite-2.0.0/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c -o sqlite.lo /bin/sh /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c -o sess_sqlite.lo /bin/sh /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c -o pdo_sqlite2.lo /bin/sh /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libsqlite/src/encode.c -o libsqlite/src/encode.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c -fPIC -DPIC -o .libs/sqlite.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c -fPIC -DPIC -o .libs/sess_sqlite.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c -fPIC -DPIC -o .libs/pdo_sqlite2.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/include -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/main -I/builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libsqlite/src/encode.c -fPIC -DPIC -o libsqlite/src/.libs/encode.o /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libsqlite/src/encode.c: In function 'sqlite_encode_binary': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/libsqlite/src/encode.c:150:10: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized] out[0] = e; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c: In function 'pdo_sqlite2_stmt_describe': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:181:28: warning: assignment from incompatible pointer type [enabled by default] stmt->columns[colno].name = estrdup(S->colnames[colno]); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:182:22: error: 'struct pdo_column_data' has no member named 'namelen' stmt->columns[colno].namelen = strlen(stmt->columns[colno].name); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:182:2: warning: passing argument 1 of 'strlen' from incompatible pointer type [enabled by default] stmt->columns[colno].namelen = strlen(stmt->columns[colno].name); ^ In file included from /usr/include/php/main/../main/php_config.h:2583:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:45, from /usr/include/php/Zend/zend_types.h:27, from /usr/include/php/Zend/zend.h:29, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:23: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'struct zend_string *' extern size_t strlen (const char *__s) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:222:2: warning: initialization from incompatible pointer type [enabled by default] pdo_sqlite2_stmt_fetch, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:222:2: warning: (near initialization for 'sqlite2_stmt_methods.fetcher') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:224:2: warning: initialization from incompatible pointer type [enabled by default] pdo_sqlite2_stmt_get_col, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:224:2: warning: (near initialization for 'sqlite2_stmt_methods.get_col') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c: In function 'pdo_sqlite2_fetch_error_func': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:313:4: error: too many arguments to function 'add_next_index_string' add_next_index_string(info, einfo->errmsg, 1); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:23: /usr/include/php/Zend/zend_API.h:450:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c: In function 'pdo_sqlite2_get_attribute': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:456:60: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)sqlite_libversion(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:456:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, (char *)sqlite_libversion(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:456:4: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:502:2: warning: initialization from incompatible pointer type [enabled by default] sqlite2_handle_preparer, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:502:2: warning: (near initialization for 'sqlite2_methods.preparer') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:503:2: warning: initialization from incompatible pointer type [enabled by default] sqlite2_handle_doer, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:503:2: warning: (near initialization for 'sqlite2_methods.doer') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:504:2: warning: initialization from incompatible pointer type [enabled by default] sqlite2_handle_quoter, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:504:2: warning: (near initialization for 'sqlite2_methods.quoter') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:508:2: warning: initialization from incompatible pointer type [enabled by default] pdo_sqlite2_set_attr, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:508:2: warning: (near initialization for 'sqlite2_methods.set_attribute') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:511:2: warning: initialization from incompatible pointer type [enabled by default] pdo_sqlite2_get_attribute, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/pdo_sqlite2.c:511:2: warning: (near initialization for 'sqlite2_methods.get_attribute') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c: In function 'ps_read_sqlite': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:93:3: error: 'vallen' undeclared (first use in this function) *vallen = 0; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:93:3: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:114:6: warning: pointer targets in passing argument 1 of 'sqlite_decode_binary' differ in signedness [-Wpointer-sign] *vallen = sqlite_decode_binary(rowdata[0], *val); ^ In file included from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:28:0: /usr/include/sqlite.h:880:5: note: expected 'const unsigned char *' but argument is of type 'const char *' int sqlite_decode_binary(const unsigned char *in, unsigned char *out); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:114:6: warning: passing argument 2 of 'sqlite_decode_binary' from incompatible pointer type [enabled by default] *vallen = sqlite_decode_binary(rowdata[0], *val); ^ In file included from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:28:0: /usr/include/sqlite.h:880:5: note: expected 'unsigned char *' but argument is of type 'struct zend_string *' int sqlite_decode_binary(const unsigned char *in, unsigned char *out); ^ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:22: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c: In function 'ps_write_sqlite': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:148:28: error: 'vallen' undeclared (first use in this function) binary = safe_emalloc(1 + vallen / 254, 257, 3); ^ /usr/include/php/Zend/zend_alloc.h:162:58: note: in definition of macro 'safe_emalloc' #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:149:2: warning: pointer targets in passing argument 3 of 'sqlite_encode_binary' differ in signedness [-Wpointer-sign] binlen = sqlite_encode_binary((const unsigned char*)val, vallen, binary); ^ In file included from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:28:0: /usr/include/sqlite.h:868:5: note: expected 'unsigned char *' but argument is of type 'char *' int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sess_sqlite.c:143:6: warning: variable 'binlen' set but not used [-Wunused-but-set-variable] int binlen; ^ make: *** [pdo_sqlite2.lo] Error 1 make: *** Waiting for unfinished jobs.... make: *** [sess_sqlite.lo] Error 1 /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_callback_invalidator': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:649:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&funcs->step); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:654:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&funcs->fini); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_db_dtor': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:677:6: error: 'rsrc' undeclared (first use in this function) if (rsrc->ptr) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:677:6: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'real_result_dtor': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:720:3: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(res->db->rsrc_id); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'long int' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:725:38: error: unknown type name 'zend_rsrc_list_entry' static int _clean_unfinished_results(zend_rsrc_list_entry *le, void *db TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_result_dtor': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:738:28: error: 'res' redeclared as different kind of symbol struct php_sqlite_result *res = (struct php_sqlite_result *)rsrc->ptr; ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_list.h:31:60: note: previous definition of 'res' was here #define ZEND_RSRC_DTOR_FUNC(name) void name(zend_resource *res) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:736:8: note: in expansion of macro 'ZEND_RSRC_DTOR_FUNC' static ZEND_RSRC_DTOR_FUNC(php_sqlite_result_dtor) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:738:62: error: 'rsrc' undeclared (first use in this function) struct php_sqlite_result *res = (struct php_sqlite_result *)rsrc->ptr; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:742:52: error: unknown type name 'zend_rsrc_list_entry' static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zm_deactivate_sqlite': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:763:54: error: 'php_sqlite_forget_persistent_id_numbers' undeclared (first use in this function) zend_hash_apply(&EG(persistent_list), (apply_func_t)php_sqlite_forget_persistent_id_numbers TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_generic_function_callback': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:783:42: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(&funcname, (char*)argv[0], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:783:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(&funcname, (char*)argv[0], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:785:2: warning: passing argument 2 of 'zend_make_callable' from incompatible pointer type [enabled by default] if (!zend_make_callable(&funcname, &callable TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:330:20: note: expected 'struct zend_string **' but argument is of type 'char **' ZEND_API zend_bool zend_make_callable(zval *callable, zend_string **callable_name); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:799:4: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(*zargs[i]); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:800:46: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(*zargs[i], (char*)argv[i+1], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:804:2: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:804:2: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval ***' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:823:10: error: 'IS_BOOL' undeclared (first use in this function) case IS_BOOL: ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:844:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:849:4: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(zargs[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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_function_callback': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:881:45: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(*zargs[i], (char*)argv[i], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:881:5: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(*zargs[i], (char*)argv[i], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:886:2: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:886:2: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval ***' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:904:10: error: 'IS_BOOL' undeclared (first use in this function) case IS_BOOL: ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:920:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:925:4: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(zargs[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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_agg_step_function_callback': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:961:3: warning: implicit declaration of function 'Z_SET_ISREF_PP' [-Wimplicit-function-declaration] Z_SET_ISREF_PP(context_p); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:962:3: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] Z_TYPE_PP(context_p) = IS_NULL; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:962:24: error: lvalue required as left operand of assignment Z_TYPE_PP(context_p) = IS_NULL; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:974:46: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(*zargs[i+1], (char*)argv[i], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:974:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(*zargs[i+1], (char*)argv[i], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:978:2: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:978:2: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval ***' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:991:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:996:4: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(zargs[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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_agg_fini_function_callback': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1020:2: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1020:2: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [enabled by default] res = call_user_function_ex(EG(function_table), ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:489:14: note: expected 'struct zval *' but argument is of type 'struct zval ***' ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1038:10: error: 'IS_BOOL' undeclared (first use in this function) case IS_BOOL: ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1054:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval); ^ In file included from /usr/include/php/Zend/zend.h:37:0, from /usr/include/php/main/php.h:35, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:1057:2: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(context_p); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1129:35: error: unknown type name 'zend_rsrc_list_entry' static int sqlite_free_persistent(zend_rsrc_list_entry *le, void *ptr TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_object_free_storage': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1143:5: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default] zend_list_delete(intern->u.db->rsrc_id); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'long int' ZEND_API int zend_list_delete(zend_resource *res); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1144:76: error: 'sqlite_free_persistent' undeclared (first use in this function) zend_hash_apply_with_argument(&EG(persistent_list), (apply_func_arg_t) sqlite_free_persistent, &intern->u.ptr TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1154:93: error: unknown type name 'zend_object_value' static void sqlite_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, zend_object_value *retval TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1168:1: error: unknown type name 'zend_object_value' static zend_object_value sqlite_object_new_db(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_object_new_db': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1170:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1172:2: warning: implicit declaration of function 'sqlite_object_new' [-Wimplicit-function-declaration] sqlite_object_new(class_type, &sqlite_object_handlers_db, &retval TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1176:1: error: unknown type name 'zend_object_value' static zend_object_value sqlite_object_new_query(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_object_new_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1178:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1184:1: error: unknown type name 'zend_object_value' static zend_object_value sqlite_object_new_ub_query(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_object_new_ub_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1186:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1192:1: error: unknown type name 'zend_object_value' static zend_object_value sqlite_object_new_exception(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_object_new_exception': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1194:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_instanciate': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1221:3: warning: implicit declaration of function 'ALLOC_ZVAL' [-Wimplicit-function-declaration] ALLOC_ZVAL(object); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1223:19: error: lvalue required as left operand of assignment Z_TYPE_P(object) = IS_OBJECT; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1226:2: warning: implicit declaration of function 'Z_SET_ISREF_P' [-Wimplicit-function-declaration] Z_SET_ISREF_P(object); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_iterator_dtor': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1238:2: error: cannot convert to a pointer type zval *object = (zval*)((sqlite_object_iterator*)iter)->it.data; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1241:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&((sqlite_object_iterator*)iter)->value); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:1244:2: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&object); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_iterator_rewind': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1253:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&((sqlite_object_iterator*)iter)->value); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_iterator_move_forward': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1299:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&((sqlite_object_iterator*)iter)->value); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1318:2: warning: initialization from incompatible pointer type [enabled by default] sqlite_iterator_get_current_data, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1318:2: warning: (near initialization for 'sqlite_ub_query_iterator_funcs.get_current_data') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1319:2: warning: initialization from incompatible pointer type [enabled by default] sqlite_iterator_get_current_key, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1319:2: warning: (near initialization for 'sqlite_ub_query_iterator_funcs.get_current_key') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1327:2: warning: initialization from incompatible pointer type [enabled by default] sqlite_iterator_get_current_data, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1327:2: warning: (near initialization for 'sqlite_query_iterator_funcs.get_current_data') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1328:2: warning: initialization from incompatible pointer type [enabled by default] sqlite_iterator_get_current_key, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1328:2: warning: (near initialization for 'sqlite_query_iterator_funcs.get_current_key') [enabled by default] /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_get_iterator': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1337:2: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] sqlite_object *obj = (sqlite_object*) zend_object_store_get_object(object TSRMLS_CC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1343:20: error: incompatible types when assigning to type 'zval' from type 'void *' iterator->it.data = (void*)object; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zm_startup_sqlite': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1099:20: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = sqlite_object_new_ ## c_name; \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1358:2: note: in expansion of macro 'REGISTER_SQLITE_CLASS' REGISTER_SQLITE_CLASS(Database, db, NULL); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1358:2: error: too many arguments to function 'zend_register_internal_class_ex' In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1103:37: error: 'ZEND_ACC_FINAL_CLASS' undeclared (first use in this function) sqlite_ce_ ## c_name->ce_flags |= ZEND_ACC_FINAL_CLASS; \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1358:2: note: in expansion of macro 'REGISTER_SQLITE_CLASS' REGISTER_SQLITE_CLASS(Database, db, NULL); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1099:20: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = sqlite_object_new_ ## c_name; \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1359:2: note: in expansion of macro 'REGISTER_SQLITE_CLASS' REGISTER_SQLITE_CLASS(Result, query, NULL); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1359:2: error: too many arguments to function 'zend_register_internal_class_ex' In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1099:20: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = sqlite_object_new_ ## c_name; \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1360:2: note: in expansion of macro 'REGISTER_SQLITE_CLASS' REGISTER_SQLITE_CLASS(Unbuffered, ub_query, NULL); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1360:2: error: too many arguments to function 'zend_register_internal_class_ex' In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1099:20: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = sqlite_object_new_ ## c_name; \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1362:2: note: in expansion of macro 'REGISTER_SQLITE_CLASS' REGISTER_SQLITE_CLASS(Exception, exception, spl_ce_RuntimeException); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1362:2: error: too many arguments to function 'zend_register_internal_class_ex' In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1370:30: error: 'zend_object_handlers' has no member named 'get_class_entry' sqlite_object_handlers_query.get_class_entry = sqlite_get_ce_query; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1371:33: error: 'zend_object_handlers' has no member named 'get_class_entry' sqlite_object_handlers_ub_query.get_class_entry = sqlite_get_ce_ub_query; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1372:49: warning: assignment from incompatible pointer type [enabled by default] sqlite_object_handlers_ub_query.count_elements = sqlite_count_elements; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_open': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1475:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1475:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1494:2: warning: passing argument 3 of '_zend_hash_init' from incompatible pointer type [enabled by default] zend_hash_init(&db->callbacks, 0, NULL, php_sqlite_callback_dtor, db->is_persistent); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_hash.h:71:29: note: expected 'dtor_func_t' but argument is of type 'void (*)(void *)' ZEND_API void ZEND_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1510:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE' [-Wimplicit-function-declaration] db->rsrc_id = ZEND_REGISTER_RESOURCE(object ? NULL : return_value, db, persistent_id ? le_sqlite_pdb : le_sqlite_db); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1521:3: error: unknown type name 'zend_rsrc_list_entry' zend_rsrc_list_entry le; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1523:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] Z_TYPE(le) = le_sqlite_pdb; ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_types.h:389:38: note: expected 'const struct zval *' but argument is of type 'int *' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1523:14: error: lvalue required as left operand of assignment Z_TYPE(le) = le_sqlite_pdb; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1524:5: error: request for member 'ptr' in something not a structure or union le.ptr = db; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1528:35: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 (void *)&le, sizeof(le), NULL)) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1526:18: error: 'zend_hash_update' undeclared (first use in this function) if (FAILURE == zend_hash_update(&EG(persistent_list), persistent_id, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_popen': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1545:2: error: unknown type name 'zend_rsrc_list_entry' zend_rsrc_list_entry *le; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1573:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (SUCCESS == zend_hash_find(&EG(persistent_list), hashkey, hashkeylen+1, (void*)&le)) { ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:1573:2: error: too many arguments to function 'zend_hash_find' if (SUCCESS == zend_hash_find(&EG(persistent_list), hashkey, hashkeylen+1, (void*)&le)) { ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:1574:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] if (Z_TYPE_P(le) == le_sqlite_pdb) { ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_types.h:389:38: note: expected 'const struct zval *' but argument is of type 'int *' static zend_always_inline zend_uchar zval_get_type(const zval* pz) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1575:34: error: request for member 'ptr' in something not a structure or union db = (struct php_sqlite_db*)le->ptr; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1584:5: warning: implicit declaration of function 'zend_list_find' [-Wimplicit-function-declaration] if (zend_list_find(db->rsrc_id, &type) == db) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1584:44: warning: comparison between pointer and integer [enabled by default] if (zend_list_find(db->rsrc_id, &type) == db) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1586:6: warning: implicit declaration of function 'zend_list_addref' [-Wimplicit-function-declaration] zend_list_addref(db->rsrc_id); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1587:6: warning: implicit declaration of function 'ZVAL_RESOURCE' [-Wimplicit-function-declaration] ZVAL_RESOURCE(return_value, db->rsrc_id); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_busy_timeout': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1724:3: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE2' [-Wimplicit-function-declaration] DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1724:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_close': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1745:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1749:22: error: '_clean_unfinished_results' undeclared (first use in this function) (apply_func_arg_t) _clean_unfinished_results, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1752:2: warning: implicit declaration of function 'Z_RESVAL_P' [-Wimplicit-function-declaration] zend_list_delete(Z_RESVAL_P(zdb)); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1752: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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'sqlite_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1860:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1860:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_unbuffered_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1938:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1949:7: error: 'return_value_used' undeclared (first use in this function) if (!return_value_used) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1955:35: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1955:5: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_fetch_column_types': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1992:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2026:101: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(return_value, colname, colnames[ncols + i] ? (char *)colnames[ncols + i] : "", 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2026:4: error: 'add_assoc_string' undeclared (first use in this function) add_assoc_string(return_value, colname, colnames[ncols + i] ? (char *)colnames[ncols + i] : "", 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2030:4: error: too many arguments to function 'add_index_string' add_index_string(return_value, i, colnames[ncols + i] ? (char *)colnames[ncols + i] : "", 1); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:440:14: note: declared here ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2065:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2076:7: error: 'return_value_used' undeclared (first use in this function) if (!return_value_used) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2082:35: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2082:5: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_exec': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2116:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2131:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2131:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(errmsg, errtext, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_fetch_array': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2169:24: error: incompatible types when assigning to type 'char[1]' from type 'void *' Z_STRVAL_P(decoded) = emalloc(strlen(rowdata[j])); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2172:22: error: lvalue required as left operand of assignment Z_TYPE_P(decoded) = IS_STRING; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2178:52: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(decoded, (char*)rowdata[j], buffered); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2178:4: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(decoded, (char*)rowdata[j], buffered); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_fetch_column': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2224:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_string_ex(&which); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:2224:3: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default] convert_to_string_ex(&which); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:2224:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default] convert_to_string_ex(&which); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_operators.h:250:29: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2249:31: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(decoded, l, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2249:3: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(decoded, l, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2255:49: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1 RETVAL_STRING((char*)rowdata[j], res->buffered); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2255:3: error: 'RETVAL_STRING' undeclared (first use in this function) RETVAL_STRING((char*)rowdata[j], res->buffered); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_fetch_all': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2285:3: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2285:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_fetch_array': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2331:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_fetch_object': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2366:44: warning: the address of 'error_handling' will always evaluate as 'true' [-Waddress] RES_FROM_OBJECT_RESTORE_ERH(res, object, &error_handling); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:123:8: note: in definition of macro 'RES_FROM_OBJECT_RESTORE_ERH' if (error_handling) \ ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2370:4: warning: passing argument 1 of 'zend_fetch_class' from incompatible pointer type [enabled by default] ce = zend_fetch_class(class_name, class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:31:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_execute.h:299:28: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2370:4: error: too many arguments to function 'zend_fetch_class' ce = zend_fetch_class(class_name, class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:31:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_execute.h:299:28: note: declared here ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2377:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2381:4: warning: passing argument 1 of 'zend_fetch_class' from incompatible pointer type [enabled by default] ce = zend_fetch_class(class_name, class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:31:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_execute.h:299:28: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2381:4: error: too many arguments to function 'zend_fetch_class' ce = zend_fetch_class(class_name, class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:31:0, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_execute.h:299:28: note: declared here ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2399:2: error: too many arguments to function 'zend_merge_properties' zend_merge_properties(return_value, Z_ARRVAL(dataset), 1 TSRMLS_CC); ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:406:15: note: declared here ZEND_API void zend_merge_properties(zval *obj, HashTable *properties); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2405:6: error: 'zend_fcall_info' has no member named 'function_table' fci.function_table = &ce->function_table; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2406:21: error: incompatible types when assigning to type 'zval' from type 'void *' fci.function_name = NULL; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2407:6: error: 'zend_fcall_info' has no member named 'symbol_table' fci.symbol_table = NULL; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2408:6: error: 'zend_fcall_info' has no member named 'object_ptr' fci.object_ptr = return_value; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2409:6: error: 'zend_fcall_info' has no member named 'retval_ptr_ptr' fci.retval_ptr_ptr = &retval_ptr; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2417:11: error: 'HashTable' has no member named 'pListHead' p = ht->pListHead; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2419:47: error: 'Bucket' has no member named 'pData' fci.params[fci.param_count++] = (zval**)p->pData; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2420:11: error: 'Bucket' has no member named 'pListNext' p = p->pListNext; ^ In file included from /usr/include/php/Zend/zend_globals.h:28:0, from /usr/include/php/Zend/zend_compile.h:702, from /usr/include/php/Zend/zend_modules.h:26, from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_globals_macros.h:46:33: error: 'zend_executor_globals' has no member named 'scope' # define EG(v) (executor_globals.v) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2440:23: note: in expansion of macro 'EG' fcc.calling_scope = EG(scope); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2442:6: error: 'zend_fcall_info_cache' has no member named 'object_ptr' fcc.object_ptr = return_value; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2448:5: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&retval_ptr); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_array_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2485:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2491:7: error: 'return_value_used' undeclared (first use in this function) if (!return_value_used) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'php_sqlite_fetch_single': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2570:41: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2 RETURN_STRINGL(decoded, decoded_len, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2570:3: error: 'RETURN_STRINGL' undeclared (first use in this function) RETURN_STRINGL(decoded, decoded_len, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_single_query': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2601:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2607:7: error: 'return_value_used' undeclared (first use in this function) if (!return_value_used) { ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2640:5: warning: implicit declaration of function 'FREE_ZVAL' [-Wimplicit-function-declaration] FREE_ZVAL(ent); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_fetch_single': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2673:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_current': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2702:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_column': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2731:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_libversion': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2745:45: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING((char*)sqlite_libversion(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2745:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING((char*)sqlite_libversion(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_libencoding': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2756:46: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING((char*)sqlite_libencoding(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2756:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING((char*)sqlite_libencoding(), 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_changes': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2777:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_last_insert_rowid': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2801:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_num_rows': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2843:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_valid': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2872:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_has_prev': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2896:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_num_fields': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2925:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_field_name': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2950:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2958:40: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(res->col_names[field], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2958:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(res->col_names[field], 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_seek': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:2980:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_rewind': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3015:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_next': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3050:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_key': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3085:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_prev': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3109:28: error: expected expression before 'struct' ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_escape_string': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3147:34: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(ret, enclen+1, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3147:3: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(ret, enclen+1, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3142:7: warning: variable 'enclen' set but not used [-Wunused-but-set-variable] int enclen; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3152:24: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1 RETVAL_STRING(ret, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3152:4: error: 'RETVAL_STRING' undeclared (first use in this function) RETVAL_STRING(ret, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_last_error': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3178:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_error_string': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3199:30: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING((char*)msg, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3199:3: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING((char*)msg, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'prep_callback_struct': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3222:2: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (SUCCESS == zend_hash_find(&db->callbacks, hashkey, hashkeylen+1, (void*)&alloc_funcs)) { ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:3222:2: error: too many arguments to function 'zend_hash_find' if (SUCCESS == zend_hash_find(&db->callbacks, hashkey, hashkeylen+1, (void*)&alloc_funcs)) { ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:3229:5: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&alloc_funcs->step); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:3234:5: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&alloc_funcs->fini); ^ 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-sqlite-2.0.0/NTS/sqlite.c:29: /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-sqlite-2.0.0/NTS/sqlite.c:3245:61: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 (void*)&func_tmp, sizeof(func_tmp), (void**)&alloc_funcs) ? DO_REG : ERR; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3244:20: error: 'zend_hash_update' undeclared (first use in this function) ret = SUCCESS == zend_hash_update(&db->callbacks, hashkey, hashkeylen+1, ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3253:2: warning: implicit declaration of function 'INIT_PZVAL' [-Wimplicit-function-declaration] INIT_PZVAL(alloc_funcs->step); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3214:48: warning: variable 'func_tmp' set but not used [-Wunused-but-set-variable] struct php_sqlite_agg_functions *alloc_funcs, func_tmp; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_create_aggregate': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3292:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3295:2: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [enabled by default] if (!zend_is_callable(zstep, 0, &callable TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:329:20: note: expected 'struct zend_string **' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint32_t check_flags, zend_string **callable_name); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3302:2: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [enabled by default] if (!zend_is_callable(zfinal, 0, &callable TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:329:20: note: expected 'struct zend_string **' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint32_t check_flags, zend_string **callable_name); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_create_function': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:105:55: error: expected expression before 'struct' #define DB_FROM_ZVAL(db, zv) ZEND_FETCH_RESOURCE2(db, struct php_sqlite_db *, zv, -1, "sqlite database", le_sqlite_db, le_sqlite_pdb) ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3343:3: note: in expansion of macro 'DB_FROM_ZVAL' DB_FROM_ZVAL(db, &zdb); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3346:2: warning: passing argument 3 of 'zend_is_callable' from incompatible pointer type [enabled by default] if (!zend_is_callable(zcall, 0, &callable TSRMLS_CC)) { ^ In file included from /usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:29: /usr/include/php/Zend/zend_API.h:329:20: note: expected 'struct zend_string **' but argument is of type 'char **' ZEND_API zend_bool zend_is_callable(zval *callable, uint32_t check_flags, zend_string **callable_name); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_udf_encode_binary': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3381:34: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(ret, enclen+1, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3381:3: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(ret, enclen+1, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3375:7: warning: variable 'enclen' set but not used [-Wunused-but-set-variable] int enclen; ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3383:34: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(data, datalen, 1); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: In function 'zif_sqlite_udf_decode_binary': /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3410:32: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(ret, enclen, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3410:3: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(ret, enclen, 0); ^ /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:3412:34: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(data, datalen, 1); ^ RPM build errors: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c: At top level: /builddir/build/BUILD/php-pecl-sqlite-2.0.0/NTS/sqlite.c:1134:13: warning: 'sqlite_object_free_storage' defined but not used [-Wunused-function] static void sqlite_object_free_storage(void *object TSRMLS_DC) ^ make: *** [sqlite.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.twE9hl (%build) Bad exit status from /var/tmp/rpm-tmp.twE9hl (%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-sqlite.spec