D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/php-libvirt-0.5.5-2.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.E3tFBK + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf libvirt-php-0.5.5 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/libvirt-php-0.5.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libvirt-php-0.5.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.g7ea3I + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd libvirt-php-0.5.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection) + ./configure --host=aarch64-mageia-linux-gnu --build=aarch64-mageia-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-html-dir=/usr/share/doc --with-html-subdir=php-libvirt/html --libdir=/usr/lib64/php/extensions --with-php-confdir=/etc/php.d checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports the include directive... yes (GNU style) checking for aarch64-mageia-linux-gnu-gcc... aarch64-mageia-linux-gnu-gcc 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 aarch64-mageia-linux-gnu-gcc accepts -g... yes checking for aarch64-mageia-linux-gnu-gcc option to accept ISO C89... none needed checking whether aarch64-mageia-linux-gnu-gcc understands -c and -o together... yes checking dependency style of aarch64-mageia-linux-gnu-gcc... none checking how to run the C preprocessor... aarch64-mageia-linux-gnu-gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking build system type... aarch64-mageia-linux-gnu checking host system type... aarch64-mageia-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by aarch64-mageia-linux-gnu-gcc... /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/aarch64-mageia-linux-gnu-nm -p checking the name lister (/usr/bin/aarch64-mageia-linux-gnu-nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-mageia-linux-gnu file names to aarch64-mageia-linux-gnu format... func_convert_file_noop checking how to convert aarch64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for aarch64-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for aarch64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for aarch64-mageia-linux-gnu-ar... aarch64-mageia-linux-gnu-ar checking for archiver @FILE support... @ checking for aarch64-mageia-linux-gnu-strip... no checking for strip... strip checking for aarch64-mageia-linux-gnu-ranlib... aarch64-mageia-linux-gnu-ranlib checking command to parse /usr/bin/aarch64-mageia-linux-gnu-nm -p output from aarch64-mageia-linux-gnu-gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for aarch64-mageia-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 aarch64-mageia-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for aarch64-mageia-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if aarch64-mageia-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if aarch64-mageia-linux-gnu-gcc static flag -static works... no checking if aarch64-mageia-linux-gnu-gcc supports -c -o file.o... yes checking if aarch64-mageia-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the aarch64-mageia-linux-gnu-gcc 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 checking whether make supports nested variables... (cached) yes checking for aarch64-mageia-linux-gnu-gcc... (cached) aarch64-mageia-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether aarch64-mageia-linux-gnu-gcc accepts -g... (cached) yes checking for aarch64-mageia-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether aarch64-mageia-linux-gnu-gcc understands -c and -o together... (cached) yes checking dependency style of aarch64-mageia-linux-gnu-gcc... (cached) none checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for gawk... (cached) gawk checking for echo... /usr/bin/echo checking for aarch64-mageia-linux-gnu-rm... rm -f checking for aarch64-mageia-linux-gnu-pkg-config... /usr/bin/aarch64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for how to set DSO symbol versions... -Wl,--version-script= checking for libvirt >= 1.2.13... yes checking for libvirt-qemu... yes checking for libxml-2.0 >= 2.0.0... yes checking for xsltproc... /usr/bin/xsltproc checking for xmllint... /usr/bin/xmllint checking for xmlcatalog... /usr/bin/xmlcatalog checking for php-config... /usr/bin/php-config checking for phpize... /usr/bin/phpize checking for php module imagick... found checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating tools/Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating docs/Makefile config.status: creating libvirt-php.spec config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: php-extensiondir: /usr/lib64/php/extensions configure: php-confdir: /etc/php.d + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in tools make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o generate-api-docs.o generate-api-docs.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' /bin/sh ../libtool --tag=CC --mode=link aarch64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o generate-api-docs generate-api-docs.o libtool: link: aarch64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o generate-api-docs generate-api-docs.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' ./generate-api-docs ../src/libvirt-php.c ../docs/api-reference.html.in Documentation has been generated successfully ./generate-api-docs --private ../src/libvirt-php.c ../docs/dev-api-reference.html.in Documentation has been generated successfully touch .stamp make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/tools' Making all in src make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-libvirt-node.lo `test -f 'libvirt-node.c' || echo './'`libvirt-node.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c libvirt-node.c -fPIC -DPIC -o .libs/libvirt_php_la-libvirt-node.o In file included from libvirt-node.c:9: libvirt-php.h:161:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 161 | void set_error(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:162:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 162 | void set_error_if_unset(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:163:1: warning: parameter names (without types) in function declaration 163 | void reset_error(TSRMLS_D); | ^~~~ libvirt-php.h:164:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 164 | int count_resources(int type TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:166:37: error: expected ';', ',' or ')' before 'TSRMLS_DC' 166 | int inc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:168:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 168 | void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:169:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 169 | void free_resource(int type, void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:170:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 170 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:174:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 174 | int set_logfile(char *filename, long maxsize TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:183:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 183 | int domain_flags TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:184:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 184 | void set_vnc_location(char *msg TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:63:54: error: expected ';', ',' or ')' before 'TSRMLS_DC' 63 | void php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-node.c: In function 'zif_libvirt_node_get_info': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:33:21: note: each undeclared identifier is reported only once for each function it appears in 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-node.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:37:12: warning: implicit declaration of function 'set_error'; did you mean 'reset_error'? [-Wimplicit-function-declaration] 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:29:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 29 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-node.c: In function 'zif_libvirt_node_get_cpu_stats': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:66:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 66 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &cpunr); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-node.c:66:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 66 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &cpunr); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:66:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 66 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &cpunr); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-node.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:66:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 66 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &cpunr); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:69:46: error: expected ')' before 'TSRMLS_CC' 69 | set_error("Cannot get number of CPUs" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:78:22: error: expected ')' before 'TSRMLS_CC' 78 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:86:51: error: expected ')' before 'TSRMLS_CC' 86 | set_error("Cannot get number of CPU stats" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:109:53: error: expected ')' before 'TSRMLS_CC' 109 | set_error("Unable to get node cpu stats" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-node.c:10: libvirt-node.c: In function 'zif_libvirt_node_get_cpu_stats_for_each_cpu': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:160:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 160 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &avg); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-node.c:160:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 160 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &avg); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:160:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 160 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &avg); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-node.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:160:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 160 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &avg); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:163:46: error: expected ')' before 'TSRMLS_CC' 163 | set_error("Cannot get number of CPUs" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:168:51: error: expected ')' before 'TSRMLS_CC' 168 | set_error("Cannot get number of CPU stats" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:194:57: error: expected ')' before 'TSRMLS_CC' 194 | set_error("Unable to get node cpu stats" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-node.c:10: libvirt-node.c: In function 'zif_libvirt_node_get_mem_stats': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:248:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 248 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-node.c:248:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 248 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:248:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 248 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-node.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:248:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 248 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:251:54: error: expected ')' before 'TSRMLS_CC' 251 | set_error("Cannot get number of memory stats" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-node.c:264:52: error: expected ')' before 'TSRMLS_CC' 264 | set_error("Unable to get node memory stats" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-node.c:10: libvirt-node.c: In function 'zif_libvirt_node_get_free_memory': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-node.c:293:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 293 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-node.c:293:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 293 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:293:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 293 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-node.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-node.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-node.c:293:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 293 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-node.c:298:60: error: expected ')' before 'TSRMLS_CC' 298 | set_error("Cannot get the free memory for the node" TSRMLS_CC); | ^~~~~~~~~~ | ) make[2]: *** [Makefile:602: libvirt_php_la-libvirt-node.lo] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-sockets.lo `test -f 'sockets.c' || echo './'`sockets.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c sockets.c -fPIC -DPIC -o .libs/libvirt_php_la-sockets.o In file included from /usr/include/unistd.h:1183, from sockets.c:16: In function 'read', inlined from 'socket_read' at sockets.c:190:9: /usr/include/bits/unistd.h:41:9: warning: '__read_chk' specified size between 9223372036854775808 and 18446744073709551614 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 41 | return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/unistd.h: In function 'socket_read': /usr/include/bits/unistd.h:23:16: note: in a call to function '__read_chk' declared with attribute 'write_only (2, 3)' 23 | extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, | ^~~~~~~~~~ In function 'read', inlined from 'socket_read_and_save' at sockets.c:241:15: /usr/include/bits/unistd.h:41:9: warning: '__read_chk' specified size between 9223372036854775808 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 41 | return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/unistd.h: In function 'socket_read_and_save': /usr/include/bits/unistd.h:23:16: note: in a call to function '__read_chk' declared with attribute 'write_only (2, 3)' 23 | extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, | ^~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-libvirt-php.lo `test -f 'libvirt-php.c' || echo './'`libvirt-php.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c libvirt-php.c -fPIC -DPIC -o .libs/libvirt_php_la-libvirt-php.o In file included from libvirt-php.c:19: libvirt-php.h:161:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 161 | void set_error(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:162:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 162 | void set_error_if_unset(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:163:1: warning: parameter names (without types) in function declaration 163 | void reset_error(TSRMLS_D); | ^~~~ libvirt-php.h:164:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 164 | int count_resources(int type TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:166:37: error: expected ';', ',' or ')' before 'TSRMLS_DC' 166 | int inc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:168:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 168 | void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:169:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 169 | void free_resource(int type, void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:170:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 170 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:174:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 174 | int set_logfile(char *filename, long maxsize TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:183:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 183 | int domain_flags TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:184:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 184 | void set_vnc_location(char *msg TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:22: libvirt-connection.h:63:54: error: expected ';', ',' or ')' before 'TSRMLS_DC' 63 | void php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:23: libvirt-domain.h:130:50: error: expected ';', ',' or ')' before 'TSRMLS_DC' 130 | void php_libvirt_domain_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:24: libvirt-network.h:55:51: error: expected ';', ',' or ')' before 'TSRMLS_DC' 55 | void php_libvirt_network_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:26: libvirt-nodedev.h:46:51: error: expected ';', ',' or ')' before 'TSRMLS_DC' 46 | void php_libvirt_nodedev_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:27: libvirt-nwfilter.h:52:52: error: expected ';', ',' or ')' before 'TSRMLS_DC' 52 | void php_libvirt_nwfilter_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:28: libvirt-snapshot.h:48:52: error: expected ';', ',' or ')' before 'TSRMLS_DC' 48 | void php_libvirt_snapshot_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:29: libvirt-storage.h:99:55: error: expected ';', ',' or ')' before 'TSRMLS_DC' 99 | void php_libvirt_storagepool_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-storage.h:100:50: error: expected ';', ',' or ')' before 'TSRMLS_DC' 100 | void php_libvirt_volume_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-php.c:30: libvirt-stream.h:30:50: error: expected ';', ',' or ')' before 'TSRMLS_DC' 30 | void php_libvirt_stream_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.c:531:27: error: expected ';', ',' or ')' before 'TSRMLS_DC' 531 | void change_debug(int val TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:540:76: error: expected ';', ',' or ')' before 'TSRMLS_DC' 540 | static void php_libvirt_init_globals(zend_libvirt_globals *libvirt_globals TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c: In function 'zm_activate_libvirt': libvirt-php.c:559:5: warning: implicit declaration of function 'change_debug' [-Wimplicit-function-declaration] 559 | change_debug(0 TSRMLS_CC); | ^~~~~~~~~~~~ libvirt-php.c:559:19: error: expected ')' before 'TSRMLS_CC' 559 | change_debug(0 TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: At top level: libvirt-php.c:581:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 581 | int set_logfile(char *filename, long maxsize TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:704:78: error: expected ';', ',' or ')' before 'TSRMLS_DC' 704 | int resource_change_counter(int type, virConnectPtr conn, void *mem, int inc TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c: In function 'zm_info_libvirt': libvirt-php.c:829:46: warning: format '%i' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 829 | snprintf(version, sizeof(version), "%i.%i.%i", (long)((libVer/1000000) % 1000), (long)((libVer/1000) % 1000), (long)(libVer % 1000)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %li libvirt-php.c:829:49: warning: format '%i' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] 829 | snprintf(version, sizeof(version), "%i.%i.%i", (long)((libVer/1000000) % 1000), (long)((libVer/1000) % 1000), (long)(libVer % 1000)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %li libvirt-php.c:829:52: warning: format '%i' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=] 829 | snprintf(version, sizeof(version), "%i.%i.%i", (long)((libVer/1000000) % 1000), (long)((libVer/1000) % 1000), (long)(libVer % 1000)); | ~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %li libvirt-php.c: At top level: libvirt-php.c:877:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 877 | void set_error(char *msg TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:898:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 898 | void set_vnc_location(char *msg TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:920:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 920 | void set_error_if_unset(char *msg TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c: In function 'reset_error': libvirt-php.c:933:6: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int] 933 | void reset_error(TSRMLS_D) | ^~~~~~~~~~~ libvirt-php.c:935:5: warning: implicit declaration of function 'set_error'; did you mean 'reset_error'? [-Wimplicit-function-declaration] 935 | set_error(NULL TSRMLS_CC); | ^~~~~~~~~ | reset_error libvirt-php.c:935:20: error: expected ')' before 'TSRMLS_CC' 935 | set_error(NULL TSRMLS_CC); | ^~~~~~~~~ libvirt-php.c: In function 'catch_error': libvirt-php.c:943:5: warning: implicit declaration of function 'TSRMLS_FETCH_FROM_CTX' [-Wimplicit-function-declaration] 943 | TSRMLS_FETCH_FROM_CTX(userData); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:944:29: error: expected ')' before 'TSRMLS_CC' 944 | set_error(error->message TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: At top level: libvirt-php.c:955:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 955 | void free_resource(int type, void *mem TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:1059:71: error: expected ';', ',' or ')' before 'TSRMLS_DC' 1059 | int check_resource_allocation(virConnectPtr conn, int type, void *mem TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:1090:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 1090 | int count_resources(int type TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c: In function 'zm_startup_libvirt': libvirt-php.c:1201:63: error: 'php_libvirt_connection_dtor' undeclared (first use in this function); did you mean 'php_libvirt_connection'? 1201 | le_libvirt_connection = zend_register_list_destructors_ex(php_libvirt_connection_dtor, NULL, PHP_LIBVIRT_CONNECTION_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_connection libvirt-php.c:1201:63: note: each undeclared identifier is reported only once for each function it appears in libvirt-php.c:1202:59: error: 'php_libvirt_domain_dtor' undeclared (first use in this function); did you mean 'php_libvirt_domain'? 1202 | le_libvirt_domain = zend_register_list_destructors_ex(php_libvirt_domain_dtor, NULL, PHP_LIBVIRT_DOMAIN_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_domain libvirt-php.c:1203:59: error: 'php_libvirt_stream_dtor' undeclared (first use in this function); did you mean 'php_libvirt_stream'? 1203 | le_libvirt_stream = zend_register_list_destructors_ex(php_libvirt_stream_dtor, NULL, PHP_LIBVIRT_STREAM_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_stream libvirt-php.c:1204:64: error: 'php_libvirt_storagepool_dtor' undeclared (first use in this function); did you mean 'php_libvirt_storagepool'? 1204 | le_libvirt_storagepool = zend_register_list_destructors_ex(php_libvirt_storagepool_dtor, NULL, PHP_LIBVIRT_STORAGEPOOL_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_storagepool libvirt-php.c:1205:59: error: 'php_libvirt_volume_dtor' undeclared (first use in this function); did you mean 'php_libvirt_volume'? 1205 | le_libvirt_volume = zend_register_list_destructors_ex(php_libvirt_volume_dtor, NULL, PHP_LIBVIRT_VOLUME_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_volume libvirt-php.c:1206:60: error: 'php_libvirt_network_dtor' undeclared (first use in this function); did you mean 'php_libvirt_network'? 1206 | le_libvirt_network = zend_register_list_destructors_ex(php_libvirt_network_dtor, NULL, PHP_LIBVIRT_NETWORK_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_network libvirt-php.c:1207:60: error: 'php_libvirt_nodedev_dtor' undeclared (first use in this function); did you mean 'php_libvirt_nodedev'? 1207 | le_libvirt_nodedev = zend_register_list_destructors_ex(php_libvirt_nodedev_dtor, NULL, PHP_LIBVIRT_NODEDEV_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_nodedev libvirt-php.c:1208:61: error: 'php_libvirt_snapshot_dtor' undeclared (first use in this function); did you mean 'php_libvirt_snapshot'? 1208 | le_libvirt_snapshot = zend_register_list_destructors_ex(php_libvirt_snapshot_dtor, NULL, PHP_LIBVIRT_SNAPSHOT_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_snapshot libvirt-php.c:1209:61: error: 'php_libvirt_nwfilter_dtor' undeclared (first use in this function); did you mean 'php_libvirt_nwfilter'? 1209 | le_libvirt_nwfilter = zend_register_list_destructors_ex(php_libvirt_nwfilter_dtor, NULL, PHP_LIBVIRT_NWFILTER_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | php_libvirt_nwfilter In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: libvirt-php.c:1211:39: error: 'php_libvirt_init_globals' undeclared (first use in this function) 1211 | ZEND_INIT_MODULE_GLOBALS(libvirt, php_libvirt_init_globals, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_API.h:211:101: note: in definition of macro 'ZEND_INIT_MODULE_GLOBALS' 211 | ts_allocate_id(&module_name##_globals_id, sizeof(zend_##module_name##_globals), (ts_allocate_ctor) globals_ctor, (ts_allocate_dtor) globals_dtor); | ^~~~~~~~~~~~ libvirt-php.c:1509:5: warning: implicit declaration of function 'TSRMLS_SET_CTX' [-Wimplicit-function-declaration] 1509 | TSRMLS_SET_CTX(thread_ctx); | ^~~~~~~~~~~~~~ libvirt-php.c: In function 'zif_libvirt_image_create': libvirt-php.c:1571:99: error: expected ')' before 'TSRMLS_CC' 1571 | set_error("Invalid argument, path must be set and absolute (start by slash character [/])" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-php.c:22: libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-php.c:1575:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1575 | GET_CONNECTION_FROM_ARGS("rsss", &zconn, &image, &image_len, &size_str, &size_str_len, &format, &format_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-php.c:1575:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1575 | GET_CONNECTION_FROM_ARGS("rsss", &zconn, &image, &image_len, &size_str, &size_str_len, &format, &format_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:1575:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1575 | GET_CONNECTION_FROM_ARGS("rsss", &zconn, &image, &image_len, &size_str, &size_str_len, &format, &format_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-php.c:22: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-php.c:1575:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1575 | GET_CONNECTION_FROM_ARGS("rsss", &zconn, &image, &image_len, &size_str, &size_str_len, &format, &format_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:1585:22: error: expected ')' before 'TSRMLS_CC' 1585 | set_error(msg TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:1593:60: error: expected ')' before 'TSRMLS_CC' 1593 | set_error("Feature 'create-image' is not supported" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:1597:53: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long long int' [-Wformat=] 1597 | snprintf(cmd, sizeof(cmd), "%s create -f %s %s %dM > /dev/null", qemu_img_cmd, format, fpath, size); | ~^ ~~~~ | | | | int long long int | %lld libvirt-php.c:1605:22: error: expected ')' before 'TSRMLS_CC' 1605 | set_error(msg TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-php.c:22: libvirt-php.c: In function 'zif_libvirt_image_remove': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-php.c:1628:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1628 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &image, &image_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-php.c:1628:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1628 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &image, &image_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:1628:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1628 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &image, &image_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-php.c:22: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-php.c:1628:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1628 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &image, &image_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:1632:60: error: expected ')' before 'TSRMLS_CC' 1632 | set_error("Function works only on local connection" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:1645:22: error: expected ')' before 'TSRMLS_CC' 1645 | set_error(msg TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:1653:22: error: expected ')' before 'TSRMLS_CC' 1653 | set_error(msg TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: In function 'get_node_string_from_xpath': libvirt-php.c:1781:66: error: expected ')' before 'TSRMLS_CC' 1781 | set_error("XPATH returned too much nodes, expeced only 1" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:1788:56: error: expected ')' before 'TSRMLS_CC' 1788 | set_error("failed to convert the XML node tree" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: At top level: libvirt-php.c:2032:65: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2032 | char *connection_get_domain_type(virConnectPtr conn, char *arch TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:2081:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2081 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:2133:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2133 | char *connection_get_arch(virConnectPtr conn TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:2192:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2192 | char *generate_uuid(virConnectPtr conn TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:2221:108: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2221 | char *get_disk_xml(unsigned long long size, char *path, char *driver, char *bus, char *dev, int disk_flags TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c:2338:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 2338 | domain_flags TSRMLS_DC) | ^~~~~~~~~ libvirt-php.c: In function 'zif_libvirt_version': libvirt-php.c:2577:47: error: expected ')' before 'TSRMLS_CC' 2577 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &type, &type_len) == FAILURE) { | ^~~~~~~~~ libvirt-php.c:2577:9: error: too few arguments to function 'zend_parse_parameters' 2577 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &type, &type_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:2578:38: error: expected ')' before 'TSRMLS_CC' 2578 | set_error("Invalid arguments" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: In function 'zif_libvirt_check_version': libvirt-php.c:2624:47: error: expected ')' before 'TSRMLS_CC' 2624 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll|l", &major, &minor, µ, &type) == FAILURE) { | ^~~~~~~~~ libvirt-php.c:2624:9: error: too few arguments to function 'zend_parse_parameters' 2624 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll|l", &major, &minor, µ, &type) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:2625:38: error: expected ')' before 'TSRMLS_CC' 2625 | set_error("Invalid arguments" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:2650:45: error: expected ')' before 'TSRMLS_CC' 2650 | set_error("Invalid version type" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: In function 'zif_libvirt_has_feature': libvirt-php.c:2671:47: error: expected ')' before 'TSRMLS_CC' 2671 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { | ^~~~~~~~~ libvirt-php.c:2671:9: error: too few arguments to function 'zend_parse_parameters' 2671 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:2672:37: error: expected ')' before 'TSRMLS_CC' 2672 | set_error("Invalid argument" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: In function 'zif_libvirt_get_iso_images': libvirt-php.c:2702:47: error: expected ')' before 'TSRMLS_CC' 2702 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &path, &path_len) == FAILURE) { | ^~~~~~~~~ libvirt-php.c:2702:9: error: too few arguments to function 'zend_parse_parameters' 2702 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &path, &path_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:2703:37: error: expected ')' before 'TSRMLS_CC' 2703 | set_error("Invalid argument" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:2711:99: error: expected ')' before 'TSRMLS_CC' 2711 | set_error("Invalid argument, path must be set and absolute (start by slash character [/])" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c: In function 'zif_libvirt_logfile_set': libvirt-php.c:2786:47: error: expected ')' before 'TSRMLS_CC' 2786 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &maxsize) == FAILURE) { | ^~~~~~~~~ libvirt-php.c:2786:9: error: too few arguments to function 'zend_parse_parameters' 2786 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &maxsize) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-php.c:19: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-php.c:2787:37: error: expected ')' before 'TSRMLS_CC' 2787 | set_error("Invalid argument" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:2792:15: warning: implicit declaration of function 'set_logfile'; did you mean 'setlogin'? [-Wimplicit-function-declaration] 2792 | err = set_logfile(NULL, 0 TSRMLS_CC); | ^~~~~~~~~~~ | setlogin libvirt-php.c:2792:34: error: expected ')' before 'TSRMLS_CC' 2792 | err = set_logfile(NULL, 0 TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:2794:44: error: expected ')' before 'TSRMLS_CC' 2794 | err = set_logfile(filename, maxsize TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-php.c:2799:22: error: expected ')' before 'TSRMLS_CC' 2799 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) make[2]: *** [Makefile:574: libvirt_php_la-libvirt-php.lo] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-util.lo `test -f 'util.c' || echo './'`util.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c util.c -fPIC -DPIC -o .libs/libvirt_php_la-util.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-libvirt-network.lo `test -f 'libvirt-network.c' || echo './'`libvirt-network.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c libvirt-network.c -fPIC -DPIC -o .libs/libvirt_php_la-libvirt-network.o In file included from libvirt-network.c:9: libvirt-php.h:161:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 161 | void set_error(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:162:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 162 | void set_error_if_unset(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:163:1: warning: parameter names (without types) in function declaration 163 | void reset_error(TSRMLS_D); | ^~~~ libvirt-php.h:164:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 164 | int count_resources(int type TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:166:37: error: expected ';', ',' or ')' before 'TSRMLS_DC' 166 | int inc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:168:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 168 | void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:169:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 169 | void free_resource(int type, void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:170:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 170 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:174:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 174 | int set_logfile(char *filename, long maxsize TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:183:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 183 | int domain_flags TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:184:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 184 | void set_vnc_location(char *msg TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-connection.h:63:54: error: expected ';', ',' or ')' before 'TSRMLS_DC' 63 | void php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:55:51: error: expected ';', ',' or ')' before 'TSRMLS_DC' 55 | void php_libvirt_network_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-network.c:15:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 15 | php_libvirt_network_dtor(virt_resource *rsrc TSRMLS_DC) | ^~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_define_xml': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:33:21: note: each undeclared identifier is reported only once for each function it appears in 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-connection.h:37:12: warning: implicit declaration of function 'set_error'; did you mean 'reset_error'? [-Wimplicit-function-declaration] 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:58:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 58 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:61:9: warning: implicit declaration of function 'set_error_if_unset' [-Wimplicit-function-declaration] 61 | set_error_if_unset("Cannot define a new network" TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~ libvirt-network.c:61:57: error: expected ')' before 'TSRMLS_CC' 61 | set_error_if_unset("Cannot define a new network" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-network.c:70:5: warning: implicit declaration of function 'resource_change_counter' [-Wimplicit-function-declaration] 70 | resource_change_counter(INT_RESOURCE_NETWORK, conn->conn, res_net->network, 1 TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:70:82: error: expected ')' before 'TSRMLS_CC' 70 | resource_change_counter(INT_RESOURCE_NETWORK, conn->conn, res_net->network, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get_xml_desc': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:93:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 93 | GET_NETWORK_FROM_ARGS("r|s", &znetwork, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:93:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 93 | GET_NETWORK_FROM_ARGS("r|s", &znetwork, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:93:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 93 | GET_NETWORK_FROM_ARGS("r|s", &znetwork, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:93:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 93 | GET_NETWORK_FROM_ARGS("r|s", &znetwork, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:100:52: error: expected ')' before 'TSRMLS_CC' 100 | set_error_if_unset("Cannot get network XML" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_undefine': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:127:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 127 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:127:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 127 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:127:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 127 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:127:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 127 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:152:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 152 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:152:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 152 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:152:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 152 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:152:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 152 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:155:63: error: expected ')' before 'TSRMLS_CC' 155 | set_error_if_unset("Cannot get find requested network" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-network.c:164:82: error: expected ')' before 'TSRMLS_CC' 164 | resource_change_counter(INT_RESOURCE_NETWORK, conn->conn, res_net->network, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get_bridge': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:182:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 182 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:182:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 182 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:182:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 182 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:182:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 182 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:187:60: error: expected ')' before 'TSRMLS_CC' 187 | set_error_if_unset("Cannot get network bridge name" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get_active': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:208:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 208 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:208:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 208 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:208:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 208 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:208:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 208 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:213:65: error: expected ')' before 'TSRMLS_CC' 213 | set_error_if_unset("Error getting virtual network state" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_set_active': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:236:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 236 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &act); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:236:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 236 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &act); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:236:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 236 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &act); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:236:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 236 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &act); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:239:51: error: expected ')' before 'TSRMLS_CC' 239 | set_error("Invalid network activity state" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get_information': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:286:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 286 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:286:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 286 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:286:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 286 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:286:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 286 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:291:52: error: expected ')' before 'TSRMLS_CC' 291 | set_error_if_unset("Cannot get network XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-network.c:300:56: error: expected ')' before 'TSRMLS_CC' 300 | set_error("Invalid XPath node for network name" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-network.c:305:72: error: expected ')' before 'TSRMLS_CC' 305 | set_error("Cannot get XPath expression result for network name" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_network_get_uuid_string': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:371:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 371 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:371:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 371 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:371:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 371 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:371:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 371 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c: In function 'zif_libvirt_network_get_uuid': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:400:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 400 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:400:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 400 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:400:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 400 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:400:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 400 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c: In function 'zif_libvirt_network_get_name': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:428:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 428 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:428:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 428 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:428:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 428 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:428:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 428 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c: In function 'zif_libvirt_network_get_autostart': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:454:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 454 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:454:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 454 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:454:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 454 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:454:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 454 | GET_NETWORK_FROM_ARGS("r", &znetwork); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c: In function 'zif_libvirt_network_set_autostart': libvirt-network.h:17:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 17 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:476:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 476 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &autostart); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:51: error: expected ')' before 'TSRMLS_CC' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:476:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 476 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &autostart); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.h:18:13: error: too few arguments to function 'zend_parse_parameters' 18 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:476:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 476 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &autostart); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.c:10: libvirt-network.h:21:43: error: expected ')' before 'TSRMLS_CC' 21 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:476:5: note: in expansion of macro 'GET_NETWORK_FROM_ARGS' 476 | GET_NETWORK_FROM_ARGS("rl", &znetwork, &autostart); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_list_all_networks': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:504:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 504 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:504:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 504 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:504:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 504 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:504:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 504 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:521:56: error: expected ')' before 'TSRMLS_CC' 521 | res_network->network, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-network.c: In function 'zif_libvirt_list_networks': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-network.c:543:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 543 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-network.c:543:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 543 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-network.c:543:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 543 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-network.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-network.h:10, from libvirt-network.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-network.c:543:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 543 | GET_CONNECTION_FROM_ARGS("r|l", &zconn, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:595: libvirt_php_la-libvirt-network.lo] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-libvirt-connection.lo `test -f 'libvirt-connection.c' || echo './'`libvirt-connection.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c libvirt-connection.c -fPIC -DPIC -o .libs/libvirt_php_la-libvirt-connection.o In file included from libvirt-connection.c:9: libvirt-php.h:161:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 161 | void set_error(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:162:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 162 | void set_error_if_unset(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:163:1: warning: parameter names (without types) in function declaration 163 | void reset_error(TSRMLS_D); | ^~~~ libvirt-php.h:164:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 164 | int count_resources(int type TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:166:37: error: expected ';', ',' or ')' before 'TSRMLS_DC' 166 | int inc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:168:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 168 | void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:169:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 169 | void free_resource(int type, void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:170:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 170 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:174:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 174 | int set_logfile(char *filename, long maxsize TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:183:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 183 | int domain_flags TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:184:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 184 | void set_vnc_location(char *msg TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:63:54: error: expected ';', ',' or ')' before 'TSRMLS_DC' 63 | void php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-connection.c:22:49: error: expected ';', ',' or ')' before 'TSRMLS_DC' 22 | free_resources_on_connection(virConnectPtr conn TSRMLS_DC) | ^~~~~~~~~ libvirt-connection.c:39:49: error: expected ';', ',' or ')' before 'TSRMLS_DC' 39 | php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC) | ^~~~~~~~~ libvirt-connection.c: In function 'libvirt_virConnectAuthCallback': libvirt-connection.c:70:5: warning: implicit declaration of function 'TSRMLS_FETCH'; did you mean 'TSRMLS_CACHE'? [-Wimplicit-function-declaration] 70 | TSRMLS_FETCH(); | ^~~~~~~~~~~~ | TSRMLS_CACHE libvirt-connection.c: In function 'zif_libvirt_connect': libvirt-connection.c:136:47: error: expected ')' before 'TSRMLS_CC' 136 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sba", &url, &url_len, &readonly, &zcreds) == FAILURE) { | ^~~~~~~~~ libvirt-connection.c:136:9: error: too few arguments to function 'zend_parse_parameters' 136 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sba", &url, &url_len, &readonly, &zcreds) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:144:9: warning: implicit declaration of function 'set_error'; did you mean 'reset_error'? [-Wimplicit-function-declaration] 144 | set_error("Only libvirt 0.6.2 and higher supported. Please upgrade your libvirt" TSRMLS_CC); | ^~~~~~~~~ | reset_error libvirt-connection.c:144:89: error: expected ')' before 'TSRMLS_CC' 144 | set_error("Only libvirt 0.6.2 and higher supported. Please upgrade your libvirt" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:148:10: warning: implicit declaration of function 'count_resources' [-Wimplicit-function-declaration] 148 | if ((count_resources(INT_RESOURCE_CONNECTION TSRMLS_CC) + 1) > LIBVIRT_G(max_connections_ini)) { | ^~~~~~~~~~~~~~~ libvirt-connection.c:148:50: error: expected ')' before 'TSRMLS_CC' 148 | if ((count_resources(INT_RESOURCE_CONNECTION TSRMLS_CC) + 1) > LIBVIRT_G(max_connections_ini)) { | ^~~~~~~~~ libvirt-connection.c:150:67: error: expected ')' before 'TSRMLS_CC' 150 | set_error("Maximum number of connections allowed exceeded" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:207:5: warning: implicit declaration of function 'resource_change_counter' [-Wimplicit-function-declaration] 207 | resource_change_counter(INT_RESOURCE_CONNECTION, NULL, conn->conn, 1 TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:207:73: error: expected ')' before 'TSRMLS_CC' 207 | resource_change_counter(INT_RESOURCE_CONNECTION, NULL, conn->conn, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_uri': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:227:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 227 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:33:21: note: each undeclared identifier is reported only once for each function it appears in 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:227:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 227 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:227:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 227 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:227:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 227 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:227:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 227 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_hostname': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:250:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 250 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:250:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 250 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:250:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 250 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:250:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 250 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_hypervisor': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:276:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 276 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:276:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 276 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:276:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 276 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:276:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 276 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:293:41: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] 293 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 294 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int libvirt-connection.c:293:44: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=] 293 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 294 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int libvirt-connection.c:293:47: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat=] 293 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 294 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~ | | | long int In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_capabilities': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:316:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 316 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:316:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 316 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:316:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 316 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:316:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 316 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &xpath, &xpath_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_emulator': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:354:11: warning: implicit declaration of function 'connection_get_emulator' [-Wimplicit-function-declaration] 354 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:354:51: error: expected ')' before 'TSRMLS_CC' 354 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:354:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 354 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^ libvirt-connection.c:356:40: error: expected ')' before 'TSRMLS_CC' 356 | set_error("Cannot get emulator" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_nic_models': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:380:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 380 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:380:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 380 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:380:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 380 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:380:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 380 | GET_CONNECTION_FROM_ARGS("r|s", &zconn, &arch, &arch_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:384:66: error: expected ')' before 'TSRMLS_CC' 384 | set_error("This function works only on local connections" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:390:67: error: expected ')' before 'TSRMLS_CC' 390 | set_error("This function can be used only for QEMU driver" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:398:51: error: expected ')' before 'TSRMLS_CC' 398 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:398:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 398 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^ libvirt-connection.c:400:40: error: expected ')' before 'TSRMLS_CC' 400 | set_error("Cannot get emulator" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_soundhw_models': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:453:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 453 | GET_CONNECTION_FROM_ARGS("r|sl", &zconn, &arch, &arch_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:453:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 453 | GET_CONNECTION_FROM_ARGS("r|sl", &zconn, &arch, &arch_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:453:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 453 | GET_CONNECTION_FROM_ARGS("r|sl", &zconn, &arch, &arch_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:453:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 453 | GET_CONNECTION_FROM_ARGS("r|sl", &zconn, &arch, &arch_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:460:66: error: expected ')' before 'TSRMLS_CC' 460 | set_error("This function works only on local connections" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:467:67: error: expected ')' before 'TSRMLS_CC' 467 | set_error("This function can be used only for QEMU driver" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:471:51: error: expected ')' before 'TSRMLS_CC' 471 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-connection.c:471:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 471 | tmp = connection_get_emulator(conn->conn, arch TSRMLS_CC); | ^ libvirt-connection.c:473:40: error: expected ')' before 'TSRMLS_CC' 473 | set_error("Cannot get emulator" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_maxvcpus': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:547:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 547 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:547:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 547 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:547:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 547 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:547:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 547 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_sysinfo': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:569:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 569 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:569:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 569 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:569:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 569 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:569:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 569 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_encrypted': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:591:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 591 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:591:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 591 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:591:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 591 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:591:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 591 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_secure': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:608:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 608 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:608:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 608 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:608:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 608 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:608:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 608 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_information': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:630:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 630 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:630:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 630 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:630:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 630 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:630:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 630 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:646:45: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] 646 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 647 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int libvirt-connection.c:646:48: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=] 646 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 647 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int libvirt-connection.c:646:51: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat=] 646 | snprintf(hvStr, sizeof(hvStr), "%s %d.%d.%d", type, | ~^ | | | int | %ld 647 | (long)((hvVer/1000000) % 1000), (long)((hvVer/1000) % 1000), (long)(hvVer % 1000)); | ~~~~~~~~~~~~~~~~~~~~ | | | long int In file included from libvirt-connection.c:10: libvirt-connection.c: In function 'zif_libvirt_connect_get_machine_types': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:711:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 711 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:711:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 711 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:711:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 711 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:711:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 711 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c: In function 'zif_libvirt_connect_get_all_domain_stats': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-connection.c:838:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 838 | GET_CONNECTION_FROM_ARGS("r|l|l", &zconn, &stats, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-connection.c:838:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 838 | GET_CONNECTION_FROM_ARGS("r|l|l", &zconn, &stats, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-connection.c:838:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 838 | GET_CONNECTION_FROM_ARGS("r|l|l", &zconn, &stats, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-connection.c:9: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-connection.c:10: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-connection.c:838:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 838 | GET_CONNECTION_FROM_ARGS("r|l|l", &zconn, &stats, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:581: libvirt_php_la-libvirt-connection.lo] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-vncfunc.lo `test -f 'vncfunc.c' || echo './'`vncfunc.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c vncfunc.c -fPIC -DPIC -o .libs/libvirt_php_la-vncfunc.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' /bin/sh ../libtool --tag=CC --mode=compile aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libvirt_php_la-libvirt-domain.lo `test -f 'libvirt-domain.c' || echo './'`libvirt-domain.c libtool: compile: aarch64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libxml2 -I../winsrc -DCOMPILE_DL_LIBVIRT=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c libvirt-domain.c -fPIC -DPIC -o .libs/libvirt_php_la-libvirt-domain.o In file included from libvirt-domain.c:11: libvirt-php.h:161:26: error: expected ';', ',' or ')' before 'TSRMLS_DC' 161 | void set_error(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:162:35: error: expected ';', ',' or ')' before 'TSRMLS_DC' 162 | void set_error_if_unset(char *msg TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:163:1: warning: parameter names (without types) in function declaration 163 | void reset_error(TSRMLS_D); | ^~~~ libvirt-php.h:164:30: error: expected ';', ',' or ')' before 'TSRMLS_DC' 164 | int count_resources(int type TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:166:37: error: expected ';', ',' or ')' before 'TSRMLS_DC' 166 | int inc TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:168:41: error: expected ';', ',' or ')' before 'TSRMLS_DC' 168 | void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:169:40: error: expected ';', ',' or ')' before 'TSRMLS_DC' 169 | void free_resource(int type, void *mem TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:170:62: error: expected ';', ',' or ')' before 'TSRMLS_DC' 170 | char *connection_get_emulator(virConnectPtr conn, char *arch TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:174:46: error: expected ';', ',' or ')' before 'TSRMLS_DC' 174 | int set_logfile(char *filename, long maxsize TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:183:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 183 | int domain_flags TSRMLS_DC); | ^~~~~~~~~ libvirt-php.h:184:33: error: expected ';', ',' or ')' before 'TSRMLS_DC' 184 | void set_vnc_location(char *msg TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:63:54: error: expected ';', ',' or ')' before 'TSRMLS_DC' 63 | void php_libvirt_connection_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:130:50: error: expected ';', ',' or ')' before 'TSRMLS_DC' 130 | void php_libvirt_domain_dtor(virt_resource *rsrc TSRMLS_DC); | ^~~~~~~~~ libvirt-domain.c:19:45: error: expected ';', ',' or ')' before 'TSRMLS_DC' 19 | php_libvirt_domain_dtor(virt_resource *rsrc TSRMLS_DC) | ^~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_new': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:33:21: note: each undeclared identifier is reported only once for each function it appears in 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:12: warning: implicit declaration of function 'set_error'; did you mean 'reset_error'? [-Wimplicit-function-declaration] 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:95:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 95 | GET_CONNECTION_FROM_ARGS("rsslllsaa|l", &zconn, &name, &name_len, &arch, &arch_len, &memMB, &maxmemMB, &vcpus, &iso_image, &iso_image_len, &disks, &networks, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:146:11: warning: implicit declaration of function 'installation_get_xml' [-Wimplicit-function-declaration] 146 | tmp = installation_get_xml(conn->conn, name, memMB, maxmemMB, | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:149:37: error: expected ')' before 'TSRMLS_CC' 149 | flags TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:146:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 146 | tmp = installation_get_xml(conn->conn, name, memMB, maxmemMB, | ^ libvirt-domain.c:152:48: error: expected ')' before 'TSRMLS_CC' 152 | set_error("Cannot get installation XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:158:9: warning: implicit declaration of function 'set_error_if_unset' [-Wimplicit-function-declaration] 158 | set_error_if_unset("Cannot define domain from the XML description" TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~ libvirt-domain.c:158:75: error: expected ')' before 'TSRMLS_CC' 158 | set_error_if_unset("Cannot define domain from the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:165:50: error: expected ')' before 'TSRMLS_CC' 165 | set_error_if_unset("Cannot create domain" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:172:60: error: expected ')' before 'TSRMLS_CC' 172 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:178:52: error: expected ')' before 'TSRMLS_CC' 178 | set_error_if_unset("Cannot get domain UUID" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:186:66: error: expected ')' before 'TSRMLS_CC' 186 | set_error_if_unset("Cannot get port from XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:194:49: error: expected ')' before 'TSRMLS_CC' 194 | set_error_if_unset("Cannot get hostname" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:214:5: warning: implicit declaration of function 'set_vnc_location' [-Wimplicit-function-declaration] 214 | set_vnc_location(vncl TSRMLS_CC); | ^~~~~~~~~~~~~~~~ libvirt-domain.c:214:26: error: expected ')' before 'TSRMLS_CC' 214 | set_vnc_location(vncl TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:220:37: error: expected ')' before 'TSRMLS_CC' 220 | flags TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:217:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 217 | tmp = installation_get_xml(conn->conn, name, memMB, maxmemMB, | ^ libvirt-domain.c:223:48: error: expected ')' before 'TSRMLS_CC' 223 | set_error("Cannot get installation XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:229:61: error: expected ')' before 'TSRMLS_CC' 229 | set_error_if_unset("Cannot update domain definition" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:243:5: warning: implicit declaration of function 'resource_change_counter' [-Wimplicit-function-declaration] 243 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:243:83: error: expected ')' before 'TSRMLS_CC' 243 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_counts': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:297:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 297 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:297:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 297 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:297:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 297 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:297:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 297 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_is_persistent': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:321:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 321 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:321:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 321 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:321:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 321 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:321:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 321 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_lookup_by_name': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:349:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 349 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &name, &name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:361:83: error: expected ')' before 'TSRMLS_CC' 361 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_xml_desc': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:385:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 385 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xpath, &xpath_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:385:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 385 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xpath, &xpath_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:385:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 385 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xpath, &xpath_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:385:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 385 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xpath, &xpath_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:393:60: error: expected ')' before 'TSRMLS_CC' 393 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_disk_devices': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:429:60: error: expected ')' before 'TSRMLS_CC' 429 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_interface_devices': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:460:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 460 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:460:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 460 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:460:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 460 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:460:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 460 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:466:60: error: expected ')' before 'TSRMLS_CC' 466 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_change_vcpus': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:497:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 497 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &numCpus, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:497:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 497 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &numCpus, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:497:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 497 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &numCpus, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:497:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 497 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &numCpus, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_change_memory': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:536:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 536 | GET_DOMAIN_FROM_ARGS("rll|l", &zdomain, &allocMem, &allocMax, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:536:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 536 | GET_DOMAIN_FROM_ARGS("rll|l", &zdomain, &allocMem, &allocMax, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:536:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 536 | GET_DOMAIN_FROM_ARGS("rll|l", &zdomain, &allocMem, &allocMax, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:536:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 536 | GET_DOMAIN_FROM_ARGS("rll|l", &zdomain, &allocMem, &allocMax, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:549:60: error: expected ')' before 'TSRMLS_CC' 549 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:553:50: warning: format '%d' expects argument of type 'int', but argument 4 has type 'zend_long' {aka 'long int'} [-Wformat=] 553 | snprintf(newXml, sizeof(newXml), " %d\n %d\n", allocMax, allocMem); | ~^ ~~~~~~~~ | | | | int zend_long {aka long int} | %ld libvirt-domain.c:553:80: warning: format '%d' expects argument of type 'int', but argument 5 has type 'zend_long' {aka 'long int'} [-Wformat=] 553 | snprintf(newXml, sizeof(newXml), " %d\n %d\n", allocMax, allocMem); | ~^ ~~~~~~~~ | | | | int zend_long {aka long int} | %ld libvirt-domain.c:558:53: error: expected ')' before 'TSRMLS_CC' 558 | set_error_if_unset("Cannot parse domain XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:587:83: error: expected ')' before 'TSRMLS_CC' 587 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_change_boot_devices': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:624:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 624 | GET_DOMAIN_FROM_ARGS("rss|l", &zdomain, &first, &first_len, &second, &second_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:624:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 624 | GET_DOMAIN_FROM_ARGS("rss|l", &zdomain, &first, &first_len, &second, &second_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:624:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 624 | GET_DOMAIN_FROM_ARGS("rss|l", &zdomain, &first, &first_len, &second, &second_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:624:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 624 | GET_DOMAIN_FROM_ARGS("rss|l", &zdomain, &first, &first_len, &second, &second_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:628:60: error: expected ')' before 'TSRMLS_CC' 628 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:669:83: error: expected ')' before 'TSRMLS_CC' 669 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_disk_add': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:706:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 706 | GET_DOMAIN_FROM_ARGS("rssss|l", &zdomain, &img, &img_len, &dev, &dev_len, &typ, &typ_len, &driver, &driver_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:706:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 706 | GET_DOMAIN_FROM_ARGS("rssss|l", &zdomain, &img, &img_len, &dev, &dev_len, &typ, &typ_len, &driver, &driver_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:706:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 706 | GET_DOMAIN_FROM_ARGS("rssss|l", &zdomain, &img, &img_len, &dev, &dev_len, &typ, &typ_len, &driver, &driver_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:706:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 706 | GET_DOMAIN_FROM_ARGS("rssss|l", &zdomain, &img, &img_len, &dev, &dev_len, &typ, &typ_len, &driver, &driver_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:713:60: error: expected ')' before 'TSRMLS_CC' 713 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:718:34: error: expected ')' before 'TSRMLS_CC' 718 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:725:38: error: expected ')' before 'TSRMLS_CC' 725 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:727:26: error: expected ')' before 'TSRMLS_CC' 727 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:733:34: error: expected ')' before 'TSRMLS_CC' 733 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:740:38: error: expected ')' before 'TSRMLS_CC' 740 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:742:26: error: expected ')' before 'TSRMLS_CC' 742 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:752:34: error: expected ')' before 'TSRMLS_CC' 752 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:760:42: error: expected ')' before 'TSRMLS_CC' 760 | set_error("Unable to attach disk" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_disk_remove': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:801:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 801 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &dev, &dev_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:801:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 801 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &dev, &dev_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:801:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 801 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &dev, &dev_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:801:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 801 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &dev, &dev_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:807:60: error: expected ')' before 'TSRMLS_CC' 807 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:812:34: error: expected ')' before 'TSRMLS_CC' 812 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:818:38: error: expected ')' before 'TSRMLS_CC' 818 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:820:26: error: expected ')' before 'TSRMLS_CC' 820 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:828:42: error: expected ')' before 'TSRMLS_CC' 828 | set_error("Unable to detach disk" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_nic_add': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:877:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 877 | GET_DOMAIN_FROM_ARGS("rsss|l", &zdomain, &mac, &mac_len, &net, &net_len, &model, &model_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:877:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 877 | GET_DOMAIN_FROM_ARGS("rsss|l", &zdomain, &mac, &mac_len, &net, &net_len, &model, &model_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:877:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 877 | GET_DOMAIN_FROM_ARGS("rsss|l", &zdomain, &mac, &mac_len, &net, &net_len, &model, &model_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:877:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 877 | GET_DOMAIN_FROM_ARGS("rsss|l", &zdomain, &mac, &mac_len, &net, &net_len, &model, &model_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:885:60: error: expected ')' before 'TSRMLS_CC' 885 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:890:34: error: expected ')' before 'TSRMLS_CC' 890 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:897:38: error: expected ')' before 'TSRMLS_CC' 897 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:899:26: error: expected ')' before 'TSRMLS_CC' 899 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:910:38: error: expected ')' before 'TSRMLS_CC' 910 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:919:38: error: expected ')' before 'TSRMLS_CC' 919 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:928:47: error: expected ')' before 'TSRMLS_CC' 928 | set_error("Unable to attach interface" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_nic_remove': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:969:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 969 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &mac, &mac_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:969:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 969 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &mac, &mac_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:969:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 969 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &mac, &mac_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:969:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 969 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &mac, &mac_len, &xflags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:975:60: error: expected ')' before 'TSRMLS_CC' 975 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:980:34: error: expected ')' before 'TSRMLS_CC' 980 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:987:38: error: expected ')' before 'TSRMLS_CC' 987 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:989:26: error: expected ')' before 'TSRMLS_CC' 989 | set_error(tmp TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:997:47: error: expected ')' before 'TSRMLS_CC' 997 | set_error("Unable to detach interface" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_attach_device': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1032:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1032 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1032:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1032 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1032:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1032 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1032:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1032 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_detach_device': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1057:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1057 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1057:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1057 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1057:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1057 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1057:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1057 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_info': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1079:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1079 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1079:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1079 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1079:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1079 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1079:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1079 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_name': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1107:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1107 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1107:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1107 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1107:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1107 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1107:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1107 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_uuid': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1135:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1135 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1135:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1135 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1135:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1135 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1135:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1135 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_uuid_string': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1161:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1161 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1161:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1161 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1161:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1161 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1161:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1161 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_id': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1187:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1187 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1187:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1187 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1187:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1187 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1187:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1187 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_lookup_by_uuid': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1212:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1212 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1212:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1212 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1212:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1212 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1212:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1212 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1225:83: error: expected ')' before 'TSRMLS_CC' 1225 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_lookup_by_uuid_string': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1247:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1247 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1247:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1247 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1247:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1247 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1247:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1247 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &uuid, &uuid_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1260:83: error: expected ')' before 'TSRMLS_CC' 1260 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_lookup_by_id': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1281:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1281 | GET_CONNECTION_FROM_ARGS("rl", &zconn, &id); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1281:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1281 | GET_CONNECTION_FROM_ARGS("rl", &zconn, &id); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1281:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1281 | GET_CONNECTION_FROM_ARGS("rl", &zconn, &id); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1281:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1281 | GET_CONNECTION_FROM_ARGS("rl", &zconn, &id); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1292:83: error: expected ')' before 'TSRMLS_CC' 1292 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_create': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1310:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1310 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1310:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1310 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1310:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1310 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1310:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1310 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_destroy': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1332:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1332 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1332:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1332 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1332:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1332 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1332:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1332 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_resume': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1354:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1354 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1354:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1354 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1354:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1354 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1354:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1354 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_core_dump': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1379:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1379 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &to, &to_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1379:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1379 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &to, &to_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1379:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1379 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &to, &to_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1379:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1379 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &to, &to_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_shutdown': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1401:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1401 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1401:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1401 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1401:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1401 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1401:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1401 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_suspend': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1423:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1423 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_managedsave': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1445:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1445 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1445:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1445 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1445:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1445 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1445:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1445 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_undefine': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1466:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1466 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1466:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1466 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1466:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1466 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1466:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1466 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_reboot': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1490:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1490 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1490:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1490 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1490:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1490 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1490:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1490 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_reset': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1514:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1514 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1514:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1514 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1514:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1514 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1514:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1514 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_define_xml': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1540:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1540 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1540:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1540 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1540:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1540 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1540:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1540 | GET_CONNECTION_FROM_ARGS("rs", &zconn, &xml, &xml_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1551:83: error: expected ')' before 'TSRMLS_CC' 1551 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_create_xml': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1574:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1574 | GET_CONNECTION_FROM_ARGS("rs|l", &zconn, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1574:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1574 | GET_CONNECTION_FROM_ARGS("rs|l", &zconn, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1574:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1574 | GET_CONNECTION_FROM_ARGS("rs|l", &zconn, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1574:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1574 | GET_CONNECTION_FROM_ARGS("rs|l", &zconn, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1586:83: error: expected ')' before 'TSRMLS_CC' 1586 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_xml_from_native': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1611:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1611 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &config_data, &config_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1611:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1611 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &config_data, &config_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1611:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1611 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &config_data, &config_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1611:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1611 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &config_data, &config_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1616:65: error: expected ')' before 'TSRMLS_CC' 1616 | set_error_if_unset("Cannot convert native format to XML" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_xml_to_native': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1644:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1644 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &xml_data, &xml_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1644:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1644 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &xml_data, &xml_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1644:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1644 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &xml_data, &xml_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1644:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 1644 | GET_CONNECTION_FROM_ARGS("rss", &zconn, &format, &format_len, &xml_data, &xml_data_len); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1649:70: error: expected ')' before 'TSRMLS_CC' 1649 | set_error_if_unset("Cannot convert to native format from XML" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_set_max_memory': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1671:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1671 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1671:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1671 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1671:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1671 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1671:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1671 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_set_memory': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1693:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1693 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1693:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1693 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1693:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1693 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1693:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1693 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &memory); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_set_memory_flags': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1717:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1717 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &memory, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1717:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1717 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &memory, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1717:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1717 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &memory, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1717:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1717 | GET_DOMAIN_FROM_ARGS("rl|l", &zdomain, &memory, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_memory_peek': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1745:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1745 | GET_DOMAIN_FROM_ARGS("rlll", &zdomain, &start, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1745:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1745 | GET_DOMAIN_FROM_ARGS("rlll", &zdomain, &start, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1745:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1745 | GET_DOMAIN_FROM_ARGS("rlll", &zdomain, &start, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1745:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1745 | GET_DOMAIN_FROM_ARGS("rlll", &zdomain, &start, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1747:44: error: expected ')' before 'TSRMLS_CC' 1747 | set_error("Negative argument start" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_memory_stats': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1775:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1775 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1775:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1775 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1775:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1775 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1775:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1775 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_commit': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1814:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1814 | GET_DOMAIN_FROM_ARGS("rs|ssll", &zdomain, &disk, &disk_len, &base, &base_len, &top, &top_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1814:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1814 | GET_DOMAIN_FROM_ARGS("rs|ssll", &zdomain, &disk, &disk_len, &base, &base_len, &top, &top_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1814:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1814 | GET_DOMAIN_FROM_ARGS("rs|ssll", &zdomain, &disk, &disk_len, &base, &base_len, &top, &top_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1814:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1814 | GET_DOMAIN_FROM_ARGS("rs|ssll", &zdomain, &disk, &disk_len, &base, &base_len, &top, &top_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_stats': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1847:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1847 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1847:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1847 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1847:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1847 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1847:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1847 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_resize': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1883:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1883 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1883:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1883 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1883:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1883 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1883:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1883 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &size, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_job_info': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1911:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1911 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &disk, &disk_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1911:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1911 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &disk, &disk_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1911:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1911 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &disk, &disk_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1911:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1911 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &disk, &disk_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_job_abort': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1942:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1942 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &path, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1942:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1942 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &path, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1942:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1942 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &path, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1942:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1942 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &path, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_block_job_set_speed': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1971:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1971 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1971:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1971 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1971:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1971 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1971:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1971 | GET_DOMAIN_FROM_ARGS("rsl|l", &zdomain, &path, &path_len, &bandwidth, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_interface_addresses': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:1998:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1998 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &source); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:1998:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1998 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &source); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:1998:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1998 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &source); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:1998:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 1998 | GET_DOMAIN_FROM_ARGS("rl", &zdomain, &source); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2002:9: error: expected ';' before 'goto' 2002 | goto cleanup; | ^~~~ In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_interface_stats': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2053:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2053 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2053:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2053 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2053:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2053 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2053:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2053 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &path, &path_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_connect': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2085:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2085 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2085:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2085 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2085:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2085 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2085:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2085 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_migrate': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2125:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2125 | GET_DOMAIN_FROM_ARGS("rrl|sl", &zdomain, &zdconn, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2125:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2125 | GET_DOMAIN_FROM_ARGS("rrl|sl", &zdomain, &zdconn, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2125:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2125 | GET_DOMAIN_FROM_ARGS("rrl|sl", &zdomain, &zdconn, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2125:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2125 | GET_DOMAIN_FROM_ARGS("rrl|sl", &zdomain, &zdconn, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2128:47: error: expected ')' before 'TSRMLS_CC' 2128 | set_error("Domain object is not valid" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2134:63: error: expected ')' before 'TSRMLS_CC' 2134 | set_error("Destination connection object is not valid" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2147:84: error: expected ')' before 'TSRMLS_CC' 2147 | resource_change_counter(INT_RESOURCE_DOMAIN, dconn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_migrate_to_uri': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2178:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2178 | GET_DOMAIN_FROM_ARGS("rsl|sl", &zdomain, &duri, &duri_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2178:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2178 | GET_DOMAIN_FROM_ARGS("rsl|sl", &zdomain, &duri, &duri_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2178:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2178 | GET_DOMAIN_FROM_ARGS("rsl|sl", &zdomain, &duri, &duri_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2178:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2178 | GET_DOMAIN_FROM_ARGS("rsl|sl", &zdomain, &duri, &duri_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_migrate_to_uri2': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2226:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2226 | GET_DOMAIN_FROM_ARGS("r|ssslsl", &zdomain, &dconnuri, &dconnuri_len, &miguri, &miguri_len, &dxml, &dxml_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2226:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2226 | GET_DOMAIN_FROM_ARGS("r|ssslsl", &zdomain, &dconnuri, &dconnuri_len, &miguri, &miguri_len, &dxml, &dxml_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2226:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2226 | GET_DOMAIN_FROM_ARGS("r|ssslsl", &zdomain, &dconnuri, &dconnuri_len, &miguri, &miguri_len, &dxml, &dxml_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2226:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2226 | GET_DOMAIN_FROM_ARGS("r|ssslsl", &zdomain, &dconnuri, &dconnuri_len, &miguri, &miguri_len, &dxml, &dxml_len, &flags, &dname, &dname_len, &bandwidth); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_job_info': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2261:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2261 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2261:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2261 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2261:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2261 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2261:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2261 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_xml_xpath': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2303:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2303 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &zpath, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2303:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2303 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &zpath, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2303:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2303 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &zpath, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2303:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2303 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &zpath, &path_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_block_info': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2350:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2350 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &dev, &dev_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2350:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2350 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &dev, &dev_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2350:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2350 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &dev, &dev_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2350:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2350 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &dev, &dev_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2355:42: error: expected ')' before 'TSRMLS_CC' 2355 | set_error("Cannot get domain XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2362:34: error: expected ')' before 'TSRMLS_CC' 2362 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2367:74: error: expected ')' before 'TSRMLS_CC' 2367 | set_error("Cannot get XPath expression result for device storage" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2374:38: error: expected ')' before 'TSRMLS_CC' 2374 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2380:76: error: expected ')' before 'TSRMLS_CC' 2380 | set_error("Cannot get XPath expression result for file storage" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2387:43: error: expected ')' before 'TSRMLS_CC' 2387 | set_error("No relevant node found" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2393:56: error: expected ')' before 'TSRMLS_CC' 2393 | set_error("Cannot get domain block information" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2408:34: error: expected ')' before 'TSRMLS_CC' 2408 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_network_info': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2451:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2451 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &mac, &mac_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2451:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2451 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &mac, &mac_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2451:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2451 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &mac, &mac_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2451:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2451 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &mac, &mac_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2456:42: error: expected ')' before 'TSRMLS_CC' 2456 | set_error("Cannot get domain XML" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2462:34: error: expected ')' before 'TSRMLS_CC' 2462 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2467:58: error: expected ')' before 'TSRMLS_CC' 2467 | set_error("Invalid XPath node for source network" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2472:74: error: expected ')' before 'TSRMLS_CC' 2472 | set_error("Cannot get XPath expression result for network source" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2484:34: error: expected ')' before 'TSRMLS_CC' 2484 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_autostart': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2518:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2518 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2518:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2518 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2518:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2518 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2518:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2518 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_set_autostart': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2540:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2540 | GET_DOMAIN_FROM_ARGS("rb", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2540:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2540 | GET_DOMAIN_FROM_ARGS("rb", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2540:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2540 | GET_DOMAIN_FROM_ARGS("rb", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2540:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2540 | GET_DOMAIN_FROM_ARGS("rb", &zdomain, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_metadata': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2568:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2568 | GET_DOMAIN_FROM_ARGS("rlsl", &zdomain, &type, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2568:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2568 | GET_DOMAIN_FROM_ARGS("rlsl", &zdomain, &type, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2568:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2568 | GET_DOMAIN_FROM_ARGS("rlsl", &zdomain, &type, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2568:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2568 | GET_DOMAIN_FROM_ARGS("rlsl", &zdomain, &type, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_set_metadata': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2608:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2608 | GET_DOMAIN_FROM_ARGS("rlsssl", &zdomain, &type, &metadata, &metadata_len, &key, &key_len, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2608:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2608 | GET_DOMAIN_FROM_ARGS("rlsssl", &zdomain, &type, &metadata, &metadata_len, &key, &key_len, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2608:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2608 | GET_DOMAIN_FROM_ARGS("rlsssl", &zdomain, &type, &metadata, &metadata_len, &key, &key_len, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2608:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2608 | GET_DOMAIN_FROM_ARGS("rlsssl", &zdomain, &type, &metadata, &metadata_len, &key, &key_len, &uri, &uri_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_is_active': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2631:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2631 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2631:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2631 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2631:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2631 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2631:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2631 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_next_dev_ids': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2649:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2649 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2649:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2649 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2649:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2649 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2649:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2649 | GET_DOMAIN_FROM_ARGS("r", &zdomain); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_get_screenshot': libvirt-domain.c:2703:38: error: expected ')' before 'TSRMLS_CC' 2703 | set_error("Out of memory" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2708:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2708 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &hostname, &hostname_len, &scancode); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2708:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2708 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &hostname, &hostname_len, &scancode); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2708:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2708 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &hostname, &hostname_len, &scancode); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2708:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2708 | GET_DOMAIN_FROM_ARGS("rs|l", &zdomain, &hostname, &hostname_len, &scancode); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2712:60: error: expected ')' before 'TSRMLS_CC' 2712 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2718:44: error: expected ')' before 'TSRMLS_CC' 2718 | set_error("Cannot get the VNC port" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2736:79: error: expected ')' before 'TSRMLS_CC' 2736 | set_error("Cannot use builtin approach to get VNC window contents" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2763:63: error: expected ')' before 'TSRMLS_CC' 2763 | set_error("Cannot spawn utility to get screenshot" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_screenshot_api': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2830:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2830 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &screen); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2830:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2830 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &screen); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2830:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2830 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &screen); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2830:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2830 | GET_DOMAIN_FROM_ARGS("r|l", &zdomain, &screen); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2833:45: error: expected ')' before 'TSRMLS_CC' 2833 | set_error("Cannot create new stream" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2839:58: error: expected ')' before 'TSRMLS_CC' 2839 | set_error_if_unset("Cannot get domain screenshot" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2845:78: error: expected ')' before 'TSRMLS_CC' 2845 | set_error_if_unset("Cannot get create file to save domain screenshot" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2850:60: error: expected ')' before 'TSRMLS_CC' 2850 | set_error_if_unset("Cannot receive screenshot data" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2856:60: error: expected ')' before 'TSRMLS_CC' 2856 | set_error_if_unset("Cannot close stream for domain" TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_get_screen_dimensions': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2923:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2923 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &hostname, &hostname_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2923:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2923 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &hostname, &hostname_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2923:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2923 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &hostname, &hostname_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2923:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2923 | GET_DOMAIN_FROM_ARGS("rs", &zdomain, &hostname, &hostname_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2927:60: error: expected ')' before 'TSRMLS_CC' 2927 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2933:44: error: expected ')' before 'TSRMLS_CC' 2933 | set_error("Cannot get the VNC port" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:2947:24: error: expected ')' before 'TSRMLS_CC' 2947 | set_error(error TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_send_keys': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:2992:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2992 | GET_DOMAIN_FROM_ARGS("rss", &zdomain, &hostname, &hostname_len, &keys, &keys_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:2992:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2992 | GET_DOMAIN_FROM_ARGS("rss", &zdomain, &hostname, &hostname_len, &keys, &keys_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2992:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2992 | GET_DOMAIN_FROM_ARGS("rss", &zdomain, &hostname, &hostname_len, &keys, &keys_len); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:2992:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 2992 | GET_DOMAIN_FROM_ARGS("rss", &zdomain, &hostname, &hostname_len, &keys, &keys_len); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:2998:60: error: expected ')' before 'TSRMLS_CC' 2998 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:3004:44: error: expected ')' before 'TSRMLS_CC' 3004 | set_error("Cannot get the VNC port" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:3016:23: error: expected ')' before 'TSRMLS_CC' 3016 | set_error(tmpp TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_send_key_api': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3058:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3058 | GET_DOMAIN_FROM_ARGS("rlla|l", &zdomain, &codeset, &holdtime, &zkeycodes, | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3058:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3058 | GET_DOMAIN_FROM_ARGS("rlla|l", &zdomain, &codeset, &holdtime, &zkeycodes, | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3058:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3058 | GET_DOMAIN_FROM_ARGS("rlla|l", &zdomain, &codeset, &holdtime, &zkeycodes, | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3058:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3058 | GET_DOMAIN_FROM_ARGS("rlla|l", &zdomain, &codeset, &holdtime, &zkeycodes, | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_send_pointer_event': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3111:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3111 | GET_DOMAIN_FROM_ARGS("rslll|b", &zdomain, &hostname, &hostname_len, &pos_x, &pos_y, &clicked, &release); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3111:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3111 | GET_DOMAIN_FROM_ARGS("rslll|b", &zdomain, &hostname, &hostname_len, &pos_x, &pos_y, &clicked, &release); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3111:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3111 | GET_DOMAIN_FROM_ARGS("rslll|b", &zdomain, &hostname, &hostname_len, &pos_x, &pos_y, &clicked, &release); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3111:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3111 | GET_DOMAIN_FROM_ARGS("rslll|b", &zdomain, &hostname, &hostname_len, &pos_x, &pos_y, &clicked, &release); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3115:60: error: expected ')' before 'TSRMLS_CC' 3115 | set_error_if_unset("Cannot get the XML description" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:3121:44: error: expected ')' before 'TSRMLS_CC' 3121 | set_error("Cannot get the VNC port" TSRMLS_CC); | ^~~~~~~~~~ | ) libvirt-domain.c:3134:24: error: expected ')' before 'TSRMLS_CC' 3134 | set_error(error TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_domain_update_device': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3170:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3170 | GET_DOMAIN_FROM_ARGS("rsl", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3170:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3170 | GET_DOMAIN_FROM_ARGS("rsl", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3170:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3170 | GET_DOMAIN_FROM_ARGS("rsl", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3170:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3170 | GET_DOMAIN_FROM_ARGS("rsl", &zdomain, &xml, &xml_len, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_domain_qemu_agent_command': libvirt-domain.h:28:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 28 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3200:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3200 | GET_DOMAIN_FROM_ARGS("rs|ll", &zdomain, &cmd, &cmd_len, &timeout, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:51: error: expected ')' before 'TSRMLS_CC' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3200:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3200 | GET_DOMAIN_FROM_ARGS("rs|ll", &zdomain, &cmd, &cmd_len, &timeout, &flags); | ^~~~~~~~~~~~~~~~~~~~ libvirt-domain.h:29:13: error: too few arguments to function 'zend_parse_parameters' 29 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3200:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3200 | GET_DOMAIN_FROM_ARGS("rs|ll", &zdomain, &cmd, &cmd_len, &timeout, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.c:12: libvirt-domain.h:32:43: error: expected ')' before 'TSRMLS_CC' 32 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3200:5: note: in expansion of macro 'GET_DOMAIN_FROM_ARGS' 3200 | GET_DOMAIN_FROM_ARGS("rs|ll", &zdomain, &cmd, &cmd_len, &timeout, &flags); | ^~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_list_domains': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3226:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3226 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3226:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3226 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3226:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3226 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3226:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3226 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_list_domain_resources': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3273:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3273 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3273:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3273 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3273:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3273 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3273:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3273 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3294:87: error: expected ')' before 'TSRMLS_CC' 3294 | resource_change_counter(INT_RESOURCE_DOMAIN, conn->conn, res_domain->domain, 1 TSRMLS_CC); | ^~~~~~~~~~ | ) In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-domain.c: In function 'zif_libvirt_list_active_domain_ids': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3328:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3328 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3328:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3328 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3328:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3328 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3328:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3328 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_list_active_domains': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3375:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3375 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3375:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3375 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3375:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3375 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3375:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3375 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c: In function 'zif_libvirt_list_inactive_domains': libvirt-connection.h:33:21: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'? 33 | reset_error(TSRMLS_C); \ | ^~~~~~~~ libvirt-domain.c:3422:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3422 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:51: error: expected ')' before 'TSRMLS_CC' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~ libvirt-domain.c:3422:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3422 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ libvirt-connection.h:34:13: error: too few arguments to function 'zend_parse_parameters' 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ | ^~~~~~~~~~~~~~~~~~~~~ libvirt-domain.c:3422:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3422 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:35, from util.h:19, from libvirt-php.h:44, from libvirt-domain.c:11: /usr/include/php/Zend/zend_API.h:304:22: note: declared here 304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from libvirt-domain.h:10, from libvirt-domain.c:12: libvirt-connection.h:37:42: error: expected ')' before 'TSRMLS_CC' 37 | set_error("Invalid arguments" TSRMLS_CC); \ | ^~~~~~~~~ libvirt-domain.c:3422:5: note: in expansion of macro 'GET_CONNECTION_FROM_ARGS' 3422 | GET_CONNECTION_FROM_ARGS("r", &zconn); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:588: libvirt_php_la-libvirt-domain.lo] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libvirt-php-0.5.5/src' make[1]: *** [Makefile:429: all-recursive] Error 1 make: *** [Makefile:359: all] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.g7ea3I (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.g7ea3I (%build) I: [iurt_root_command] ERROR: chroot