Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

the install procedure stopped at "make" #10

Description

@tetang1230

/Users/mls/Downloads/apn-1.0.3/php_apn.c:29:38: error: unknown type name 'apn_payload_ctx_ref'; did you mean 'apn_payload_t'?
static zval php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC);
^~~~~~~~~~~~~~~~~~~
apn_payload_t
/usr/include/capn/apn_payload.h:49:32: note: 'apn_payload_t' declared here
typedef struct __apn_payload_t apn_payload_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:40: error: expected ';' at end of declaration
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:5: error: use of undeclared identifier 'apn_payload_ctx_ref'; did you mean
'apn_payload_free'?
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
apn_payload_free
/usr/include/capn/apn_payload.h:71:21: note: 'apn_payload_free' declared here
__apn_export
void apn_payload_free(apn_payload_t *payload);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:24: error: expected ';' after expression
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:25: error: use of undeclared identifier 'apn_payload_ctx'
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:44: error: use of undeclared identifier 'apn_payload_ctx_ref'; did you mean
'apn_payload_free'?
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
apn_payload_free
/usr/include/capn/apn_payload.h:71:21: note: 'apn_payload_free' declared here
apn_export void apn_payload_free(apn_payload_t *payload);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:405:9: error: use of undeclared identifier 'apn_payload_ctx'
if (apn_payload_ctx) {
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:406:27: error: use of undeclared identifier 'apn_payload_ctx'
apn_payload_free(&apn_payload_ctx);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:5: warning: expression result unused [-Wunused-value]
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
/Users/mls/Downloads/apn-1.0.3/php_apn.c:456:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = NULL;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:456:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = NULL;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:457:5: error: unknown type name 'apn_error_ref'; did you mean 'apn_errors'?
apn_error_ref error = NULL;
^~~~~~~~~~~~~
apn_errors
/usr/include/capn/apn.h:129:3: note: 'apn_errors' declared here
} apn_errors;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:457:19: warning: incompatible pointer to integer conversion initializing 'apn_errors'
(aka 'enum __apn_errors') with an expression of type 'void *' [-Wint-conversion]
apn_error_ref error = NULL;
^ ~~~~
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:84: warning: implicit declaration of function 'apn_error_message' is invalid in
C99 [-Wimplicit-function-declaration]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:110: warning: implicit declaration of function 'APN_ERR_CODE_WITHOUT_CLASS' is
invalid in C99 [-Wimplicit-function-declaration]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:137: warning: implicit declaration of function 'apn_error_code' is invalid in C99
[-Wimplicit-function-declaration]
...TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_cod...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:84: warning: format specifies type 'char *' but the argument has type 'int'
[-Wformat]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
~~ ^~~~~~~~~~~~~~~~~~~~~~~~
%d
/Users/mls/Downloads/apn-1.0.3/php_apn.c:465:9: warning: implicit declaration of function 'apn_error_free' is invalid in C99
[-Wimplicit-function-declaration]
apn_error_free(&error);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:5: error: use of undeclared identifier 'apn_error_ref'; did you mean
'apn_error_free'?
apn_error_ref error = NULL;
^~~~~~~~~~~~~
apn_error_free
/Users/mls/Downloads/apn-1.0.3/php_apn.c:465:9: note: 'apn_error_free' declared here
apn_error_free(&error);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:18: error: expected ';' after expression
apn_error_ref error = NULL;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:19: error: use of undeclared identifier 'error'
apn_error_ref error = NULL;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:477:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = NULL;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:477:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = NULL;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:484:5: error: use of undeclared identifier 'apn_ctx_ref'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:35:18: note: expanded from macro 'PHP_APN_FETCH_RESOURCE'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make: *
* [php_apn.lo] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions