php5.6 compile yaf3.0.6 error, version issue

Source: Internet
Author: User
Tags zend

php5.6 compiling yaf3.0.6

Phpize, no problem.

./configure--with-php-config=/usr/local/php5.6/bin/php-config no problem.

Make error occurred

[[email protected] yaf-yaf-3.0.6]# make/bin/sh/usr/local/src/yaf-yaf-3.0.6/libtool--mode=compile cc-i.-I/usr /local/src/yaf-yaf-3.0.6-dphp_atom_inc-i/usr/local/src/yaf-yaf-3.0.6/include-i/usr/local/src/yaf-yaf-3.0.6/ main-i/usr/local/src/yaf-yaf-3.0.6-i/usr/local/php5.6/include/php-i/usr/local/php5.6/include/php/main-i/usr/ local/php5.6/include/php/tsrm-i/usr/local/php5.6/include/php/zend-i/usr/local/php5.6/include/php/ext-i/usr/ Local/php5.6/include/php/ext/date/lib-dhave_config_h-g-o2-c/usr/local/src/yaf-yaf-3.0.6/yaf.c-o Yaf.lomkdir. lib S cc-i.-i/usr/local/src/yaf-yaf-3.0.6-dphp_atom_inc-i/usr/local/src/yaf-yaf-3.0.6/include-i/usr/local/src/ yaf-yaf-3.0.6/main-i/usr/local/src/yaf-yaf-3.0.6-i/usr/local/php5.6/include/php-i/usr/local/php5.6/include/php /main-i/usr/local/php5.6/include/php/tsrm-i/usr/local/php5.6/include/php/zend-i/usr/local/php5.6/include/php/ Ext-i/usr/local/php5.6/include/php/ext/date/lib-dhave_config_h-g-o2-c/usr/local/src/yaF-yaf-3.0.6/yaf.c-fpic-dpic-o. libs/yaf.oin file included from/usr/local/src/yaf-yaf-3.0.6/yaf.c:28:0:/usr/local/  Src/yaf-yaf-3.0.6/php_yaf.h:72:2: Error:unknown type name ' zend_string ' zend_string *ext;  ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:73:2: Error:unknown type name ' zend_string ' zend_string *base_uri; ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:74:2: Error:unknown type name ' zend_string ' zend_string *directory  ; ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:75:2: Error:unknown type name ' zend_string ' zend_string *local_  Library ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:76:2: Error:unknown type name ' zend_string ' zend_string *local_  namespaces; ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:77:2: Error:unknown type name ' zend_string ' zend_string *view_  Directory  ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:78:2: Error:unknown type name ' zend_string ' zend_string *view_ext; ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h: 79:2: Error:unknown type name ' zend_string ' zend_string *default_module; ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:80:2: Error:unknown type name ' zend_string ' zend_string *default_  Controller ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:81:2: Error:unknown type name ' zend_string ' zend_string *default_  Action ^~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/php_yaf.h:82:2: Error:unknown type name ' zend_string ' zend_string *bootstrap  ; ^~~~~~~~~~~in file included From/usr/local/src/yaf-yaf-3.0.6/yaf.c:30:0:/usr/local/src/yaf-yaf-3.0.6/yaf_loader.h : 69:23:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                       int Yaf_loader_import (zend_string *path, int use_path); ^~~~~~~~~~~ zend_stream/usr/local/src/yaf-yaf-3.0.6/yaf_loader.h:72:59:error:unknown type name ' ze Nd_string '; Did you mean ' zend_stream '?     yaf_loader_t *yaf_loader_instance (yaf_loader_t *this_ptr, zend_string *library_path, zend_string *global_path);                                                      ^~~~~~~~~~~ Zend_stream/usr/local/src/yaf-yaf-3.0.6/yaf_loader.h:72:86:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                                                      yaf_loader_t *yaf_loader_instance (yaf_loader_t *this_ptr, zend_string *library_path, zend_string *global_path);                                                                                      ^~~~~~~~~~~ Zend_streamin file included from/usr/local/src/yaf-yaf-3.0.6/yaf.c:32: 0:/usr/local/src/yaf-yaf-3.0.6/yaf_application.h:31:36:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                    int Yaf_application_is_module_name (zend_string *name); ^~~~~~~~~~~ zend_streamin file included from/usr/local/src/yaf-yaf-3.0.6/yaf.c:35:0:/u Sr/local/src/yaf-yaf-3.0.6/yaf_view.h:34:53:erRor:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                     void Yaf_view_simple_clear_assign (yaf_view_t *view, zend_string *name); ^~~~~~~~~~~ zend_streamin file included From/usr/local/src/yaf-yaf -3.0.6/yaf.c:36:0:/usr/local/src/yaf-yaf-3.0.6/yaf_controller.h:34:1: Error:unknown type name ' zend_string '; Did you mean ' zend_stream '? Zend_string * Yaf_controller_render (zval *instance, char *action_name, int len, zval *var_array); ^~~~~~~~~~~ zend_streamin file included from/usr/local/src/yaf-yaf-3.0.6/yaf.c:38:0:/usr/local/src/yaf-yaf-3.0.6/ Yaf_request.h:47:62:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                              yaf_request_t *yaf_request_instance (yaf_request_t *this_ptr, zend_string *info); ^~~~~~~~~~~ Zend_stream/usr/local/src/ya f-yaf-3.0.6/yaf_request.h:48:54:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                      int Yaf_request_set_base_uri (yaf_request_t *request, zend_string *base_uri, zend_string *request_uri); ^~~~~~~~~~~ zend_stream/usr/local/ Src/yaf-yaf-3.0.6/yaf_request.h:48:77:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                                             int Yaf_request_set_base_uri (yaf_request_t *request, zend_string *base_uri, zend_string *request_uri);                                                                             ^~~~~~~~~~~ Zend_stream/usr/local/src/yaf-yaf-3.0.6/yaf_request.h:52:54:error:unknown type name ' zend_string ’; Did you mean ' zend_stream '?                                                      Zval *yaf_request_get_param (yaf_request_t *instance, zend_string *key);                          ^~~~~~~~~~~                            Zend_stream/usr/local/src/yaf-yaf-3.0.6/yaf_request.h:59:60:error:unknown type name ' Zend_st Ring '; Did you mean ' zend_stream '?                                                            int Yaf_request_set_params_single (yaf_request_t *instance, zend_string *key, Zval *value); ^~~~~~~~~~~ Zend_streamin File Inc luded From/usr/local/src/yaf-yaf-3.0.6/yaf.c:39:0:/usr/local/src/yaf-yaf-3.0.6/yaf_response.h:35:55:error: Unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                       int Yaf_response_alter_body (yaf_response_t *response, zend_string *name, zend_string *body, int flag); ^~~~~~~~~~~ Zend_stream/usr/loca L/src/yaf-yaf-3.0.6/yaf_response.h:35:74:error:unknown type name ' zend_string '; Did you mean ' zend_stream '? int Yaf_response_alter_body (yaf_response_t *response, zend_string *name, Zend_string *body, int flag); ^~~~~~~~~~~ zend_stream/usr/local/src/yaf-yaf-3.0 .6/yaf_response.h:38:55:error:unknown type name ' zend_string '; Did you mean ' zend_stream '?                                                       int Yaf_response_clear_body (yaf_response_t *response, zend_string *name);  ^~~~~~~~~~~ Zend_stream/usr/local/src/yaf-yaf-3.0.6/yaf.c:in function ' Onupdateseparator ':/usr/local/src/yaf-yaf-3.0.6/yaf.c:58:26:warning:implicit declaration of function ' Zstr_val '; Did you mean ' z_strval '?  [-wimplicit-function-declaration]                          Yaf_g (Name_separator) = Zstr_val (New_value);  ^~~~~~~~ z_strval/usr/local/src/yaf-yaf-3.0.6/yaf.c:58:24:warning:assignment makes pointer from Integer without a cast [-wint-conversion] Yaf_g (name_separator) = Zstr_val (New_value); ^/usr/local/src/yaf-yaf-3.0.6/yaf.c:59:30:warning:implicit declaration of function ' Zstr_len '; Did you mean ' Z_strlen '?  [-wimplicit-function-declaration]                              Yaf_g (Name_separator_len) = Zstr_len (New_value); ^~~~~~~~ z_strlen/usr/local/src/yaf-yaf-3.0.6/yaf.c:in function ' zm_activate_yaf ':/usr/local /src/yaf-yaf-3.0.6/yaf.c:169:15:warning:implicit declaration of function ' Zend_string_init '; Did you mean ' zend_stack_init '?  [-wimplicit-function-declaration]               Yaf_g (EXT) = Zend_string_init (Yaf_default_ext, sizeof (Yaf_default_ext)-1, 0);  ^~~~~~~~~~~~~~~~ Zend_stack_init/usr/local/src/yaf-yaf-3.0.6/yaf.c:169:13:warning:assignment makes pointer From integer without a cast [-wint-conversion] Yaf_g (EXT) = Zend_string_init (Yaf_default_ext, sizeof (Yaf_default_ext)-             1, 0); ^/usr/local/src/yaf-yaf-3.0.6/yaf.c:170:18:warning:assignment makes pointer From integer without a cast [-wint-conversion] Yaf_g (view_ext) = Zend_string_init (Yaf_default_view_ext, sizeof (YAF_DEFA                  Ult_view_ext)-1, 0); ^/usr/local/src/yaf-yaf-3.0.6/yaf.c:171:24:warning:assignment makes pointer from integer without a cast [- Wint-conversion] Yaf_g (default_module) = Zend_string_init (^/usr/local/src/yaf-yaf-3.0.6/yaf.c:173 : 28:warning:assignment makes pointer from integer without a cast [-wint-conversion] Yaf_g (default_controller) = Zend_st Ring_init (^/usr/local/src/yaf-yaf-3.0.6/yaf.c:175:24:warning:assignment makes pointer from I Nteger without a cast [-wint-conversion] Yaf_g (default_action) = Zend_string_init (^/usr/local/src /yaf-yaf-3.0.6/yaf.c:in function ' zm_deactivate_yaf ':/usr/local/src/yaf-yaf-3.0.6/yaf.c:190:3: warning:implicit Declaration of function ' Zend_string_release '; Did you mean ' zend_stack_base '? [-wimplicit-function-declaration] Zend_string_reLease (Yaf_g (directory));                 ^~~~~~~~~~~~~~~~~~~ Zend_stack_basein file included from/usr/local/php5.6/include/php/zend/zend.h:850:0, From/usr/local/php5.6/include/php/main/php.h:35, from/usr/local/src/yaf-yaf-3.0.6/yaf.c:21:/usr/local/ php5.6/include/php/zend/zend_variables.h:57:48:warning:passing argument 1 of ' _zval_ptr_dtor ' from incompatible pointer type [-wincompatible-pointer-types] #define Zval_ptr_dtor (ZVAL_PTR) _zval_ptr_dtor ((zval_ptr) zend_file_line  _CC) ^/usr/local/src/yaf-yaf-3.0.6/yaf.c:206:3: note:in expansion of macro   ' Zval_ptr_dtor ' Zval_ptr_dtor (&yaf_g (modules)); ^~~~~~~~~~~~~/usr/local/php5.6/include/php/zend/zend_variables.h:51:15:note:expected ' zval * * {aka struct _ZVAL_ struct * *} ' but argument is of type ' zval * {aka struct _zval_struct *} ' Zend_api void _zval_ptr_dtor (Zval **zval_ptr ZEND               _FILE_LINE_DC); ^~~~~~~~~~~~~~/usr/local/src/yaf-yaf-3.0.6/yaf.c:207:3: warning:implicit declaration of function ' Zval_undef '; Did you mean ' zval_true '?   [-wimplicit-function-declaration]   Zval_undef (&yaf_g (modules)); ^~~~~~~~~~ zval_truemake: * * * [Yaf.lo] Error 1

  

Later search problems, yaf3 above is for PHP7 use, so replace yaf2.3.5, problem solving

php5.6 compile yaf3.0.6 error, version issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.