[2024-04-06 02:52:43][INFO] : ##### Synchronisation du temps avant l'installation des dépendances... [2024-04-06 02:52:50][INFO] : ##### Synchronisation du temps terminée, lancement des dépendances. ####################################################### # INSTALL : Client MQTT # ####################################################### ####################################################### ##### apt-get update in progress Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://security.debian.org bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://deb.debian.org/debian bookworm-backports InRelease Hit:5 https://download.docker.com/linux/debian bookworm InRelease Hit:6 https://packages.sury.org/php bookworm InRelease Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease Hit:8 http://mirror.vinehost.net/armbian/apt bookworm InRelease Reading package lists... ####################################################### ##### Install or update Git Reading package lists... Building dependency tree... Reading state information... git is already the newest version (1:2.39.2-1.1). make is already the newest version (4.3-4.1). g++ is already the newest version (4:12.2.0-3). gcc is already the newest version (4:12.2.0-3). 0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded. ####################################################### # INSTALLING : Mosquitto for Php # ####################################################### ####################################################### ##### Install client dependency Reading package lists... Building dependency tree... Reading state information... libmosquitto-dev is already the newest version (2.0.11-1.2+deb12u1). The following packages were automatically installed and are no longer required: php8.2 php8.2-curl php8.2-dev php8.2-gd php8.2-imap php8.2-ldap php8.2-mbstring php8.2-mysql php8.2-snmp php8.2-soap php8.2-zip Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libapache2-mod-php libapache2-mod-php8.3 php php-curl php-dev php-gd php-imap php-json php-ldap php-mbstring php-mysql php-snmp php-soap php-xml php-zip php8.3 php8.3-cli php8.3-common php8.3-curl php8.3-dev php8.3-gd php8.3-imap php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-readline php8.3-snmp php8.3-soap php8.3-xml php8.3-zip Suggested packages: dh-php Recommended packages: pkg-php-tools snmp The following NEW packages will be installed: libapache2-mod-php8.3 php8.3 php8.3-cli php8.3-common php8.3-curl php8.3-dev php8.3-gd php8.3-imap php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-readline php8.3-snmp php8.3-soap php8.3-xml php8.3-zip The following packages will be upgraded: libapache2-mod-php php php-curl php-dev php-gd php-imap php-json php-ldap php-mbstring php-mysql php-pear php-snmp php-soap php-xml php-zip 15 upgraded, 17 newly installed, 0 to remove and 24 not upgraded. Need to get 5378 kB of archives. After this operation, 24.1 MB of additional disk space will be used. Get:1 https://packages.sury.org/php bookworm/main armhf php8.3-common armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [649 kB] Get:2 https://packages.sury.org/php bookworm/main armhf php8.3-opcache armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [60.4 kB] Get:3 https://packages.sury.org/php bookworm/main armhf php8.3-readline armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [10.9 kB] Get:4 https://packages.sury.org/php bookworm/main armhf php8.3-cli armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [1478 kB] Get:5 https://packages.sury.org/php bookworm/main armhf libapache2-mod-php8.3 armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [1425 kB] Get:6 https://packages.sury.org/php bookworm/main armhf libapache2-mod-php all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [4068 B] Get:7 https://packages.sury.org/php bookworm/main armhf php8.3 all 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [25.7 kB] Get:8 https://packages.sury.org/php bookworm/main armhf php all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3836 B] Get:9 https://packages.sury.org/php bookworm/main armhf php8.3-curl armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [32.6 kB] Get:10 https://packages.sury.org/php bookworm/main armhf php-curl all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3868 B] Get:11 https://packages.sury.org/php bookworm/main armhf php8.3-dev armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [520 kB] Get:12 https://packages.sury.org/php bookworm/main armhf php-dev all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [4252 B] Get:13 https://packages.sury.org/php bookworm/main armhf php8.3-gd armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [24.3 kB] Get:14 https://packages.sury.org/php bookworm/main armhf php-gd all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3856 B] Get:15 https://packages.sury.org/php bookworm/main armhf php8.3-imap armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [27.8 kB] Get:16 https://packages.sury.org/php bookworm/main armhf php-imap all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3868 B] Get:17 https://packages.sury.org/php bookworm/main armhf php-json all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3868 B] Get:18 https://packages.sury.org/php bookworm/main armhf php8.3-ldap armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [26.6 kB] Get:19 https://packages.sury.org/php bookworm/main armhf php-ldap all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3864 B] Get:20 https://packages.sury.org/php bookworm/main armhf php8.3-mbstring armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [415 kB] Get:21 https://packages.sury.org/php bookworm/main armhf php-mbstring all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3872 B] Get:22 https://packages.sury.org/php bookworm/main armhf php8.3-mysql armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [94.9 kB] Get:23 https://packages.sury.org/php bookworm/main armhf php-mysql all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3860 B] Get:24 https://packages.sury.org/php bookworm/main armhf php8.3-xml armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [95.7 kB] Get:25 https://packages.sury.org/php bookworm/main armhf php-xml all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3884 B] Get:26 https://packages.sury.org/php bookworm/main armhf php-pear all 1:1.10.13+submodules+notgz+2022032202-2+0~20230612.39+debian12~1.gbpfd4c1d [289 kB] Get:27 https://packages.sury.org/php bookworm/main armhf php8.3-snmp armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [18.2 kB] Get:28 https://packages.sury.org/php bookworm/main armhf php-snmp all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3864 B] Get:29 https://packages.sury.org/php bookworm/main armhf php8.3-soap armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [107 kB] Get:30 https://packages.sury.org/php bookworm/main armhf php-soap all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3868 B] Get:31 https://packages.sury.org/php bookworm/main armhf php8.3-zip armhf 8.3.4-1+0~20240329.26+debian12~1.gbpa5171b [24.5 kB] Get:32 https://packages.sury.org/php bookworm/main armhf php-zip all 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e [3860 B] perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 5378 kB in 1s (5030 kB/s) Selecting previously unselected package php8.3-common. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 57504 files and directories currently installed.) Preparing to unpack .../00-php8.3-common_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-common (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Selecting previously unselected package php8.3-opcache. Preparing to unpack .../01-php8.3-opcache_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-opcache (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Selecting previously unselected package php8.3-readline. Preparing to unpack .../02-php8.3-readline_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-readline (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Selecting previously unselected package php8.3-cli. Preparing to unpack .../03-php8.3-cli_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-cli (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Selecting previously unselected package libapache2-mod-php8.3. Preparing to unpack .../04-libapache2-mod-php8.3_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking libapache2-mod-php8.3 (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../05-libapache2-mod-php_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking libapache2-mod-php (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3. Preparing to unpack .../06-php8.3_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_all.deb ... Unpacking php8.3 (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../07-php_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-curl. Preparing to unpack .../08-php8.3-curl_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-curl (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../09-php-curl_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-curl (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-dev. Preparing to unpack .../10-php8.3-dev_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-dev (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../11-php-dev_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-dev (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-gd. Preparing to unpack .../12-php8.3-gd_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-gd (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../13-php-gd_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-gd (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-imap. Preparing to unpack .../14-php8.3-imap_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-imap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../15-php-imap_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-imap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Preparing to unpack .../16-php-json_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-json (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-ldap. Preparing to unpack .../17-php8.3-ldap_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-ldap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../18-php-ldap_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-ldap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-mbstring. Preparing to unpack .../19-php8.3-mbstring_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-mbstring (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../20-php-mbstring_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-mbstring (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-mysql. Preparing to unpack .../21-php8.3-mysql_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-mysql (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../22-php-mysql_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-mysql (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-xml. Preparing to unpack .../23-php8.3-xml_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-xml (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../24-php-xml_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-xml (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Preparing to unpack .../25-php-pear_1%3a1.10.13+submodules+notgz+2022032202-2+0~20230612.39+debian12~1.gbpfd4c1d_all.deb ... Unpacking php-pear (1:1.10.13+submodules+notgz+2022032202-2+0~20230612.39+debian12~1.gbpfd4c1d) over (1:1.10.13+submodules+notgz+2022032202-2) ... Selecting previously unselected package php8.3-snmp. Preparing to unpack .../26-php8.3-snmp_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-snmp (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../27-php-snmp_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-snmp (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-soap. Preparing to unpack .../28-php8.3-soap_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-soap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../29-php-soap_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-soap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Selecting previously unselected package php8.3-zip. Preparing to unpack .../30-php8.3-zip_8.3.4-1+0~20240329.26+debian12~1.gbpa5171b_armhf.deb ... Unpacking php8.3-zip (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Preparing to unpack .../31-php-zip_2%3a8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb ... Unpacking php-zip (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) over (2:8.2+93) ... Setting up php-pear (1:1.10.13+submodules+notgz+2022032202-2+0~20230612.39+debian12~1.gbpfd4c1d) ... Setting up php8.3-common (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/calendar.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/ctype.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/exif.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/fileinfo.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/ffi.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/ftp.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/gettext.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/iconv.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/pdo.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/phar.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/posix.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/shmop.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/sockets.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/sysvmsg.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/sysvsem.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/sysvshm.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/tokenizer.ini with new version Setting up php8.3-zip (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/zip.ini with new version Setting up php8.3-mysql (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/mysqlnd.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/mysqli.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/pdo_mysql.ini with new version Setting up php8.3-mbstring (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/mbstring.ini with new version Setting up php8.3-readline (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/readline.ini with new version Setting up php8.3-soap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/soap.ini with new version Setting up php8.3-ldap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/ldap.ini with new version Setting up php-zip (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php8.3-xml (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/dom.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/simplexml.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/xml.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/xmlreader.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/xmlwriter.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/xsl.ini with new version Setting up php8.3-opcache (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/opcache.ini with new version Setting up php8.3-snmp (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/snmp.ini with new version Setting up php8.3-gd (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/gd.ini with new version Setting up php-xml (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-mysql (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php8.3-curl (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/curl.ini with new version Setting up php8.3-imap (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/mods-available/imap.ini with new version Setting up php-soap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php8.3-cli (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... update-alternatives: using /usr/bin/phar8.3 to provide /usr/bin/phar (phar) in auto mode update-alternatives: using /usr/bin/phar.phar8.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/cli/php.ini with new version Setting up php-mbstring (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-ldap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-imap (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-snmp (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php8.3-dev (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Setting up libapache2-mod-php8.3 (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/8.3/apache2/php.ini with new version libapache2-mod-php8.3: php8.2 module already enabled, not enabling PHP 8.3 Setting up php-gd (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-curl (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-json (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php-dev (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php8.3 (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Setting up libapache2-mod-php (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Setting up php (2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for php8.3-cli (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Processing triggers for libapache2-mod-php8.3 (8.3.4-1+0~20240329.26+debian12~1.gbpa5171b) ... Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: php8.2 php8.2-curl php8.2-dev php8.2-gd php8.2-imap php8.2-ldap php8.2-mbstring php8.2-mysql php8.2-snmp php8.2-soap php8.2-zip Use 'sudo apt autoremove' to remove them. Suggested packages: dh-php Recommended packages: pkg-php-tools The following NEW packages will be installed: php7.4-dev php7.4-xml 0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded. Need to get 509 kB of archives. After this operation, 5096 kB of additional disk space will be used. Get:1 https://packages.sury.org/php bookworm/main armhf php7.4-dev armhf 1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414 [428 kB] Get:2 https://packages.sury.org/php bookworm/main armhf php7.4-xml armhf 1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414 [80.9 kB] perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 509 kB in 0s (1413 kB/s) Selecting previously unselected package php7.4-dev. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58099 files and directories currently installed.) Preparing to unpack .../php7.4-dev_1%3a7.4.33-8+0~20230904.88+debian12~1.gbp87c414_armhf.deb ... Unpacking php7.4-dev (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... Selecting previously unselected package php7.4-xml. Preparing to unpack .../php7.4-xml_1%3a7.4.33-8+0~20230904.88+debian12~1.gbp87c414_armhf.deb ... Unpacking php7.4-xml (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... Setting up php7.4-xml (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/dom.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/simplexml.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/xml.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/xmlreader.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/xmlwriter.ini with new version debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Creating config file /etc/php/7.4/mods-available/xsl.ini with new version Setting up php7.4-dev (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for libapache2-mod-php7.4 (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... Processing triggers for php7.4-cli (1:7.4.33-8+0~20230904.88+debian12~1.gbp87c414) ... ####################################################### ##### Try installing client : First method WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update 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: 20230831 Zend Module Api No: 20230831 Zend Extension Api No: 420230831 configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:165: You should run autoupdate. build/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:165: the top level perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Please provide the prefix of the libmosquitto installation [autodetect] : building in /tmp/pear/temp/pear-build-rootmlcETV/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... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking target system type... armv7l-unknown-linux-gnueabihf checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for PHP extension directory... /usr/lib/php/20230831 checking for PHP installed headers prefix... /usr/include/php/20230831 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 armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file 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-rootmlcETV/Mosquitto-0.4.0/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/Mosquitto -I/tmp/pear/temp/pear-build-rootmlcETV/Mosquitto-0.4.0/include -I/tmp/pear/temp/pear-build-rootmlcETV/Mosquitto-0.4.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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-rootmlcETV/Mosquitto-0.4.0/include -I/tmp/pear/temp/pear-build-rootmlcETV/Mosquitto-0.4.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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; | ^~~~~~~~~~~~~~~~~~~~~ /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) { | ^~~~~~~~~ /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/20230831/main/php.h:35, from /tmp/pear/temp/Mosquitto/mosquitto.c:5: /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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)) | ~ ^~~~~~~~~~ | ) /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/20230831/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/20230831/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/20230831/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); | ^~~~~~~~ /usr/include/php/20230831/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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:210: 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.9). The following packages were automatically installed and are no longer required: php8.2 php8.2-curl php8.2-dev php8.2-gd php8.2-imap php8.2-ldap php8.2-mbstring php8.2-mysql php8.2-snmp php8.2-soap php8.2-zip Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded. Cloning into 'Mosquitto-PHP'... Configuring for: PHP Api Version: 20230831 Zend Module Api No: 20230831 Zend Extension Api No: 420230831 configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:165: You should run autoupdate. build/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:165: the top level perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 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... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking target system type... armv7l-unknown-linux-gnueabihf checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for PHP extension directory... /usr/lib/php/20230831 checking for PHP installed headers prefix... /usr/include/php/20230831 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 armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file 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 --tag=CC --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/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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; | ^~~~~~~~~~~~~~~~~~~~~ /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) { | ^~~~~~~~~ /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/20230831/main/php.h:35, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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)) | ~ ^~~~~~~~~~ | ) /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/20230831/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/20230831/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/20230831/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); | ^~~~~~~~ /usr/include/php/20230831/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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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); | ~ ^~~~~~~~~~ | ) make: *** [Makefile:210: mosquitto.lo] Error 1 /bin/bash /tmp/Mosquitto-PHP/libtool --tag=CC --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/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -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; | ^~~~~~~~~~~~~~~~~~~~~ /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) { | ^~~~~~~~~ /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/20230831/main/php.h:35, from /tmp/Mosquitto-PHP/mosquitto.c:5: /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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)) | ~ ^~~~~~~~~~ | ) /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/20230831/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/20230831/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/20230831/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); | ^~~~~~~~ /usr/include/php/20230831/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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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); | ~ ^~~~~~~~~ /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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!", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~~ | ) /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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) { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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", | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/Zend/zend_API.h:358:22: note: declared here 358 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...); | ^~~~~~~~~~~~~~~~~~~~~ /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); | ~ ^~~~~~~~~ /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/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/php/20230831/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); | ~ ^~~~~~~~~~ | ) make: *** [Makefile:210: mosquitto.lo] Error 1 ERROR mosquitto.so file missing !