####################################################### # INSTALL : Zigbee2mqtt # ####################################################### ####################################################### ##### apt-get update in progress Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease Hit:5 https://dl.yarnpkg.com/debian stable InRelease Hit:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease Hit:7 https://deb.nodesource.com/node_16.x jammy InRelease Reading package lists... ####################################################### ##### Install or update Git Reading package lists... Building dependency tree... Reading state information... g++ is already the newest version (4:11.2.0-1ubuntu1). gcc is already the newest version (4:11.2.0-1ubuntu1). make is already the newest version (4.3-4.1build1). git is already the newest version (1:2.34.1-1ubuntu1.4). The following packages were automatically installed and are no longer required: libc-ares2 libnode72 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ####################################################### ##### Install or update NodeJs NodeJs 16 already installed : Nothing to do ! ####################################################### # INSTALLING : Mosquitto (server) # ####################################################### Reading package lists... Building dependency tree... Reading state information... mosquitto is already the newest version (2.0.11-1ubuntu1). The following packages were automatically installed and are no longer required: libc-ares2 libnode72 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ####################################################### # INSTALLING : Mosquitto for Php # ####################################################### ####################################################### ##### Install client dependency Reading package lists... Building dependency tree... Reading state information... php-pear is already the newest version (1:1.10.12+submodules+notgz+20210212-1ubuntu3). libmosquitto-dev is already the newest version (2.0.11-1ubuntu1). The following packages were automatically installed and are no longer required: libc-ares2 libnode72 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Building dependency tree... Reading state information... php7.4-dev is already the newest version (1:7.4.32-1+ubuntu22.04.1+deb.sury.org+2). php7.4-xml is already the newest version (1:7.4.32-1+ubuntu22.04.1+deb.sury.org+2). The following packages were automatically installed and are no longer required: libc-ares2 libnode72 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ####################################################### ##### Try installing client : First method downloading Mosquitto-0.4.0.tgz ... Starting to download Mosquitto-0.4.0.tgz (23,804 bytes) ........done: 23,804 bytes 5 source files, building running: phpize Configuring for: PHP Api Version: 20210902 Zend Module Api No: 20210902 Zend Extension Api No: 420210902 configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead build/php.m4:2111: PHP_CONFIG_NICE is expanded from... configure.ac:22: the top level configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:165: You should run autoupdate. build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from... configure.ac:165: the top level Please provide the prefix of the libmosquitto installation [autodetect] : building in /tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0 running: /tmp/pear/temp/Mosquitto/configure --with-php-config=/usr/bin/php-config --with-mosquitto checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether cc accepts -g... yes checking for cc option to enable C11 features... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking for system library directory... lib checking if compiler supports -Wl,-rpath,... yes checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking target system type... aarch64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib checking for PHP extension directory... /usr/lib/php/20210902 checking for PHP installed headers prefix... /usr/include/php/20210902 checking if debug is enabled... no checking if zts is enabled... no checking for gawk... gawk checking for mosquitto support... yes, shared checking for mosquitto files in default path... checking /usr... found in /usr checking for cc options needed to detect all undeclared functions... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking whether strerror_r is declared... yes checking whether strerror_r returns char *... no checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: patching config.h.in configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make /bin/bash /tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Mosquitto -I/tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0/include -I/tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/Mosquitto/mosquitto.c -o mosquitto.lo -MMD -MF mosquitto.dep -MT mosquitto.lo libtool: compile: cc -I. -I/tmp/pear/temp/Mosquitto -I/tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0/include -I/tmp/pear/temp/pear-build-root7LCPrD/Mosquitto-0.4.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/Mosquitto/mosquitto.c -MMD -MF mosquitto.dep -MT mosquitto.lo -fPIC -DPIC -o .libs/mosquitto.o In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:118:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 118 | typedef int (*php_mosquitto_write_t)(mosquitto_message_object *mosquitto_object, zval *newval TSRMLS_DC); | ^~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:124:9: error: unknown type name ‘php_mosquitto_write_t’ 124 | php_mosquitto_write_t write_func; | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:236:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 236 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC); | ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:36:79: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 36 | static inline mosquitto_client_object *mosquitto_client_object_get(zval *zobj TSRMLS_DC) { | ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client___construct’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:156:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 156 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:157:51: error: expected ‘)’ before ‘TSRMLS_CC’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:157:13: error: too few arguments to function ‘zend_parse_parameters’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:158:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 158 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:161:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 161 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:166:72: error: expected ‘)’ before ‘TSRMLS_CC’ 166 | zend_throw_exception(mosquitto_ce_exception, message, 1 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsCertificates’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:185:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 185 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:186:51: error: expected ‘)’ before ‘TSRMLS_CC’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:186:13: error: too few arguments to function ‘zend_parse_parameters’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:191:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 191 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:195:44: error: expected ‘)’ before ‘TSRMLS_CC’ 195 | if ((php_check_open_basedir(ca_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:196:50: error: expected ‘)’ before ‘TSRMLS_CC’ 196 | (php_check_open_basedir(cert_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:197:49: error: expected ‘)’ before ‘TSRMLS_CC’ 197 | (php_check_open_basedir(key_path TSRMLS_CC) < 0)) | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:199:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 199 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:203:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 203 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:205:56: error: expected ‘)’ before ‘TSRMLS_CC’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:205:18: warning: passing argument 1 of ‘php_stat’ from incompatible pointer type [-Wincompatible-pointer-types] 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~ | | | char * In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:35: note: expected ‘zend_string *’ {aka ‘struct _zend_string *’} but argument is of type ‘char *’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~~~~~~~~^~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:60:20: warning: passing argument 3 of ‘php_stat’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define FS_IS_DIR 13 | ^~ | | | int /tmp/pear/temp/Mosquitto/mosquitto.c:205:40: note: in expansion of macro ‘FS_IS_DIR’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:44:61: note: expected ‘zval *’ {aka ‘struct _zval_struct *’} but argument is of type ‘int’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~^~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:205:9: error: too many arguments to function ‘php_stat’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:13: note: declared here 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ^~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:220:9: warning: implicit declaration of function ‘php_mosquitto_handle_errno’ [-Wimplicit-function-declaration] 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:220:50: error: expected ‘)’ before ‘TSRMLS_CC’ 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsInsecure’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:232:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 232 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:233:51: error: expected ‘)’ before ‘TSRMLS_CC’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:233:13: error: too few arguments to function ‘zend_parse_parameters’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:234:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 234 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:237:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 237 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:241:50: error: expected ‘)’ before ‘TSRMLS_CC’ 241 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsOptions’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:253:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 253 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:254:51: error: expected ‘)’ before ‘TSRMLS_CC’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:254:13: error: too few arguments to function ‘zend_parse_parameters’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:259:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 259 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:262:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 262 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:266:50: error: expected ‘)’ before ‘TSRMLS_CC’ 266 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsPSK’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:279:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 279 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:280:51: error: expected ‘)’ before ‘TSRMLS_CC’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:280:13: error: too few arguments to function ‘zend_parse_parameters’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:283:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 283 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:286:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 286 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:290:50: error: expected ‘)’ before ‘TSRMLS_CC’ 290 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setCredentials’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:303:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 303 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:304:51: error: expected ‘)’ before ‘TSRMLS_CC’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:304:13: error: too few arguments to function ‘zend_parse_parameters’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:305:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 305 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:308:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 308 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:311:50: error: expected ‘)’ before ‘TSRMLS_CC’ 311 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setWill’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:325:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 325 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:326:51: error: expected ‘)’ before ‘TSRMLS_CC’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:326:13: error: too few arguments to function ‘zend_parse_parameters’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:328:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 328 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:331:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 331 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:335:50: error: expected ‘)’ before ‘TSRMLS_CC’ 335 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_clearWill’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:345:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 345 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:347:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 347 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:350:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 350 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:354:50: error: expected ‘)’ before ‘TSRMLS_CC’ 354 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setReconnectDelay’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:366:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 366 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:367:51: error: expected ‘)’ before ‘TSRMLS_CC’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:367:13: error: too few arguments to function ‘zend_parse_parameters’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:369:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 369 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:372:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 372 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:376:50: error: expected ‘)’ before ‘TSRMLS_CC’ 376 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_connect’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:390:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 390 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:391:51: error: expected ‘)’ before ‘TSRMLS_CC’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:391:13: error: too few arguments to function ‘zend_parse_parameters’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:395:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 395 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:398:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 398 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:406:50: error: expected ‘)’ before ‘TSRMLS_CC’ 406 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_disconnect’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:417:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 417 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:419:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 419 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:422:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 422 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:427:50: error: expected ‘)’ before ‘TSRMLS_CC’ 427 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onConnect’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:438:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 438 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:439:51: error: expected ‘)’ before ‘TSRMLS_CC’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:439:13: error: too few arguments to function ‘zend_parse_parameters’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:442:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 442 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:445:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 445 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:448:88: error: expected ‘)’ before ‘TSRMLS_CC’ 448 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onDisconnect’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:467:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 467 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:468:51: error: expected ‘)’ before ‘TSRMLS_CC’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:468:13: error: too few arguments to function ‘zend_parse_parameters’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:471:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 471 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:474:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 474 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:477:88: error: expected ‘)’ before ‘TSRMLS_CC’ 477 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onLog’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:496:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 496 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:497:51: error: expected ‘)’ before ‘TSRMLS_CC’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:497:13: error: too few arguments to function ‘zend_parse_parameters’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:500:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 500 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:503:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 503 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:506:88: error: expected ‘)’ before ‘TSRMLS_CC’ 506 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onSubscribe’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:525:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 525 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:526:51: error: expected ‘)’ before ‘TSRMLS_CC’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:526:13: error: too few arguments to function ‘zend_parse_parameters’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:529:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 529 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:532:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 532 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:535:88: error: expected ‘)’ before ‘TSRMLS_CC’ 535 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onUnsubscribe’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:554:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 554 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:555:51: error: expected ‘)’ before ‘TSRMLS_CC’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:555:13: error: too few arguments to function ‘zend_parse_parameters’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:558:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 558 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:561:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 561 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:564:88: error: expected ‘)’ before ‘TSRMLS_CC’ 564 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onMessage’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:583:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 583 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:584:51: error: expected ‘)’ before ‘TSRMLS_CC’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:584:13: error: too few arguments to function ‘zend_parse_parameters’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:587:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 587 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:590:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 590 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:593:88: error: expected ‘)’ before ‘TSRMLS_CC’ 593 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onPublish’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:612:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 612 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:613:51: error: expected ‘)’ before ‘TSRMLS_CC’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:613:13: error: too few arguments to function ‘zend_parse_parameters’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:616:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 616 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:619:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 619 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:622:88: error: expected ‘)’ before ‘TSRMLS_CC’ 622 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_getSocket’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:639:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 639 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:641:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 641 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:644:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 644 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setMaxInFlightMessages’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:657:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 657 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:658:51: error: expected ‘)’ before ‘TSRMLS_CC’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:658:13: error: too few arguments to function ‘zend_parse_parameters’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:659:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 659 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:662:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 662 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:666:50: error: expected ‘)’ before ‘TSRMLS_CC’ 666 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setMessageRetry’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:676:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 676 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:677:51: error: expected ‘)’ before ‘TSRMLS_CC’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:677:13: error: too few arguments to function ‘zend_parse_parameters’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:678:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 678 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:681:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 681 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_publish’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:697:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 697 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:698:51: error: expected ‘)’ before ‘TSRMLS_CC’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:698:13: error: too few arguments to function ‘zend_parse_parameters’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:700:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 700 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:703:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 703 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:707:50: error: expected ‘)’ before ‘TSRMLS_CC’ 707 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_subscribe’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:722:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 722 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:723:51: error: expected ‘)’ before ‘TSRMLS_CC’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:723:13: error: too few arguments to function ‘zend_parse_parameters’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:725:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 725 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:728:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 728 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:732:50: error: expected ‘)’ before ‘TSRMLS_CC’ 732 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_unsubscribe’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:746:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 746 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:747:51: error: expected ‘)’ before ‘TSRMLS_CC’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:747:13: error: too few arguments to function ‘zend_parse_parameters’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:749:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 749 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:752:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 752 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:756:50: error: expected ‘)’ before ‘TSRMLS_CC’ 756 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_loop’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:769:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 769 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:770:51: error: expected ‘)’ before ‘TSRMLS_CC’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:770:13: error: too few arguments to function ‘zend_parse_parameters’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:772:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 772 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:775:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 775 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:778:50: error: expected ‘)’ before ‘TSRMLS_CC’ 778 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_loopForever’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:789:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 789 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:790:51: error: expected ‘)’ before ‘TSRMLS_CC’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:790:13: error: too few arguments to function ‘zend_parse_parameters’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:792:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 792 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:795:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 795 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:801:58: error: expected ‘)’ before ‘TSRMLS_CC’ 801 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12: /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_exitLoop’: /tmp/pear/temp/Mosquitto/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:815:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 815 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:817:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 817 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:820:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 820 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: At top level: /tmp/pear/temp/Mosquitto/mosquitto.c:851:78: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 851 | static void mosquitto_client_object_destroy(zend_object *object ZO_HANDLE_DC TSRMLS_DC) | ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:876:62: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 876 | static void mosquitto_client_object_free(zend_object *object TSRMLS_DC) { | ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:936:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 936 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC) { | ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_connect_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:991:90: error: expected ‘)’ before ‘TSRMLS_CC’ 991 | if (zend_call_function(&object->connect_callback, &object->connect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:993:74: error: expected ‘)’ before ‘TSRMLS_CC’ 993 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:993:25: error: too few arguments to function ‘zend_throw_exception_ex’ 993 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_disconnect_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1044:96: error: expected ‘)’ before ‘TSRMLS_CC’ 1044 | if (zend_call_function(&object->disconnect_callback, &object->disconnect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1046:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1046 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1046:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1046 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_log_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1100:82: error: expected ‘)’ before ‘TSRMLS_CC’ 1100 | if (zend_call_function(&object->log_callback, &object->log_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1102:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1102 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1102:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1102 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_message_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1164:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1164 | if (zend_call_function(&object->message_callback, &object->message_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1166:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1166 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1166:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1166 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_publish_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1214:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1214 | if (zend_call_function(&object->publish_callback, &object->publish_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1216:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1216 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1216:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1216 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_subscribe_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1275:94: error: expected ‘)’ before ‘TSRMLS_CC’ 1275 | if (zend_call_function(&object->subscribe_callback, &object->subscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1277:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1277 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1277:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1277 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_unsubscribe_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1330:98: error: expected ‘)’ before ‘TSRMLS_CC’ 1330 | if (zend_call_function(&object->unsubscribe_callback, &object->unsubscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1332:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1332 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1332:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1332 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_pw_callback’: /tmp/pear/temp/Mosquitto/mosquitto.c:1349:9: warning: implicit declaration of function ‘TSRMLS_FETCH’; did you mean ‘TSRMLS_CACHE’? [-Wimplicit-function-declaration] 1349 | TSRMLS_FETCH(); | ^~~~~~~~~~~~ | TSRMLS_CACHE /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zm_startup_mosquitto’: /tmp/pear/temp/Mosquitto/mosquitto.c:1435:51: error: ‘mosquitto_client_object_free’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1435 | mosquitto_std_object_handlers.free_obj = mosquitto_client_object_free; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/pear/temp/Mosquitto/mosquitto.c:1435:51: note: each undeclared identifier is reported only once for each function it appears in /tmp/pear/temp/Mosquitto/mosquitto.c:1436:51: error: ‘mosquitto_client_object_destroy’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1436 | mosquitto_std_object_handlers.dtor_obj = mosquitto_client_object_destroy; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/pear/temp/Mosquitto/mosquitto.c:1440:70: error: expected ‘)’ before ‘TSRMLS_CC’ 1440 | mosquitto_ce_client = zend_register_internal_class(&client_ce TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/pear/temp/Mosquitto/mosquitto.c:1444:108: error: ‘TSRMLS_C’ undeclared (first use in this function); did you mean ‘TSRM_H’? 1444 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~ | TSRM_H /tmp/pear/temp/Mosquitto/mosquitto.c:1444:81: error: too many arguments to function ‘zend_exception_get_default’ 1444 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:51:28: note: declared here 51 | ZEND_API zend_class_entry *zend_exception_get_default(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1454:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1454 | REGISTER_MOSQUITTO_LONG_CONST("LOG_INFO", MOSQ_LOG_INFO); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1455:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1455 | REGISTER_MOSQUITTO_LONG_CONST("LOG_NOTICE", MOSQ_LOG_NOTICE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1456:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1456 | REGISTER_MOSQUITTO_LONG_CONST("LOG_WARNING", MOSQ_LOG_WARNING); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1457:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1457 | REGISTER_MOSQUITTO_LONG_CONST("LOG_ERR", MOSQ_LOG_ERR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1458:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1458 | REGISTER_MOSQUITTO_LONG_CONST("LOG_DEBUG", MOSQ_LOG_DEBUG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1460:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1460 | REGISTER_MOSQUITTO_LONG_CONST("SSL_VERIFY_NONE", 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1451:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1451 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c:1461:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1461 | REGISTER_MOSQUITTO_LONG_CONST("SSL_VERIFY_PEER", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_strerror_wrapper’: /tmp/pear/temp/Mosquitto/mosquitto.c:838:9: warning: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 838 | strerror_r(err, buf, 256); | ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:208: mosquitto.lo] Error 1 ERROR: `make' failed ####################################################### ##### Try installing client : Second method (complile) ####################################################### Reading package lists... Building dependency tree... Reading state information... build-essential is already the newest version (12.9ubuntu3). The following packages were automatically installed and are no longer required: libc-ares2 libnode72 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Cloning into 'Mosquitto-PHP'... Configuring for: PHP Api Version: 20210902 Zend Module Api No: 20210902 Zend Extension Api No: 420210902 configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead build/php.m4:2111: PHP_CONFIG_NICE is expanded from... configure.ac:22: the top level configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:165: You should run autoupdate. build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from... configure.ac:165: the top level checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether cc accepts -g... yes checking for cc option to enable C11 features... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking for system library directory... lib checking if compiler supports -Wl,-rpath,... yes checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking target system type... aarch64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib checking for PHP extension directory... /usr/lib/php/20210902 checking for PHP installed headers prefix... /usr/include/php/20210902 checking if debug is enabled... no checking if zts is enabled... no checking for gawk... gawk checking for mosquitto support... yes, shared checking for mosquitto files in default path... checking /usr... found in /usr checking for cc options needed to detect all undeclared functions... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking whether strerror_r is declared... yes checking whether strerror_r returns char *... no checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: patching config.h.in configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands /bin/bash /tmp/Mosquitto-PHP/libtool --mode=compile cc -I. -I/tmp/Mosquitto-PHP -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/Mosquitto-PHP/mosquitto.c -o mosquitto.lo -MMD -MF mosquitto.dep -MT mosquitto.lo libtool: compile: cc -I. -I/tmp/Mosquitto-PHP -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/Mosquitto-PHP/mosquitto.c -MMD -MF mosquitto.dep -MT mosquitto.lo -fPIC -DPIC -o .libs/mosquitto.o In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:118:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 118 | typedef int (*php_mosquitto_write_t)(mosquitto_message_object *mosquitto_object, zval *newval TSRMLS_DC); | ^~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:124:9: error: unknown type name ‘php_mosquitto_write_t’ 124 | php_mosquitto_write_t write_func; | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:236:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 236 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC); | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:36:79: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 36 | static inline mosquitto_client_object *mosquitto_client_object_get(zval *zobj TSRMLS_DC) { | ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client___construct’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:156:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 156 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:157:51: error: expected ‘)’ before ‘TSRMLS_CC’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:157:13: error: too few arguments to function ‘zend_parse_parameters’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:158:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 158 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:161:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 161 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:166:72: error: expected ‘)’ before ‘TSRMLS_CC’ 166 | zend_throw_exception(mosquitto_ce_exception, message, 1 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsCertificates’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:185:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 185 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:186:51: error: expected ‘)’ before ‘TSRMLS_CC’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:186:13: error: too few arguments to function ‘zend_parse_parameters’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:191:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 191 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:195:44: error: expected ‘)’ before ‘TSRMLS_CC’ 195 | if ((php_check_open_basedir(ca_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:196:50: error: expected ‘)’ before ‘TSRMLS_CC’ 196 | (php_check_open_basedir(cert_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:197:49: error: expected ‘)’ before ‘TSRMLS_CC’ 197 | (php_check_open_basedir(key_path TSRMLS_CC) < 0)) | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:199:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 199 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:203:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 203 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:205:56: error: expected ‘)’ before ‘TSRMLS_CC’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:205:18: warning: passing argument 1 of ‘php_stat’ from incompatible pointer type [-Wincompatible-pointer-types] 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~ | | | char * In file included from /tmp/Mosquitto-PHP/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:35: note: expected ‘zend_string *’ {aka ‘struct _zend_string *’} but argument is of type ‘char *’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~~~~~~~~^~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:60:20: warning: passing argument 3 of ‘php_stat’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define FS_IS_DIR 13 | ^~ | | | int /tmp/Mosquitto-PHP/mosquitto.c:205:40: note: in expansion of macro ‘FS_IS_DIR’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:44:61: note: expected ‘zval *’ {aka ‘struct _zval_struct *’} but argument is of type ‘int’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~^~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:205:9: error: too many arguments to function ‘php_stat’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:13: note: declared here 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ^~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:220:9: warning: implicit declaration of function ‘php_mosquitto_handle_errno’ [-Wimplicit-function-declaration] 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:220:50: error: expected ‘)’ before ‘TSRMLS_CC’ 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsInsecure’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:232:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 232 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:233:51: error: expected ‘)’ before ‘TSRMLS_CC’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:233:13: error: too few arguments to function ‘zend_parse_parameters’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:234:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 234 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:237:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 237 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:241:50: error: expected ‘)’ before ‘TSRMLS_CC’ 241 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsOptions’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:253:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 253 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:254:51: error: expected ‘)’ before ‘TSRMLS_CC’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:254:13: error: too few arguments to function ‘zend_parse_parameters’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:259:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 259 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:262:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 262 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:266:50: error: expected ‘)’ before ‘TSRMLS_CC’ 266 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsPSK’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:279:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 279 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:280:51: error: expected ‘)’ before ‘TSRMLS_CC’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:280:13: error: too few arguments to function ‘zend_parse_parameters’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:283:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 283 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:286:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 286 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:290:50: error: expected ‘)’ before ‘TSRMLS_CC’ 290 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setCredentials’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:303:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 303 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:304:51: error: expected ‘)’ before ‘TSRMLS_CC’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:304:13: error: too few arguments to function ‘zend_parse_parameters’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:305:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 305 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:308:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 308 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:311:50: error: expected ‘)’ before ‘TSRMLS_CC’ 311 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setWill’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:325:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 325 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:326:51: error: expected ‘)’ before ‘TSRMLS_CC’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:326:13: error: too few arguments to function ‘zend_parse_parameters’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:328:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 328 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:331:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 331 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:335:50: error: expected ‘)’ before ‘TSRMLS_CC’ 335 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_clearWill’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:345:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 345 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:347:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 347 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:350:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 350 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:354:50: error: expected ‘)’ before ‘TSRMLS_CC’ 354 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setReconnectDelay’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:366:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 366 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:367:51: error: expected ‘)’ before ‘TSRMLS_CC’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:367:13: error: too few arguments to function ‘zend_parse_parameters’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:369:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 369 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:372:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 372 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:376:50: error: expected ‘)’ before ‘TSRMLS_CC’ 376 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_connect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:390:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 390 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:391:51: error: expected ‘)’ before ‘TSRMLS_CC’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:391:13: error: too few arguments to function ‘zend_parse_parameters’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:395:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 395 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:398:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 398 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:406:50: error: expected ‘)’ before ‘TSRMLS_CC’ 406 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_disconnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:417:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 417 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:419:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 419 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:422:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 422 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:427:50: error: expected ‘)’ before ‘TSRMLS_CC’ 427 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onConnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:438:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 438 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:439:51: error: expected ‘)’ before ‘TSRMLS_CC’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:439:13: error: too few arguments to function ‘zend_parse_parameters’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:442:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 442 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:445:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 445 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:448:88: error: expected ‘)’ before ‘TSRMLS_CC’ 448 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onDisconnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:467:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 467 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:468:51: error: expected ‘)’ before ‘TSRMLS_CC’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:468:13: error: too few arguments to function ‘zend_parse_parameters’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:471:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 471 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:474:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 474 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:477:88: error: expected ‘)’ before ‘TSRMLS_CC’ 477 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onLog’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:496:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 496 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:497:51: error: expected ‘)’ before ‘TSRMLS_CC’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:497:13: error: too few arguments to function ‘zend_parse_parameters’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:500:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 500 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:503:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 503 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:506:88: error: expected ‘)’ before ‘TSRMLS_CC’ 506 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onSubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:525:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 525 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:526:51: error: expected ‘)’ before ‘TSRMLS_CC’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:526:13: error: too few arguments to function ‘zend_parse_parameters’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:529:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 529 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:532:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 532 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:535:88: error: expected ‘)’ before ‘TSRMLS_CC’ 535 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onUnsubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:554:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 554 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:555:51: error: expected ‘)’ before ‘TSRMLS_CC’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:555:13: error: too few arguments to function ‘zend_parse_parameters’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:558:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 558 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:561:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 561 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:564:88: error: expected ‘)’ before ‘TSRMLS_CC’ 564 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onMessage’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:583:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 583 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:584:51: error: expected ‘)’ before ‘TSRMLS_CC’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:584:13: error: too few arguments to function ‘zend_parse_parameters’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:587:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 587 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:590:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 590 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:593:88: error: expected ‘)’ before ‘TSRMLS_CC’ 593 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onPublish’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:612:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 612 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:613:51: error: expected ‘)’ before ‘TSRMLS_CC’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:613:13: error: too few arguments to function ‘zend_parse_parameters’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:616:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 616 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:619:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 619 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:622:88: error: expected ‘)’ before ‘TSRMLS_CC’ 622 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_getSocket’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:639:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 639 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:641:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 641 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:644:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 644 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setMaxInFlightMessages’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:657:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 657 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:658:51: error: expected ‘)’ before ‘TSRMLS_CC’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:658:13: error: too few arguments to function ‘zend_parse_parameters’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:659:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 659 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:662:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 662 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:666:50: error: expected ‘)’ before ‘TSRMLS_CC’ 666 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setMessageRetry’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:676:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 676 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:677:51: error: expected ‘)’ before ‘TSRMLS_CC’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:677:13: error: too few arguments to function ‘zend_parse_parameters’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:678:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 678 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:681:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 681 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_publish’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:697:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 697 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:698:51: error: expected ‘)’ before ‘TSRMLS_CC’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:698:13: error: too few arguments to function ‘zend_parse_parameters’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:700:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 700 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:703:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 703 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:707:50: error: expected ‘)’ before ‘TSRMLS_CC’ 707 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_subscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:722:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 722 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:723:51: error: expected ‘)’ before ‘TSRMLS_CC’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:723:13: error: too few arguments to function ‘zend_parse_parameters’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:725:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 725 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:728:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 728 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:732:50: error: expected ‘)’ before ‘TSRMLS_CC’ 732 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_unsubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:746:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 746 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:747:51: error: expected ‘)’ before ‘TSRMLS_CC’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:747:13: error: too few arguments to function ‘zend_parse_parameters’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:749:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 749 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:752:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 752 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:756:50: error: expected ‘)’ before ‘TSRMLS_CC’ 756 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_loop’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:769:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 769 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:770:51: error: expected ‘)’ before ‘TSRMLS_CC’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:770:13: error: too few arguments to function ‘zend_parse_parameters’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:772:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 772 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:775:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 775 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:778:50: error: expected ‘)’ before ‘TSRMLS_CC’ 778 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_loopForever’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:789:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 789 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:790:51: error: expected ‘)’ before ‘TSRMLS_CC’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:790:13: error: too few arguments to function ‘zend_parse_parameters’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:792:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 792 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:795:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 795 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:801:58: error: expected ‘)’ before ‘TSRMLS_CC’ 801 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_exitLoop’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:815:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 815 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:817:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 817 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:820:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 820 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: At top level: /tmp/Mosquitto-PHP/mosquitto.c:851:78: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 851 | static void mosquitto_client_object_destroy(zend_object *object ZO_HANDLE_DC TSRMLS_DC) | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:871:62: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 871 | static void mosquitto_client_object_free(zend_object *object TSRMLS_DC) { | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:931:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 931 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC) { | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_connect_callback’: /tmp/Mosquitto-PHP/mosquitto.c:986:90: error: expected ‘)’ before ‘TSRMLS_CC’ 986 | if (zend_call_function(&object->connect_callback, &object->connect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:988:74: error: expected ‘)’ before ‘TSRMLS_CC’ 988 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:988:25: error: too few arguments to function ‘zend_throw_exception_ex’ 988 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_disconnect_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1039:96: error: expected ‘)’ before ‘TSRMLS_CC’ 1039 | if (zend_call_function(&object->disconnect_callback, &object->disconnect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1041:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1041 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1041:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1041 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_log_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1095:82: error: expected ‘)’ before ‘TSRMLS_CC’ 1095 | if (zend_call_function(&object->log_callback, &object->log_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1097:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1097 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1097:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1097 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_message_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1159:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1159 | if (zend_call_function(&object->message_callback, &object->message_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1161:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1161 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1161:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1161 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_publish_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1209:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1209 | if (zend_call_function(&object->publish_callback, &object->publish_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1211:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1211 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1211:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1211 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_subscribe_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1270:94: error: expected ‘)’ before ‘TSRMLS_CC’ 1270 | if (zend_call_function(&object->subscribe_callback, &object->subscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1272:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1272 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1272:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1272 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_unsubscribe_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1325:98: error: expected ‘)’ before ‘TSRMLS_CC’ 1325 | if (zend_call_function(&object->unsubscribe_callback, &object->unsubscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1327:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1327 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1327:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1327 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_pw_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1344:9: warning: implicit declaration of function ‘TSRMLS_FETCH’; did you mean ‘TSRMLS_CACHE’? [-Wimplicit-function-declaration] 1344 | TSRMLS_FETCH(); | ^~~~~~~~~~~~ | TSRMLS_CACHE /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zm_startup_mosquitto’: /tmp/Mosquitto-PHP/mosquitto.c:1430:51: error: ‘mosquitto_client_object_free’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1430 | mosquitto_std_object_handlers.free_obj = mosquitto_client_object_free; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/Mosquitto-PHP/mosquitto.c:1430:51: note: each undeclared identifier is reported only once for each function it appears in /tmp/Mosquitto-PHP/mosquitto.c:1431:51: error: ‘mosquitto_client_object_destroy’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1431 | mosquitto_std_object_handlers.dtor_obj = mosquitto_client_object_destroy; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/Mosquitto-PHP/mosquitto.c:1435:70: error: expected ‘)’ before ‘TSRMLS_CC’ 1435 | mosquitto_ce_client = zend_register_internal_class(&client_ce TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1439:108: error: ‘TSRMLS_C’ undeclared (first use in this function); did you mean ‘TSRM_H’? 1439 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~ | TSRM_H /tmp/Mosquitto-PHP/mosquitto.c:1439:81: error: too many arguments to function ‘zend_exception_get_default’ 1439 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:51:28: note: declared here 51 | ZEND_API zend_class_entry *zend_exception_get_default(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1449:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1449 | REGISTER_MOSQUITTO_LONG_CONST("LOG_INFO", MOSQ_LOG_INFO); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1450:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1450 | REGISTER_MOSQUITTO_LONG_CONST("LOG_NOTICE", MOSQ_LOG_NOTICE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1451:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1451 | REGISTER_MOSQUITTO_LONG_CONST("LOG_WARNING", MOSQ_LOG_WARNING); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1452:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1452 | REGISTER_MOSQUITTO_LONG_CONST("LOG_ERR", MOSQ_LOG_ERR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1453:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1453 | REGISTER_MOSQUITTO_LONG_CONST("LOG_DEBUG", MOSQ_LOG_DEBUG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1455:112: error: expected ‘)’ before ‘TSRMLS_CC’ 1455 | zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_NONE", sizeof("SSL_VERIFY_NONE")-1, 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1456:112: error: expected ‘)’ before ‘TSRMLS_CC’ 1456 | zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_PEER", sizeof("SSL_VERIFY_PEER")-1, 1 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_strerror_wrapper’: /tmp/Mosquitto-PHP/mosquitto.c:838:9: warning: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 838 | strerror_r(err, buf, 256); | ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:208: mosquitto.lo] Error 1 /bin/bash /tmp/Mosquitto-PHP/libtool --mode=compile cc -I. -I/tmp/Mosquitto-PHP -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/Mosquitto-PHP/mosquitto.c -o mosquitto.lo -MMD -MF mosquitto.dep -MT mosquitto.lo libtool: compile: cc -I. -I/tmp/Mosquitto-PHP -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/Mosquitto-PHP/mosquitto.c -MMD -MF mosquitto.dep -MT mosquitto.lo -fPIC -DPIC -o .libs/mosquitto.o In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:118:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 118 | typedef int (*php_mosquitto_write_t)(mosquitto_message_object *mosquitto_object, zval *newval TSRMLS_DC); | ^~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:124:9: error: unknown type name ‘php_mosquitto_write_t’ 124 | php_mosquitto_write_t write_func; | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:236:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 236 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC); | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:36:79: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 36 | static inline mosquitto_client_object *mosquitto_client_object_get(zval *zobj TSRMLS_DC) { | ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client___construct’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:156:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 156 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:157:51: error: expected ‘)’ before ‘TSRMLS_CC’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:157:13: error: too few arguments to function ‘zend_parse_parameters’ 157 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!b", &id, &id_len, &clean_session) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:158:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 158 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:161:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 161 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:166:72: error: expected ‘)’ before ‘TSRMLS_CC’ 166 | zend_throw_exception(mosquitto_ce_exception, message, 1 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsCertificates’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:185:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 185 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:186:51: error: expected ‘)’ before ‘TSRMLS_CC’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:186:13: error: too few arguments to function ‘zend_parse_parameters’ 186 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|s!s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:191:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 191 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:195:44: error: expected ‘)’ before ‘TSRMLS_CC’ 195 | if ((php_check_open_basedir(ca_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:196:50: error: expected ‘)’ before ‘TSRMLS_CC’ 196 | (php_check_open_basedir(cert_path TSRMLS_CC) < 0) || | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:197:49: error: expected ‘)’ before ‘TSRMLS_CC’ 197 | (php_check_open_basedir(key_path TSRMLS_CC) < 0)) | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:199:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 199 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:203:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 203 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:205:56: error: expected ‘)’ before ‘TSRMLS_CC’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:205:18: warning: passing argument 1 of ‘php_stat’ from incompatible pointer type [-Wincompatible-pointer-types] 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~ | | | char * In file included from /tmp/Mosquitto-PHP/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:35: note: expected ‘zend_string *’ {aka ‘struct _zend_string *’} but argument is of type ‘char *’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~~~~~~~~^~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:60:20: warning: passing argument 3 of ‘php_stat’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define FS_IS_DIR 13 | ^~ | | | int /tmp/Mosquitto-PHP/mosquitto.c:205:40: note: in expansion of macro ‘FS_IS_DIR’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~~ /usr/include/php/20210902/ext/standard/php_filestat.h:44:61: note: expected ‘zval *’ {aka ‘struct _zval_struct *’} but argument is of type ‘int’ 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ~~~~~~^~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:205:9: error: too many arguments to function ‘php_stat’ 205 | php_stat(ca_path, ca_path_len, FS_IS_DIR, &stat TSRMLS_CC); | ^~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:10: /usr/include/php/20210902/ext/standard/php_filestat.h:44:13: note: declared here 44 | PHPAPI void php_stat(zend_string *filename, int type, zval *return_value); | ^~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:220:9: warning: implicit declaration of function ‘php_mosquitto_handle_errno’ [-Wimplicit-function-declaration] 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:220:50: error: expected ‘)’ before ‘TSRMLS_CC’ 220 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsInsecure’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:232:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 232 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:233:51: error: expected ‘)’ before ‘TSRMLS_CC’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:233:13: error: too few arguments to function ‘zend_parse_parameters’ 233 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &value) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:234:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 234 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:237:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 237 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:241:50: error: expected ‘)’ before ‘TSRMLS_CC’ 241 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsOptions’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:253:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 253 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:254:51: error: expected ‘)’ before ‘TSRMLS_CC’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:254:13: error: too few arguments to function ‘zend_parse_parameters’ 254 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s!s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:259:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 259 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:262:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 262 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:266:50: error: expected ‘)’ before ‘TSRMLS_CC’ 266 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsPSK’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:279:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 279 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:280:51: error: expected ‘)’ before ‘TSRMLS_CC’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:280:13: error: too few arguments to function ‘zend_parse_parameters’ 280 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!s!|s!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:283:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 283 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:286:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 286 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:290:50: error: expected ‘)’ before ‘TSRMLS_CC’ 290 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setCredentials’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:303:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 303 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:304:51: error: expected ‘)’ before ‘TSRMLS_CC’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:304:13: error: too few arguments to function ‘zend_parse_parameters’ 304 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &username, &username_len, &password, &password_len) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:305:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 305 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:308:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 308 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:311:50: error: expected ‘)’ before ‘TSRMLS_CC’ 311 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setWill’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:325:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 325 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:326:51: error: expected ‘)’ before ‘TSRMLS_CC’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:326:13: error: too few arguments to function ‘zend_parse_parameters’ 326 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sslb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:328:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 328 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:331:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 331 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:335:50: error: expected ‘)’ before ‘TSRMLS_CC’ 335 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_clearWill’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:345:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 345 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:347:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 347 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:350:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 350 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:354:50: error: expected ‘)’ before ‘TSRMLS_CC’ 354 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setReconnectDelay’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:366:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 366 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:367:51: error: expected ‘)’ before ‘TSRMLS_CC’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:367:13: error: too few arguments to function ‘zend_parse_parameters’ 367 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:369:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 369 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:372:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 372 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:376:50: error: expected ‘)’ before ‘TSRMLS_CC’ 376 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_connect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:390:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 390 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:391:51: error: expected ‘)’ before ‘TSRMLS_CC’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:391:13: error: too few arguments to function ‘zend_parse_parameters’ 391 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:395:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 395 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:398:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 398 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:406:50: error: expected ‘)’ before ‘TSRMLS_CC’ 406 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_disconnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:417:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 417 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:419:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 419 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:422:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 422 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:427:50: error: expected ‘)’ before ‘TSRMLS_CC’ 427 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onConnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:438:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 438 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:439:51: error: expected ‘)’ before ‘TSRMLS_CC’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:439:13: error: too few arguments to function ‘zend_parse_parameters’ 439 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:442:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 442 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:445:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 445 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:448:88: error: expected ‘)’ before ‘TSRMLS_CC’ 448 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onDisconnect’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:467:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 467 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:468:51: error: expected ‘)’ before ‘TSRMLS_CC’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:468:13: error: too few arguments to function ‘zend_parse_parameters’ 468 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:471:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 471 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:474:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 474 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:477:88: error: expected ‘)’ before ‘TSRMLS_CC’ 477 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onLog’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:496:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 496 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:497:51: error: expected ‘)’ before ‘TSRMLS_CC’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:497:13: error: too few arguments to function ‘zend_parse_parameters’ 497 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:500:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 500 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:503:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 503 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:506:88: error: expected ‘)’ before ‘TSRMLS_CC’ 506 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onSubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:525:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 525 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:526:51: error: expected ‘)’ before ‘TSRMLS_CC’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:526:13: error: too few arguments to function ‘zend_parse_parameters’ 526 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:529:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 529 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:532:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 532 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:535:88: error: expected ‘)’ before ‘TSRMLS_CC’ 535 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onUnsubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:554:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 554 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:555:51: error: expected ‘)’ before ‘TSRMLS_CC’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:555:13: error: too few arguments to function ‘zend_parse_parameters’ 555 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:558:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 558 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:561:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 561 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:564:88: error: expected ‘)’ before ‘TSRMLS_CC’ 564 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onMessage’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:583:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 583 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:584:51: error: expected ‘)’ before ‘TSRMLS_CC’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:584:13: error: too few arguments to function ‘zend_parse_parameters’ 584 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:587:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 587 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:590:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 590 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:593:88: error: expected ‘)’ before ‘TSRMLS_CC’ 593 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_onPublish’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:612:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 612 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:613:51: error: expected ‘)’ before ‘TSRMLS_CC’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:613:13: error: too few arguments to function ‘zend_parse_parameters’ 613 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "f!", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:616:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 616 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:619:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 619 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:622:88: error: expected ‘)’ before ‘TSRMLS_CC’ 622 | zend_throw_exception(mosquitto_ce_exception, "Need a valid callback", 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_getSocket’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:639:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 639 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:641:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 641 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:644:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 644 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setMaxInFlightMessages’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:657:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 657 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:658:51: error: expected ‘)’ before ‘TSRMLS_CC’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:658:13: error: too few arguments to function ‘zend_parse_parameters’ 658 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:659:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 659 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:662:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 662 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:666:50: error: expected ‘)’ before ‘TSRMLS_CC’ 666 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_setMessageRetry’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:676:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 676 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:677:51: error: expected ‘)’ before ‘TSRMLS_CC’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:677:13: error: too few arguments to function ‘zend_parse_parameters’ 677 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &retry) == FAILURE) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:678:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 678 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:681:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 681 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_publish’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:697:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 697 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:698:51: error: expected ‘)’ before ‘TSRMLS_CC’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:698:13: error: too few arguments to function ‘zend_parse_parameters’ 698 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lb", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:700:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 700 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:703:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 703 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:707:50: error: expected ‘)’ before ‘TSRMLS_CC’ 707 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_subscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:722:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 722 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:723:51: error: expected ‘)’ before ‘TSRMLS_CC’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:723:13: error: too few arguments to function ‘zend_parse_parameters’ 723 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:725:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 725 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:728:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 728 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:732:50: error: expected ‘)’ before ‘TSRMLS_CC’ 732 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_unsubscribe’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:746:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 746 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:747:51: error: expected ‘)’ before ‘TSRMLS_CC’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:747:13: error: too few arguments to function ‘zend_parse_parameters’ 747 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:749:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 749 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:752:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 752 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:756:50: error: expected ‘)’ before ‘TSRMLS_CC’ 756 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_loop’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:769:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 769 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:770:51: error: expected ‘)’ before ‘TSRMLS_CC’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:770:13: error: too few arguments to function ‘zend_parse_parameters’ 770 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:772:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 772 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:775:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 775 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:778:50: error: expected ‘)’ before ‘TSRMLS_CC’ 778 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_loopForever’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:789:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 789 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:790:51: error: expected ‘)’ before ‘TSRMLS_CC’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:790:13: error: too few arguments to function ‘zend_parse_parameters’ 790 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20210902/main/php.h:36, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20210902/Zend/zend_API.h:335:22: note: declared here 335 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:792:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 792 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:795:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 795 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:801:58: error: expected ‘)’ before ‘TSRMLS_CC’ 801 | php_mosquitto_handle_errno(retval, errno TSRMLS_CC); | ~ ^~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:12: /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zim_Mosquitto_Client_exitLoop’: /tmp/Mosquitto-PHP/php_mosquitto.h:129:113: error: expected ‘)’ before ‘TSRMLS_CC’ 129 | zend_replace_error_handling(EH_THROW, mosquitto_ce_exception, &MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:815:9: note: in expansion of macro ‘PHP_MOSQUITTO_ERROR_HANDLING’ 815 | PHP_MOSQUITTO_ERROR_HANDLING(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:817:17: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 817 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/php_mosquitto.h:132:79: error: expected ‘)’ before ‘TSRMLS_CC’ 132 | zend_restore_error_handling(&MQTTG(mosquitto_original_error_handling) TSRMLS_CC) | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:820:9: note: in expansion of macro ‘PHP_MOSQUITTO_RESTORE_ERRORS’ 820 | PHP_MOSQUITTO_RESTORE_ERRORS(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: At top level: /tmp/Mosquitto-PHP/mosquitto.c:851:78: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 851 | static void mosquitto_client_object_destroy(zend_object *object ZO_HANDLE_DC TSRMLS_DC) | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:871:62: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 871 | static void mosquitto_client_object_free(zend_object *object TSRMLS_DC) { | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:931:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’ 931 | void php_mosquitto_handle_errno(int retval, int err TSRMLS_DC) { | ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_connect_callback’: /tmp/Mosquitto-PHP/mosquitto.c:986:90: error: expected ‘)’ before ‘TSRMLS_CC’ 986 | if (zend_call_function(&object->connect_callback, &object->connect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:988:74: error: expected ‘)’ before ‘TSRMLS_CC’ 988 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:988:25: error: too few arguments to function ‘zend_throw_exception_ex’ 988 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", mosquitto_finfo_name(&object->connect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_disconnect_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1039:96: error: expected ‘)’ before ‘TSRMLS_CC’ 1039 | if (zend_call_function(&object->disconnect_callback, &object->disconnect_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1041:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1041 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1041:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1041 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", mosquitto_finfo_name(&object->disconnect_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_log_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1095:82: error: expected ‘)’ before ‘TSRMLS_CC’ 1095 | if (zend_call_function(&object->log_callback, &object->log_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1097:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1097 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1097:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1097 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", mosquitto_finfo_name(&object->log_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_message_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1159:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1159 | if (zend_call_function(&object->message_callback, &object->message_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1161:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1161 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1161:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1161 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", mosquitto_finfo_name(&object->message_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_publish_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1209:90: error: expected ‘)’ before ‘TSRMLS_CC’ 1209 | if (zend_call_function(&object->publish_callback, &object->publish_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1211:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1211 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1211:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1211 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", mosquitto_finfo_name(&object->publish_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_subscribe_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1270:94: error: expected ‘)’ before ‘TSRMLS_CC’ 1270 | if (zend_call_function(&object->subscribe_callback, &object->subscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1272:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1272 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1272:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1272 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", mosquitto_finfo_name(&object->subscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_unsubscribe_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1325:98: error: expected ‘)’ before ‘TSRMLS_CC’ 1325 | if (zend_call_function(&object->unsubscribe_callback, &object->unsubscribe_callback_cache TSRMLS_CC) == FAILURE) { | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1327:74: error: expected ‘)’ before ‘TSRMLS_CC’ 1327 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1327:25: error: too few arguments to function ‘zend_throw_exception_ex’ 1327 | zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", mosquitto_finfo_name(&object->unsubscribe_callback)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:61:33: note: declared here 61 | ZEND_API ZEND_COLD zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_pw_callback’: /tmp/Mosquitto-PHP/mosquitto.c:1344:9: warning: implicit declaration of function ‘TSRMLS_FETCH’; did you mean ‘TSRMLS_CACHE’? [-Wimplicit-function-declaration] 1344 | TSRMLS_FETCH(); | ^~~~~~~~~~~~ | TSRMLS_CACHE /tmp/Mosquitto-PHP/mosquitto.c: In function ‘zm_startup_mosquitto’: /tmp/Mosquitto-PHP/mosquitto.c:1430:51: error: ‘mosquitto_client_object_free’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1430 | mosquitto_std_object_handlers.free_obj = mosquitto_client_object_free; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/Mosquitto-PHP/mosquitto.c:1430:51: note: each undeclared identifier is reported only once for each function it appears in /tmp/Mosquitto-PHP/mosquitto.c:1431:51: error: ‘mosquitto_client_object_destroy’ undeclared (first use in this function); did you mean ‘mosquitto_client_object_new’? 1431 | mosquitto_std_object_handlers.dtor_obj = mosquitto_client_object_destroy; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mosquitto_client_object_new /tmp/Mosquitto-PHP/mosquitto.c:1435:70: error: expected ‘)’ before ‘TSRMLS_CC’ 1435 | mosquitto_ce_client = zend_register_internal_class(&client_ce TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1439:108: error: ‘TSRMLS_C’ undeclared (first use in this function); did you mean ‘TSRM_H’? 1439 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~ | TSRM_H /tmp/Mosquitto-PHP/mosquitto.c:1439:81: error: too many arguments to function ‘zend_exception_get_default’ 1439 | mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce, zend_exception_get_default(TSRMLS_C) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/Mosquitto-PHP/mosquitto.c:8: /usr/include/php/20210902/Zend/zend_exceptions.h:51:28: note: declared here 51 | ZEND_API zend_class_entry *zend_exception_get_default(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1449:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1449 | REGISTER_MOSQUITTO_LONG_CONST("LOG_INFO", MOSQ_LOG_INFO); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1450:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1450 | REGISTER_MOSQUITTO_LONG_CONST("LOG_NOTICE", MOSQ_LOG_NOTICE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1451:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1451 | REGISTER_MOSQUITTO_LONG_CONST("LOG_WARNING", MOSQ_LOG_WARNING); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1452:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1452 | REGISTER_MOSQUITTO_LONG_CONST("LOG_ERR", MOSQ_LOG_ERR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1446:109: error: expected ‘)’ before ‘TSRMLS_CC’ 1446 | zend_declare_class_constant_long(mosquitto_ce_client, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \ | ~ ^~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1453:9: note: in expansion of macro ‘REGISTER_MOSQUITTO_LONG_CONST’ 1453 | REGISTER_MOSQUITTO_LONG_CONST("LOG_DEBUG", MOSQ_LOG_DEBUG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/Mosquitto-PHP/mosquitto.c:1455:112: error: expected ‘)’ before ‘TSRMLS_CC’ 1455 | zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_NONE", sizeof("SSL_VERIFY_NONE")-1, 0 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c:1456:112: error: expected ‘)’ before ‘TSRMLS_CC’ 1456 | zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_PEER", sizeof("SSL_VERIFY_PEER")-1, 1 TSRMLS_CC); | ~ ^~~~~~~~~~ | ) /tmp/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_strerror_wrapper’: /tmp/Mosquitto-PHP/mosquitto.c:838:9: warning: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 838 | strerror_r(err, buf, 256); | ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:208: mosquitto.lo] Error 1 ERROR mosquitto.so file missing !