Mosquitto-PHP
Mosquitto-PHP copied to clipboard
Error installing - pecl install Mosquitto-alpha
Hi,
I followed the instructions on an Ubuntu 16.04.1 LTS Linod with PHP 7.0.8-0ubuntu0.16.04.2. Before running the "pecl" command I did this:
sudo apt-get install python-software-properties sudo apt-get install software-properties-common sudo apt-get install php7.0-dev sudo apt-get install mosquitto sudo apt install mosquitto-clients sudo apt-get install libmosquitto-dev
When I now run pecl install Mosquitto-alpha, the installation breaks with the following log. Could you help me decipher it?
downloading Mosquitto-0.3.0.tgz ...
Starting to download Mosquitto-0.3.0.tgz (25,395 bytes)
.........done: 25,395 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Please provide the prefix of the libmosquitto installation [autodetect] :
building in /tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.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... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... gawk
checking for mosquitto support... yes, shared
checking for mosquitto files in default path... checking /usr/local... found in /usr/local
checking /usr... found in /usr
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char _... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /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 x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /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 -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Mosquitto -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.0/include -I/tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/Mosquitto/mosquitto.c -o mosquitto.lo
libtool: compile: cc -I. -I/tmp/pear/temp/Mosquitto -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.0/include -I/tmp/pear/temp/pear-build-rootYRXIyR/Mosquitto-0.3.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/Mosquitto/mosquitto.c -fPIC -DPIC -o .libs/mosquitto.o
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client___construct’:
/tmp/pear/temp/Mosquitto/mosquitto.c:114:39: warning: implicit declaration of function ‘zend_object_store_get_object’ [-Wimplicit-function-declaration]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:114:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsCertificates’:
/tmp/pear/temp/Mosquitto/mosquitto.c:159:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:162:11: warning: implicit declaration of function ‘Z_BVAL’ [-Wimplicit-function-declaration]
is_dir = Z_BVAL(stat);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsInsecure’:
/tmp/pear/temp/Mosquitto/mosquitto.c:195:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsOptions’:
/tmp/pear/temp/Mosquitto/mosquitto.c:222:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsPSK’:
/tmp/pear/temp/Mosquitto/mosquitto.c:247:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onConnect’:
/tmp/pear/temp/Mosquitto/mosquitto.c:421:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(connect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:423:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (connect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:424:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(connect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onDisconnect’:
/tmp/pear/temp/Mosquitto/mosquitto.c:455:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(disconnect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:457:25: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (disconnect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:458:33: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(disconnect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onLog’:
/tmp/pear/temp/Mosquitto/mosquitto.c:489:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(log_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:491:18: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (log_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:492:26: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(log_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onSubscribe’:
/tmp/pear/temp/Mosquitto/mosquitto.c:523:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(subscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:525:24: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (subscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:526:32: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(subscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onUnsubscribe’:
/tmp/pear/temp/Mosquitto/mosquitto.c:557:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(unsubscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:559:26: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (unsubscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:560:34: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(unsubscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onMessage’:
/tmp/pear/temp/Mosquitto/mosquitto.c:591:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(message_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:593:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (message_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:594:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(message_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onPublish’:
/tmp/pear/temp/Mosquitto/mosquitto.c:625:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(publish_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:627:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (publish_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:628:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(publish_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_get’:
/tmp/pear/temp/Mosquitto/mosquitto.c:862:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
mosquitto_client_object _pobj = zend_object_store_get_object(zobj TSRMLS_CC);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_destroy’:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:884:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:884:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:885:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:885:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:886:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:886:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:887:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:887:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:888:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:888:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:889:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:889:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:890:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:890:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: At top level:
/tmp/pear/temp/Mosquitto/mosquitto.c:900:8: error: unknown type name ‘zend_object_value’
static zend_object_value mosquitto_client_object_new(zend_class_entry *ce TSRMLS_DC) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_new’:
/tmp/pear/temp/Mosquitto/mosquitto.c:902:2: error: unknown type name ‘zend_object_value’
zend_object_value retval;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:8: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:56: error: ‘zend_objects_free_object_storage_t’ undeclared (first use in this function)
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:56: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/Mosquitto/mosquitto.c:923:92: error: expected ‘)’ before ‘mosquitto_client_object_destroy’
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:41: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object * {aka struct _zend_object *}’ but argument is of type ‘mosquitto_client_object * {aka struct mosquitto_client_object *}’
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:18: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:924:8: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &mosquitto_std_object_handlers;
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_connect_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:961:2: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration]
MAKE_STD_ZVAL(rc_zval);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:967:56: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:967:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:970:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->connect_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:972:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->connect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:976:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", Z_STRVAL_P(object->connect_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:980:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:981:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:984:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_disconnect_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1005:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->disconnect_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1007:29: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->disconnect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1011:110: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", Z_STRVAL_P(object->disconnect_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1015:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1018:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_log_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1039:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1039:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1044:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->log_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1046:22: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->log_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1050:103: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", Z_STRVAL_P(object->log_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1054:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1055:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1058:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_message_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1078:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
message_object = (mosquitto_message_object *) zend_object_store_get_object(message_zval TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1082:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->message_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1084:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->message_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1088:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", Z_STRVAL_P(object->message_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1092:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1095:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_publish_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1118:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->publish_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1120:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->publish_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1124:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", Z_STRVAL_P(object->publish_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1128:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1131:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_subscribe_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1161:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->subscribe_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1163:28: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->subscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1167:109: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", Z_STRVAL_P(object->subscribe_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1171:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1172:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1173:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[2]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1176:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_unsubscribe_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1198:38: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->unsubscribe_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1200:30: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->unsubscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1204:111: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", Z_STRVAL_P(object->unsubscribe_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1208:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1211:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zm_startup_mosquitto’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1302:24: error: too many arguments to function ‘zend_register_internal_class_ex’
mosquitto_ce_client = zend_register_internal_class_ex(&client_ce, NULL, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1303:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
mosquitto_ce_client->create_object = mosquitto_client_object_new;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1306:27: error: too many arguments to function ‘zend_register_internal_class_ex’
mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce,
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
Makefile:194: recipe for target 'mosquitto.lo' failed
make: ** [mosquitto.lo] Error 1
ERROR: `make' failed
Hi jsemrau, I have the same pecl install Mosquitto-alpha problem on Ubuntu 16.04. I have no idea how to rectify this. Did you manage to figure this out?
After typing make I get the following:
/bin/bash /tmp/Mosquitto-0.3.0/libtool --mode=compile cc -I. -I/tmp/Mosquitto-0.3.0 -DPHP_ATOM_INC -I/tmp/Mosquitto-0.3.0/include -I/tmp/Mosquitto-0.3.0/main -I/tmp/Mosquitto-0.3.0 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-0.3.0/mosquitto.c -o mosquitto.lo
libtool: compile: cc -I. -I/tmp/Mosquitto-0.3.0 -DPHP_ATOM_INC -I/tmp/Mosquitto-0.3.0/include -I/tmp/Mosquitto-0.3.0/main -I/tmp/Mosquitto-0.3.0 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-0.3.0/mosquitto.c -fPIC -DPIC -o .libs/mosquitto.o
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client___construct':
/tmp/Mosquitto-0.3.0/mosquitto.c:114:39: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration]
object = (mosquitto_client_object _) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:114:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_setTlsCertificates':
/tmp/Mosquitto-0.3.0/mosquitto.c:159:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:162:11: warning: implicit declaration of function 'Z_BVAL' [-Wimplicit-function-declaration]
is_dir = Z_BVAL(stat);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_setTlsInsecure':
/tmp/Mosquitto-0.3.0/mosquitto.c:195:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_setTlsOptions':
/tmp/Mosquitto-0.3.0/mosquitto.c:222:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_setTlsPSK':
/tmp/Mosquitto-0.3.0/mosquitto.c:247:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onConnect':
/tmp/Mosquitto-0.3.0/mosquitto.c:421:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(connect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:423:22: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (connect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:424:30: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(connect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onDisconnect':
/tmp/Mosquitto-0.3.0/mosquitto.c:455:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(disconnect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:457:25: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (disconnect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:458:33: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(disconnect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onLog':
/tmp/Mosquitto-0.3.0/mosquitto.c:489:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(log_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:491:18: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (log_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:492:26: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(log_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onSubscribe':
/tmp/Mosquitto-0.3.0/mosquitto.c:523:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(subscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:525:24: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (subscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:526:32: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(subscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onUnsubscribe':
/tmp/Mosquitto-0.3.0/mosquitto.c:557:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(unsubscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:559:26: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (unsubscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:560:34: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(unsubscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onMessage':
/tmp/Mosquitto-0.3.0/mosquitto.c:591:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(message_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:593:22: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (message_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:594:30: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(message_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zim_Mosquitto_Client_onPublish':
/tmp/Mosquitto-0.3.0/mosquitto.c:625:13: error: incompatible type for argument 1 of 'zval_addref_p'
Z_ADDREF_P(publish_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected 'zval * {aka struct _zval_struct _}' but argument is of type 'zval {aka struct zval_struct}'
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:627:22: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (publish_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/mosquitto.c:628:30: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
Z_ADDREF_P(publish_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro 'Z_ADDREF_P'
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'mosquitto_client_object_get':
/tmp/Mosquitto-0.3.0/mosquitto.c:862:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
mosquitto_client_object _pobj = zend_object_store_get_object(zobj TSRMLS_CC);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'mosquitto_client_object_destroy':
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:884:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:884:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:885:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:885:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:886:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:886:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:887:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:887:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:888:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:888:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:889:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:889:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /tmp/Mosquitto-0.3.0/mosquitto.c:12:0:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:98:35: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c:890:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/tmp/Mosquitto-0.3.0/php_mosquitto.h:99:47: error: 'zend_fcall_info {aka struct _zend_fcall_info}' has no member named 'object_ptr'
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro 'zval_ptr_dtor'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:890:2: note: in expansion of macro 'PHP_MOSQUITTO_FREE_CALLBACK'
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: At top level:
/tmp/Mosquitto-0.3.0/mosquitto.c:900:8: error: unknown type name 'zend_object_value'
static zend_object_value mosquitto_client_object_new(zend_class_entry *ce TSRMLS_DC) {
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'mosquitto_client_object_new':
/tmp/Mosquitto-0.3.0/mosquitto.c:902:2: error: unknown type name 'zend_object_value'
zend_object_value retval;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:923:8: error: request for member 'handle' in something not a structure or union
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:923:56: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function)
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:923:56: note: each undeclared identifier is reported only once for each function it appears in
/tmp/Mosquitto-0.3.0/mosquitto.c:923:92: error: expected ')' before 'mosquitto_client_object_destroy'
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:923:41: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected 'zend_object * {aka struct _zend_object *}' but argument is of type 'mosquitto_client_object * {aka struct mosquitto_client_object *}'
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:923:18: error: too many arguments to function 'zend_objects_store_put'
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:924:8: error: request for member 'handlers' in something not a structure or union
retval.handlers = &mosquitto_std_object_handlers;
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_connect_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:961:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration]
MAKE_STD_ZVAL(rc_zval);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:967:56: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:967:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:970:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->connect_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:972:26: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->connect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:976:107: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", Z_STRVAL_P(object->connect_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:980:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:981:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:984:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_disconnect_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1005:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->disconnect_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1007:29: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->disconnect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1011:110: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", Z_STRVAL_P(object->disconnect_callback.function_name)
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1015:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1018:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_log_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1039:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1039:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1044:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->log_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1046:22: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->log_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1050:103: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", Z_STRVAL_P(object->log_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1054:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1055:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1058:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_message_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1078:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
message_object = (mosquitto_message_object *) zend_object_store_get_object(message_zval TSRMLS_CC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1082:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->message_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1084:26: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->message_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1088:107: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", Z_STRVAL_P(object->message_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1092:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1095:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_publish_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1118:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->publish_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1120:26: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->publish_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1124:107: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", Z_STRVAL_P(object->publish_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1128:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1131:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_subscribe_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1161:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->subscribe_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1163:28: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->subscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1167:109: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", Z_STRVAL_P(object->subscribe_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1171:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1172:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1173:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[2]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1176:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'php_mosquitto_unsubscribe_callback':
/tmp/Mosquitto-0.3.0/mosquitto.c:1198:38: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->unsubscribe_callback.params = params;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1200:30: error: 'zend_fcall_info {aka struct zend_fcall_info}' has no member named 'retval_ptr_ptr'
object->unsubscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary '' (have 'zval {aka struct zval_struct}')
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro 'ZSTR_VAL'
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro 'Z_STR'
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro 'Z_STRVAL'
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1204:111: note: in expansion of macro 'Z_STRVAL_P'
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", Z_STRVAL_P(object->unsubscribe_callback.function_nam
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1208:2: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct _zval_struct }' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1211:3: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'zval * {aka struct zval_struct *}' but argument is of type 'zval * {aka struct zval_struct *}'
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/Mosquitto-0.3.0/mosquitto.c: In function 'zm_startup_mosquitto':
/tmp/Mosquitto-0.3.0/mosquitto.c:1302:24: error: too many arguments to function 'zend_register_internal_class_ex'
mosquitto_ce_client = zend_register_internal_class_ex(&client_ce, NULL, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1303:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
mosquitto_ce_client->create_object = mosquitto_client_object_new;
^
/tmp/Mosquitto-0.3.0/mosquitto.c:1306:27: error: too many arguments to function 'zend_register_internal_class_ex'
mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce,
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/Mosquitto-0.3.0/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
Makefile:194: recipe for target 'mosquitto.lo' failed
make: ** [mosquitto.lo] Error 1
Same problem here on Ubuntu 16.04.1 with PHP 7.0.8-0ubuntu0.16.04.3 and Mosquitto version 1.4.10 - anyone found a solution yet?
_$sudo pecl install Mosquitto-alpha
downloading Mosquitto-0.3.0.tgz ...
Starting to download Mosquitto-0.3.0.tgz (25,395 bytes)
.........done: 25,395 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Please provide the prefix of the libmosquitto installation [autodetect] :
building in /tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.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... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for mosquitto support... yes, shared
checking for mosquitto files in default path... checking /usr... found in /usr
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char _... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /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 x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /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 -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Mosquitto -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.0/include -I/tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/Mosquitto/mosquitto.c -o mosquitto.lo
libtool: compile: cc -I. -I/tmp/pear/temp/Mosquitto -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.0/include -I/tmp/pear/temp/pear-build-rooti8OuCn/Mosquitto-0.3.0/main -I/tmp/pear/temp/Mosquitto -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/Mosquitto/mosquitto.c -fPIC -DPIC -o .libs/mosquitto.o
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client___construct’:
/tmp/pear/temp/Mosquitto/mosquitto.c:114:39: warning: implicit declaration of function ‘zend_object_store_get_object’ [-Wimplicit-function-declaration]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:114:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsCertificates’:
/tmp/pear/temp/Mosquitto/mosquitto.c:159:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:162:11: warning: implicit declaration of function ‘Z_BVAL’ [-Wimplicit-function-declaration]
is_dir = Z_BVAL(stat);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsInsecure’:
/tmp/pear/temp/Mosquitto/mosquitto.c:195:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsOptions’:
/tmp/pear/temp/Mosquitto/mosquitto.c:222:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_setTlsPSK’:
/tmp/pear/temp/Mosquitto/mosquitto.c:247:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
object = (mosquitto_client_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onConnect’:
/tmp/pear/temp/Mosquitto/mosquitto.c:421:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(connect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:423:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (connect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:424:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(connect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onDisconnect’:
/tmp/pear/temp/Mosquitto/mosquitto.c:455:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(disconnect_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:457:25: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (disconnect_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:458:33: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(disconnect_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onLog’:
/tmp/pear/temp/Mosquitto/mosquitto.c:489:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(log_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:491:18: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (log_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:492:26: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(log_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onSubscribe’:
/tmp/pear/temp/Mosquitto/mosquitto.c:523:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(subscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:525:24: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (subscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:526:32: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(subscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onUnsubscribe’:
/tmp/pear/temp/Mosquitto/mosquitto.c:557:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(unsubscribe_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:559:26: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (unsubscribe_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:560:34: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(unsubscribe_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onMessage’:
/tmp/pear/temp/Mosquitto/mosquitto.c:591:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(message_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:593:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (message_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:594:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(message_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zim_Mosquitto_Client_onPublish’:
/tmp/pear/temp/Mosquitto/mosquitto.c:625:13: error: incompatible type for argument 1 of ‘zval_addref_p’
Z_ADDREF_P(publish_callback.function_name);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/usr/include/php/20151012/Zend/zend_types.h:820:36: note: expected ‘zval * {aka struct _zval_struct _}’ but argument is of type ‘zval {aka struct zval_struct}’
static zend_always_inline uint32_t zval_addref_p(zval pz) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:627:22: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (publish_callback.object_ptr != NULL) {
^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/mosquitto.c:628:30: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
Z_ADDREF_P(publish_callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_types.h:787:41: note: in definition of macro ‘Z_ADDREF_P’
#define Z_ADDREF_P(pz) zval_addref_p(pz)
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_get’:
/tmp/pear/temp/Mosquitto/mosquitto.c:862:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
mosquitto_client_object _pobj = zend_object_store_get_object(zobj TSRMLS_CC);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_destroy’:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:884:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:884:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(connect);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:885:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:885:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(subscribe);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:886:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:886:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(unsubscribe);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:887:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:887:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(publish);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:888:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:888:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(message);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:889:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:889:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(disconnect);
^
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:0:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:98:35: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
if (client->CALLBACK ## _callback.object_ptr != NULL) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c:890:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:99:47: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘object_ptr’
zval_ptr_dtor(&client->CALLBACK ## _callback.object_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:49: note: in definition of macro ‘zval_ptr_dtor’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:890:2: note: in expansion of macro ‘PHP_MOSQUITTO_FREE_CALLBACK’
PHP_MOSQUITTO_FREE_CALLBACK(log);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: At top level:
/tmp/pear/temp/Mosquitto/mosquitto.c:900:8: error: unknown type name ‘zend_object_value’
static zend_object_value mosquitto_client_object_new(zend_class_entry *ce TSRMLS_DC) {
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘mosquitto_client_object_new’:
/tmp/pear/temp/Mosquitto/mosquitto.c:902:2: error: unknown type name ‘zend_object_value’
zend_object_value retval;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:8: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:56: error: ‘zend_objects_free_object_storage_t’ undeclared (first use in this function)
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:56: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/Mosquitto/mosquitto.c:923:92: error: expected ‘)’ before ‘mosquitto_client_object_destroy’
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:41: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object * {aka struct _zend_object *}’ but argument is of type ‘mosquitto_client_object * {aka struct mosquitto_client_object *}’
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:923:18: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(client, NULL, (zend_objects_free_object_storage_t) mosquitto_client_object_destroy, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/Zend/zend_globals.h:35:0,
from /usr/include/php/20151012/Zend/zend_compile.h:657,
from /usr/include/php/20151012/Zend/zend_modules.h:26,
from /usr/include/php/20151012/Zend/zend_API.h:27,
from /usr/include/php/20151012/main/php.h:40,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object *object);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:924:8: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = &mosquitto_std_object_handlers;
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_connect_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:961:2: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration]
MAKE_STD_ZVAL(rc_zval);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:967:56: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:967:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(message_zval, message, strlen(message), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:970:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->connect_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:972:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->connect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:976:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke connect callback %s()", Z_STRVAL_P(object->connect_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:980:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:981:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:984:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_disconnect_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1005:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->disconnect_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1007:29: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->disconnect_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1011:110: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke disconnect callback %s()", Z_STRVAL_P(object->disconnect_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1015:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&rc_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1018:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_log_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1039:44: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1039:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
ZVAL_STRINGL(str_zval, str, strlen(str), 1);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1044:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->log_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1046:22: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->log_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1050:103: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke log callback %s()", Z_STRVAL_P(object->log_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1054:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1055:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1058:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_message_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1078:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
message_object = (mosquitto_message_object *) zend_object_store_get_object(message_zval TSRMLS_CC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1082:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->message_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1084:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->message_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1088:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke message callback %s()", Z_STRVAL_P(object->message_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1092:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&message_zval);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1095:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_publish_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1118:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->publish_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1120:26: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->publish_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1124:107: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke publish callback %s()", Z_STRVAL_P(object->publish_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1128:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1131:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_subscribe_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1161:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->subscribe_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1163:28: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->subscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1167:109: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke subscribe callback %s()", Z_STRVAL_P(object->subscribe_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1171:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1172:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[1]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1173:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[2]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1176:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘php_mosquitto_unsubscribe_callback’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1198:38: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
object->unsubscribe_callback.params = params;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1200:30: error: ‘zend_fcall_info {aka struct zend_fcall_info}’ has no member named ‘retval_ptr_ptr’
object->unsubscribe_callback.retval_ptr_ptr = &retval_ptr;
^
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_types.h:516:39: error: invalid type argument of unary ‘’ (have ‘zval {aka struct zval_struct}’)
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/usr/include/php/20151012/Zend/zend_string.h:40:26: note: in definition of macro ‘ZSTR_VAL’
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/include/php/20151012/Zend/zend_types.h:515:36: note: in expansion of macro ‘Z_STR’
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/include/php/20151012/Zend/zend_types.h:516:30: note: in expansion of macro ‘Z_STRVAL’
#define Z_STRVAL_P(zval_p) Z_STRVAL((zval_p))
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1204:111: note: in expansion of macro ‘Z_STRVAL_P’
zend_throw_exception_ex(mosquitto_ce_exception, 0 TSRMLS_CC, "Failed to invoke unsubscribe callback %s()", Z_STRVAL_P(object->unsubscribe_callback.function_name));
^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
from /usr/include/php/20151012/main/php.h:36,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1208:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(params[0]);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1211:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&retval_ptr);
^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval * {aka struct zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^
/tmp/pear/temp/Mosquitto/mosquitto.c: In function ‘zm_startup_mosquitto’:
/tmp/pear/temp/Mosquitto/mosquitto.c:1302:24: error: too many arguments to function ‘zend_register_internal_class_ex’
mosquitto_ce_client = zend_register_internal_class_ex(&client_ce, NULL, NULL TSRMLS_CC);
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1303:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
mosquitto_ce_client->create_object = mosquitto_client_object_new;
^
/tmp/pear/temp/Mosquitto/mosquitto.c:1306:27: error: too many arguments to function ‘zend_register_internal_class_ex’
mosquitto_ce_exception = zend_register_internal_class_ex(&exception_ce,
^
In file included from /usr/include/php/20151012/main/php.h:40:0,
from /tmp/pear/temp/Mosquitto/mosquitto.c:5:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
Makefile:194: recipe for target 'mosquitto.lo' failed
make: ** [mosquitto.lo] Error 1
ERROR: `make' failed
I have not found a solution yet.
same problem here 👎
Get the version from Git. The one on PECL hasn't been updated for PHP 7 yet - I still need to fix the auto-reconnect function.
Thanks! That seems to have worked.
Steps taken:
- git clone https://github.com/mgdm/Mosquitto-PHP.git
- cd Mosquitto-PHP/
- phpize
- ./configure --with-mosquitto=/path/to/libmosquitto
- make
- make test
- make install
- update php.ini to include the extension
I'm having the same issue with the ibm_db2 php/pecl extension. I'm using the latest version from PECL ibm_db2-2.0.2. ./configure --with-IBM_DB2=/home/db2inst1/sqllib runs fine. make produces the long list of mostly the pointer size errors.
any ideas for this extension? I'm using PHP 7.2.3 on Ubuntu 16.04
Same problem on Ubuntu 16.04 and php 7.2