allegro / php-protobuf

PHP Protobuf - Google's Protocol Buffers for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make: *** [protobuf.lo] Error 1

phpRajat opened this issue · comments

Server configuration:-
PHP 5.6.36 (cli) (built: Apr 25 2018 10:11:47)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Getting this issue while running make commend:-
/bin/sh /var/www/rd1_24_11/whatsapp/php-protobuf/libtool --mode=compile cc -I. -I/var/www/rd1_24_11/whatsapp/php-protobuf -DPHP_ATOM_INC -I/var/www/rd1_24_11/whatsapp/php-protobuf/include -I/var/www/rd1_24_11/whatsapp/php-protobuf/main -I/var/www/rd1_24_11/whatsapp/php-protobuf -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c -o protobuf.lo
libtool: compile: cc -I. -I/var/www/rd1_24_11/whatsapp/php-protobuf -DPHP_ATOM_INC -I/var/www/rd1_24_11/whatsapp/php-protobuf/include -I/var/www/rd1_24_11/whatsapp/php-protobuf/main -I/var/www/rd1_24_11/whatsapp/php-protobuf -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c -fPIC -DPIC -o .libs/protobuf.o
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:19:1: warning: "IS_BOOL" redefined
In file included from /usr/include/php/main/php.h:35,
from /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1:
/usr/include/php/Zend/zend.h:586:1: warning: this is the location of the previous definition
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:73: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:74: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:75: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:87: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage___construct’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:96: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_append’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: (Each undeclared identifier is reported only once
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: for each function it appears in.)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: expected ‘;’ before ‘field_number’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:104: error: ‘field_number’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_clear’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:127: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:127: error: expected ‘;’ before ‘field_number’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:130: error: ‘field_number’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_printDebugString’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:154: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:154: error: expected ‘;’ before ‘level’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:160: error: ‘level’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: error: too few arguments to function ‘zend_hash_get_current_key_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:179: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:179: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: error: too few arguments to function ‘zend_hash_get_current_key_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:199: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:199: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:206: error: too many arguments to function ‘pb_print_debug_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:213: error: too many arguments to function ‘pb_print_debug_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:221: error: too many arguments to function ‘pb_print_debug_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:226: error: too many arguments to function ‘pb_print_debug_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:231: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_dump’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:237: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:237: error: expected ‘;’ before ‘level’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:243: error: ‘level’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: error: too few arguments to function ‘zend_hash_get_current_key_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:260: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:260: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: error: too few arguments to function ‘zend_hash_get_current_key_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:274: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:274: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:278: error: too many arguments to function ‘pb_dump_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:287: error: too many arguments to function ‘pb_dump_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:298: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_count’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:303: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:303: error: expected ‘;’ before ‘field_number’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:306: error: ‘field_number’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_get’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:326: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:326: error: expected ‘;’ before ‘field_number’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:329: error: ‘field_number’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:339: warning: comparison between pointer and integer
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:345: warning: passing argument 2 of ‘zend_hash_index_find’ makes integer from pointer without a cast
/usr/include/php/Zend/zend_hash.h:166: note: expected ‘ulong’ but argument is of type ‘char * (
)(const char *, int)’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:345: error: too few arguments to function ‘zend_hash_index_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:373:66: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_parseFromString’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:373: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:375: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:376: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:380: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:381: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:396: error: too few arguments to function ‘zend_hash_index_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 1 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast
/usr/include/php/Zend/zend_execute.h:65: note: expected ‘const char *’ but argument is of type ‘int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 2 of ‘zend_lookup_class_ex’ makes integer from pointer without a cast
/usr/include/php/Zend/zend_execute.h:65: note: expected ‘int’ but argument is of type ‘void *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 3 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast
/usr/include/php/Zend/zend_execute.h:65: note: expected ‘const struct zend_literal *’ but argument is of type ‘int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: error: too few arguments to function ‘zend_lookup_class_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:450:91: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:452: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:453: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:457: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:458: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:460:93: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:461:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:464: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:464: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:465: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:469: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:470: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:472: error: ‘IS_TRUE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:472: error: ‘IS_FALSE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:473: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:489: warning: passing argument 4 of ‘pb_parse_field_value’ makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: note: expected ‘struct zval *’ but argument is of type ‘long int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:489: error: too many arguments to function ‘pb_parse_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:496: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:507: warning: passing argument 4 of ‘pb_parse_field_value’ makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: note: expected ‘struct zval *’ but argument is of type ‘long int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:507: error: too many arguments to function ‘pb_parse_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:521: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:525: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:528: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:529: error: ‘IS_BOOL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:532: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_serializeToString’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: error: too few arguments to function ‘zend_hash_get_current_key_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:555: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:555: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:561: error: too few arguments to function ‘zend_hash_index_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:570: warning: assignment makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:574: error: ‘IS_TRUE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:585: warning: passing argument 4 of ‘pb_serialize_packed_field’ makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:87: note: expected ‘struct zval *’ but argument is of type ‘long int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:585: error: too many arguments to function ‘pb_serialize_packed_field’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:589: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:589: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:599:32: error: macro "RETVAL_STRINGL" requires 3 arguments, but only 2 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:599: error: ‘RETVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:601: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:607: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_set’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:615: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:615: error: expected ‘;’ before ‘field_number’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:618: error: ‘field_number’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:630: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:634: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_assign_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:758: error: ‘IS_BOOL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:767: error: ‘IS_FALSE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:767: error: ‘IS_TRUE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:775: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:776: error: ‘ZEND_LONG_MAX’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:803: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:806: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:808: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:813: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_print_field_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:821: error: ‘IS_TRUE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:823: error: ‘IS_FALSE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:841: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_print_debug_field_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:852: error: ‘level’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:855:92: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:855: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:857: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:857: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:858: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:865: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:868: error: too many arguments to function ‘pb_print_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:871: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_dump_field_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:883: error: ‘IS_BOOL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:884: error: ‘level’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:889:64: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:889: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:891: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:891: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:892: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:899: error: too many arguments to function ‘pb_print_field_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptor’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:907: error: too few arguments to function ‘zend_hash_index_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_type’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:919: warning: assignment makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:931:70: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptors’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:931: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:932: warning: passing argument 2 of ‘call_user_function_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:455: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:932: warning: passing argument 4 of ‘call_user_function_ex’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:455: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:936: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_name’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:952: warning: assignment makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:958: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:962: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1035: error: too few arguments to function ‘zend_hash_index_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_values’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1047: warning: assignment makes pointer from integer without a cast
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1051: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_parse_field_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1058: error: ‘field_type’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1068: error: ‘zend_long’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1068: error: expected ‘;’ before ‘int32_value’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1073: error: ‘ZEND_LONG_MAX’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1073: error: ‘ZEND_LONG_MIN’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1088: error: ‘IS_BOOL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1098:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1098: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1121:97: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_serialize_field_value’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1121: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1123: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type
/usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1124: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1127: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1130: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1136: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1149: error: ‘IS_TRUE’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1196: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_serialize_packed_field’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1200: error: ‘field_type’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1242:72: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_is_field_packed’:
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1242: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1244: warning: passing argument 2 of ‘zend_hash_find’ makes pointer from integer without a cast
/usr/include/php/Zend/zend_hash.h:164: note: expected ‘const char *’ but argument is of type ‘int’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1244: error: too few arguments to function ‘zend_hash_find’
/var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1245: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
make: *** [protobuf.lo] Error 1

Which branch are you using? For PHP5 you should use php5.

Yes, I am already using php5 branch.

Seeing a line /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:19:1: warning: "IS_BOOL" redefined In file included from /usr/include/php/main/php.h:35 I can tell you are using master branch. The file protobuf.c has reference to IS_BOOL at line 19 in master branch.

Thanks for your reply, How to resolve this issue ?

cd php-protobuf
git checkout php5

It's working thanks a lot.