adobkin / php-apn

php-apn is a PHP module, to introduce simple yet powerful interface for sending push notifications to iOS and OS X devices from within your PHP code
http://libcapn.org/php-apn
Other
77 stars 16 forks source link

Error installing in ubuntu 14.04 - make: *** [php_apn.lo] Error 1 #15

Open yalberto opened 8 years ago

yalberto commented 8 years ago

root@IdoogroupServer:~/php-apn-master# pecl install package.xml 5 source files, building running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 libcapn installation prefix [no] : building in /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3 running: /tmp/pear/temp/apn/configure --with-apn=no 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-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/20121212 checking for PHP installed headers prefix... /usr/include/php5 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 apn support... yes, shared checking for PHP 5.3.0 or greater... 50509 checking for apn.h in default path... found in /usr checking for libcapn.so in default path... found in /usr/lib 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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no 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 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-rootErIQ1T/apn-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -o php_apn.lo libtool: compile: cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -fPIC -DPIC -o .libs/php_apn.o /tmp/pear/temp/apn/php_apn.c:29:38: error: unknown type name 'apn_payload_ctxref' static zval php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function '__php_apn_dtor': /tmp/pear/temp/apn/php_apn.c:405:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: error: 'apn_ctx_ref' undeclared (first use in this function) apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: note: each undeclared identifier is reported only once for each function it appears in /tmp/pear/temp/apn/php_apn.c:405:41: error: expected ',' or ';' before 'rsrc' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:407:9: warning: passing argument 1 of 'apn_free' from incompatible pointer type [enabled by default] apn_free(&apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:201:21: note: expected 'struct apn_ctx_t ' but argument is of type 'int ' __apn_export void apn_free(apn_ctx_t *ctx); ^ /tmp/pear/temp/apn/php_apn.c: In function 'php_apn_payload_dtor': /tmp/pear/temp/apn/php_apn.c:412:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:44: error: 'apn_payload_ctx_ref' undeclared (first use in this function) apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:65: error: expected ',' or ';' before 'rsrc' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:414:9: warning: passing argument 1 of 'apn_payload_free' from incompatible pointer type [enabled by default] apn_payload_free(&apn_payload_ctx); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:71:21: note: expected 'struct apn_payload_t ' but argument is of type 'int ' __apn_export void apn_payload_free(apn_payload_t payload); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_init': /tmp/pear/temp/apn/php_apn.c:464:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:465:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:472:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:477:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, apn_ctx, le_apn); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void ' but argument is of type 'int' ZEND_API int zend_register_resource(zval rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_connect': /tmp/pear/temp/apn/php_apn.c:484:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:485:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) **res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:502:5: warning: passing argument 1 of 'apn_connect' makes pointer from integer without a cast [enabled by default] if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:502:5: error: too many arguments to function 'apn_connect' if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: declared here apn_export apn_return apn_connect(apn_ctx_t * const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:503:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_close': /tmp/pear/temp/apn/php_apn.c:513:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:523:5: warning: passing argument 1 of 'apn_close' makes pointer from integer without a cast [enabled by default] apn_close(apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:219:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export void apn_close(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_free': /tmp/pear/temp/apn/php_apn.c:528:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_certificate': /tmp/pear/temp/apn/php_apn.c:548:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:550:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int ' apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:564:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_mode': /tmp/pear/temp/apn/php_apn.c:574:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:576:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:584:5: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:5: error: too many arguments to function 'apn_set_mode' if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:9: error: void value not ignored as it ought to be if (apn_set_mode(apn_ctx, mode, NULL)) { ^ /tmp/pear/temp/apn/php_apn.c:585:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_private_key': /tmp/pear/temp/apn/php_apn.c:598:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:600:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:613:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:620:36: error: unknown type name 'apn_ctx_ref' static uint8_t php_apn_add_token(apn_ctx_ref apn_ctx, const char token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:635:37: error: unknown type name 'apn_ctx_ref' static uint8_t __php_apn_add_tokens(apn_ctx_ref apn_ctx TSRMLS_DC, zval tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_token': /tmp/pear/temp/apn/php_apn.c:675:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_tokens': /tmp/pear/temp/apn/php_apn.c:692:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_array': /tmp/pear/temp/apn/php_apn.c:711:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:720:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int ' apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:752:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:769:21: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:21: error: too many arguments to function 'apn_set_mode' } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:32: error: void value not ignored as it ought to be } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:770:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:798:13: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_send': /tmp/pear/temp/apn/php_apn.c:814:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:817:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:818:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 1 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t payload, apn_array_t tokens, apn_array_t _invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 2 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'const struct apn_payloadt ' but argument is of type 'int' apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t payload, apn_array_t tokens, apn_array_t _invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 3 of 'apn_send' from incompatible pointer type [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_arrayt ' but argument is of type 'int *' apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t payload, apn_array_t tokens, apn_array_t _invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: error: too few arguments to function 'apn_send' if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: declared here apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t _payload, apn_array_t tokens, apn_array_t *_invalid_tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zendAPI.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:836:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c:838:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid token: %s", apn_error_invalid_token(error)); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:849:44: error: unknown type name 'apn_payload_ctx_ref' static uint8_t php_apn_payload_add_token(apn_payload_ctx_ref payload_ctx, const char token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:864:45: error: unknown type name 'apn_payload_ctx_ref' static uint8_t __php_apn_payload_add_tokens(apn_payload_ctx_ref payload_ctx TSRMLS_DC, zval tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_init': /tmp/pear/temp/apn/php_apn.c:900:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:901:5: error: unknown type name 'apn_error' apn_error error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:908:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:913:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, payload, le_payload); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void ' but argument is of type 'int' ZEND_API int zend_register_resource(zval rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_free': /tmp/pear/temp/apn/php_apn.c:918:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_badge': /tmp/pear/temp/apn/php_apn.c:937:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:939:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:947:5: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:947:5: error: too many arguments to function 'apn_payload_set_badge' if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:948:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_body': /tmp/pear/temp/apn/php_apn.c:959:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:961:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:973:5: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:973:5: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here apn_export* apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:974:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set alert message: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_sound': /tmp/pear/temp/apn/php_apn.c:985:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:987:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) **res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:999:5: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:999:5: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1000:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_key': /tmp/pear/temp/apn/php_apn.c:1012:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1017:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_arrayt * const' but argument is of type 'char *' apn_export apn_return apn_payload_set_localized_key(apn_payload_t _const payload, const char const key, apn_array_t \ const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1038:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_launch_image': /tmp/pear/temp/apn/php_apn.c:1050:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1052:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1065:5: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1065:5: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here apn_export* apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1066:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_action_key': /tmp/pear/temp/apn/php_apn.c:1078:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1080:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) **res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1093:5: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1093:5: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here apn_export* apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1094:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_custom_property': /tmp/pear/temp/apn/php_apn.c:1105:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1109:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) **res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1124:13: warning: passing argument 1 of 'apn_payload_add_custom_property_bool' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_bool(apn_payload_t const payload, const char const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1124:13: error: too many arguments to function 'apn_payload_add_custom_property_bool' apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: declared here apn_export apn_return apn_payload_add_custom_property_bool(apn_payload_t const payload, const char const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: warning: passing argument 1 of 'apn_payload_add_custom_property_integer' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_integer(apn_payload_t const payload, const char const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: error: too many arguments to function 'apn_payload_add_custom_property_integer' apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: declared here apn_export apn_return apn_payload_add_custom_property_integer(apn_payload_t const payload, const char const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: warning: passing argument 1 of 'apn_payload_add_custom_property_double' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t const payload, const char const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: error: too many arguments to function 'apn_payload_add_custom_property_double' apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: declared here apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t const payload, const char const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: warning: passing argument 1 of 'apn_payload_add_custom_property_string' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char const key, const char value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: error: too many arguments to function 'apn_payload_add_custom_property_string' apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: declared here apn_export apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char const key, const char value) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: warning: passing argument 1 of 'apn_payload_add_custom_property_null' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_null(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: error: too many arguments to function 'apn_payload_add_custom_property_null' apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: declared here apn_export* apn_return apn_payload_add_custom_property_null(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1144:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set custom property: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_expiry': /tmp/pear/temp/apn/php_apn.c:1155:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1157:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) **res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1165:5: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:5: error: too many arguments to function 'apn_payload_set_expiry' if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:9: error: void value not ignored as it ought to be if (apn_payload_set_expiry(payload, expiry, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1166:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_content_available': /tmp/pear/temp/apn/php_apn.c:1177:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1179:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1187:5: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export* void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:5: error: too many arguments to function 'apn_payload_set_content_available' if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here apn_export void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:9: error: void value not ignored as it ought to be if (apn_payload_set_content_available(payload, content_available, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1188:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_token': /tmp/pear/temp/apn/php_apn.c:1200:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) **res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_tokens': /tmp/pear/temp/apn/php_apn.c:1217:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_array': /tmp/pear/temp/apn/php_apn.c:1236:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1249:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1280:21: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:21: error: too many arguments to function 'apn_payload_set_expiry' } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:32: error: void value not ignored as it ought to be } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1281:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1290:21: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1290:21: error: too many arguments to function 'apn_payload_set_badge' } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1291:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1300:21: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:21: error: too many arguments to function 'apn_payload_set_content_available' } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here apn_export void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:32: error: void value not ignored as it ought to be } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1301:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1308:21: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1308:21: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here apn_export apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1309:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1316:21: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1316:21: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1317:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1324:21: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1324:21: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1325:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1332:21: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:1332:21: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here apn_export apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:1333:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set body: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t \ const' but argument is of type 'int' apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_arrayt * const' but argument is of type 'char *' apn_export apn_return apn_payload_set_localized_key(apn_payload_t _const payload, const char const key, apn_array_t \ const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1373:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback_connect': /tmp/pear/temp/apn/php_apn.c:1386:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1387:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1404:5: warning: passing argument 1 of 'apn_feedback_connect' makes pointer from integer without a cast [enabled by default] if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_feedback_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:1404:5: error: too many arguments to function 'apn_feedback_connect' if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: declared here apn_export apn_return apn_feedback_connect(apn_ctx_t * const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1405:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback': /tmp/pear/temp/apn/php_apn.c:1418:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1422:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 1 of 'apn_feedback' makes pointer from integer without a cast [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'const struct apn_ctx_t * const' but argument is of type 'int' apn_export* apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t _tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 2 of 'apn_feedback' from incompatible pointer type [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'struct apn_arrayt *' but argument is of type 'char *' apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t _tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: error: too many arguments to function 'apn_feedback' if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: declared here apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t _tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1441:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_errormessage(error), 1); ^ make: ** [php_apn.lo] Error 1 ERROR: `make' failed root@IdoogroupServer:~/php-apn-master# pecl install package.xml 5 source files, building running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 libcapn installation prefix [no] : building in /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3 running: /tmp/pear/temp/apn/configure --with-apn=no 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-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/20121212 checking for PHP installed headers prefix... /usr/include/php5 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 apn support... yes, shared checking for PHP 5.3.0 or greater... 50509 checking for apn.h in default path... found in /usr checking for libcapn.so in default path... found in /usr/lib 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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no 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 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-rootErIQ1T/apn-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -o php_apn.lo libtool: compile: cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -fPIC -DPIC -o .libs/php_apn.o /tmp/pear/temp/apn/php_apn.c:29:38: error: unknown type name 'apn_payload_ctx_ref' static zval php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'php_apn_dtor': /tmp/pear/temp/apn/php_apn.c:405:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: error: 'apn_ctx_ref' undeclared (first use in this function) apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: note: each undeclared identifier is reported only once for each function it appears in /tmp/pear/temp/apn/php_apn.c:405:41: error: expected ',' or ';' before 'rsrc' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:407:9: warning: passing argument 1 of 'apn_free' from incompatible pointer type [enabled by default] apn_free(&apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:201:21: note: expected 'struct apn_ctx_t ' but argument is of type 'int ' __apn_export__ void apn_free(apn_ctx_t ctx); ^ /tmp/pear/temp/apn/php_apn.c: In function 'php_apn_payload_dtor': /tmp/pear/temp/apn/php_apn.c:412:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:44: error: 'apn_payload_ctx_ref' undeclared (first use in this function) apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:65: error: expected ',' or ';' before 'rsrc' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:414:9: warning: passing argument 1 of 'apn_payload_free' from incompatible pointer type [enabled by default] apn_payload_free(&apn_payload_ctx); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:71:21: note: expected 'struct apn_payload_t ' but argument is of type 'int ' apn_export void apn_payload_free(apn_payload_t payload); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_init': /tmp/pear/temp/apn/php_apn.c:464:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:465:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:472:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:477:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, apn_ctx, le_apn); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void ' but argument is of type 'int' ZEND_API int zend_register_resource(zval rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_connect': /tmp/pear/temp/apn/php_apn.c:484:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:485:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:502:5: warning: passing argument 1 of 'apn_connect' makes pointer from integer without a cast [enabled by default] if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:502:5: error: too many arguments to function 'apn_connect' if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: declared here apn_export apn_return apn_connect(apn_ctx_t const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:503:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_close': /tmp/pear/temp/apn/php_apn.c:513:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:523:5: warning: passing argument 1 of 'apn_close' makes pointer from integer without a cast [enabled by default] apn_close(apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:219:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export void apn_close(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_free': /tmp/pear/temp/apn/php_apn.c:528:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_certificate': /tmp/pear/temp/apn/php_apn.c:548:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:550:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char const' but argument is of type 'int ' __apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:564:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_mode': /tmp/pear/temp/apn/php_apn.c:574:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:576:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:584:5: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:5: error: too many arguments to function 'apn_set_mode' if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here apn_export void apn_set_mode(apn_ctx_t const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:9: error: void value not ignored as it ought to be if (apn_set_mode(apn_ctx, mode, NULL)) { ^ /tmp/pear/temp/apn/php_apn.c:585:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_private_key': /tmp/pear/temp/apn/php_apn.c:598:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:600:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:613:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:620:36: error: unknown type name 'apn_ctx_ref' static uint8_t php_apn_add_token(apn_ctx_ref apn_ctx, const char token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:635:37: error: unknown type name 'apn_ctx_ref' static uint8_t __php_apn_add_tokens(apn_ctx_ref apn_ctx TSRMLS_DC, zval tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_token': /tmp/pear/temp/apn/php_apn.c:675:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_tokens': /tmp/pear/temp/apn/php_apn.c:692:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_array': /tmp/pear/temp/apn/php_apn.c:711:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:720:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char const' but argument is of type 'int ' apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here apn_export apn_return apn_set_certificate(apn_ctx_t const ctx, const char const cert, const char const key, const char const pass) ^ /tmp/pear/temp/apn/php_apn.c:752:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:769:21: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t const' but argument is of type 'int' apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:21: error: too many arguments to function 'apn_set_mode' } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here apn_export void apn_set_mode(apn_ctx_t const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:32: error: void value not ignored as it ought to be } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:770:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:798:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_send': /tmp/pear/temp/apn/php_apn.c:814:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:817:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:818:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 1 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_ctx_t const' but argument is of type 'int' __apn_export__ apn_return apn_send(apn_ctx_t const ctx, const apn_payload_t payload, apn_array_t tokens, apn_array_t invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 2 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'const struct apn_payload_t ' but argument is of type 'int' __apn_export__ apn_return apn_send(apn_ctx_t const ctx, const apn_payload_t payload, apn_array_t tokens, apn_array_t invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 3 of 'apn_send' from incompatible pointer type [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_array_t ' but argument is of type 'int ' apn_export__ apn_return apn_send(apn_ctx_t const ctx, const apn_payload_t payload, apn_array_t *tokens, apn_array_t **invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: error: too few arguments to function 'apn_send' if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: declared here apn_export apn_return apn_send(apn_ctx_t const ctx, const apn_payload_t payload, apn_array_t *tokens, apn_array_t *invalid_tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:836:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c:838:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid token: %s", apn_error_invalid_token(error)); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:849:44: error: unknown type name 'apn_payload_ctx_ref' static uint8_t php_apn_payload_add_token(apn_payload_ctx_ref payload_ctx, const char token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:864:45: error: unknown type name 'apn_payload_ctx_ref' static uint8_t __php_apn_payload_add_tokens(apn_payload_ctx_ref payload_ctx TSRMLS_DC, zval tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_init': /tmp/pear/temp/apn/php_apn.c:900:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:901:5: error: unknown type name 'apn_error' apn_error error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:908:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:913:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, payload, le_payload); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void ' but argument is of type 'int' ZEND_API int zend_register_resource(zval rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_free': /tmp/pear/temp/apn/php_apn.c:918:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_badge': /tmp/pear/temp/apn/php_apn.c:937:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:939:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:947:5: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_badge(apn_payload_t const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:947:5: error: too many arguments to function 'apn_payload_set_badge' if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here apn_export__ apn_return apn_payload_set_badge(apn_payload_t const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:948:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_body': /tmp/pear/temp/apn/php_apn.c:959:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:961:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:973:5: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:973:5: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here __apn_export__ apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:974:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set alert message: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_sound': /tmp/pear/temp/apn/php_apn.c:985:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:987:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:999:5: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_sound(apn_payload_t const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:999:5: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here __apn_export__ apn_return apn_payload_set_sound(apn_payload_t const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1000:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_key': /tmp/pear/temp/apn/php_apn.c:1012:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1017:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t * const' but argument is of type 'char *' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1038:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_launch_image': /tmp/pear/temp/apn/php_apn.c:1050:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1052:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1065:5: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1065:5: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1066:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_action_key': /tmp/pear/temp/apn/php_apn.c:1078:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1080:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1093:5: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1093:5: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1094:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_custom_property': /tmp/pear/temp/apn/php_apn.c:1105:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1109:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1124:13: warning: passing argument 1 of 'apn_payload_add_custom_property_bool' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_bool(apn_payload_t const payload, const char const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1124:13: error: too many arguments to function 'apn_payload_add_custom_property_bool' apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_bool(apn_payload_t const payload, const char const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: warning: passing argument 1 of 'apn_payload_add_custom_property_integer' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' apn_export__ apn_return apn_payload_add_custom_property_integer(apn_payload_t const payload, const char const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: error: too many arguments to function 'apn_payload_add_custom_property_integer' apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: declared here apn_export apn_return apn_payload_add_custom_property_integer(apn_payload_t const payload, const char const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: warning: passing argument 1 of 'apn_payload_add_custom_property_double' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t const payload, const char const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: error: too many arguments to function 'apn_payload_add_custom_property_double' apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: declared here apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t const payload, const char const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: warning: passing argument 1 of 'apn_payload_add_custom_property_string' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_add_custom_property_string(apn_payload_t const payload, const char const key, const char value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: error: too many arguments to function 'apn_payload_add_custom_property_string' apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_string(apn_payload_t const payload, const char const key, const char value) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: warning: passing argument 1 of 'apn_payload_add_custom_property_null' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_null(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: error: too many arguments to function 'apn_payload_add_custom_property_null' apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_null(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1144:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set custom property: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_expiry': /tmp/pear/temp/apn/php_apn.c:1155:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1157:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1165:5: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ void apn_payload_set_expiry(apn_payload_t const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:5: error: too many arguments to function 'apn_payload_set_expiry' if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here apn_export__ void apn_payload_set_expiry(apn_payload_t const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:9: error: void value not ignored as it ought to be if (apn_payload_set_expiry(payload, expiry, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1166:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_content_available': /tmp/pear/temp/apn/php_apn.c:1177:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1179:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1187:5: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:5: error: too many arguments to function 'apn_payload_set_content_available' if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here apn_export__ void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:9: error: void value not ignored as it ought to be if (apn_payload_set_content_available(payload, content_available, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1188:9: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_token': /tmp/pear/temp/apn/php_apn.c:1200:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_tokens': /tmp/pear/temp/apn/php_apn.c:1217:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_array': /tmp/pear/temp/apn/php_apn.c:1236:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1249:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' res = (apn_payload_ctx_ref) zend_list_find(__res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1280:21: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ void apn_payload_set_expiry(apn_payload_t const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:21: error: too many arguments to function 'apn_payload_set_expiry' } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here apn_export__ void apn_payload_set_expiry(apn_payload_t const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:32: error: void value not ignored as it ought to be } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1281:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1290:21: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1290:21: error: too many arguments to function 'apn_payload_set_badge' } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here __apn_export apn_return apn_payload_set_badge(apn_payload_t const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1291:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1300:21: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export__ void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:21: error: too many arguments to function 'apn_payload_set_content_available' } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here apn_export__ void apn_payload_set_content_available(apn_payload_t const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:32: error: void value not ignored as it ought to be } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1301:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1308:21: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' apn_export apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1308:21: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here apn_export apn_return apn_payload_set_launch_image(apn_payload_t const payload, const char const image) ^ /tmp/pear/temp/apn/php_apn.c:1309:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1316:21: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' __apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1316:21: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t const payload, const char const key) ^ /tmp/pear/temp/apn/php_apn.c:1317:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1324:21: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' apn_export apn_return apn_payload_set_sound(apn_payload_t const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1324:21: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here apn_export apn_return apn_payload_set_sound(apn_payload_t const payload, const char const sound) ^ /tmp/pear/temp/apn/php_apn.c:1325:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1332:21: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' apn_export apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:1332:21: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here apn_export__ apn_return apn_payload_set_body(apn_payload_t const payload, const char const body) ^ /tmp/pear/temp/apn/php_apn.c:1333:25: warning: format '%s' expects argument of type 'char ', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set body: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t const' but argument is of type 'int' apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t const' but argument is of type 'char **' __apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char const key, apn_array_t const args) ^ /tmp/pear/temp/apn/php_apn.c:1373:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback_connect': /tmp/pear/temp/apn/php_apn.c:1386:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1387:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1404:5: warning: passing argument 1 of 'apn_feedback_connect' makes pointer from integer without a cast [enabled by default] if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' apn_export apn_return apn_feedback_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:1404:5: error: too many arguments to function 'apn_feedback_connect' if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: declared here __apn_export apn_return apn_feedback_connect(apn_ctx_t const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1405:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback': /tmp/pear/temp/apn/php_apn.c:1418:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1422:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'

define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)

                              ^

/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' res = (apn_ctx_ref) zend_list_find(res_id, &rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == res || rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 1 of 'apn_feedback' makes pointer from integer without a cast [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'const struct apn_ctx_t * const' but argument is of type 'int' __apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 2 of 'apn_feedback' from incompatible pointer type [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'struct apn_array_t ' but argument is of type 'char ' __apn_export__ apn_return apn_feedback(const apn_ctx_t const ctx, apn_array_t tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: error: too many arguments to function 'apn_feedback' if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: declared here __apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t *tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1441:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ make: *** [phpapn.lo] Error 1 ERROR:`make' failed

shehi commented 7 years ago

Try using branch 1.1.0.