php5.6编译yaf3.0.6报错,版本问题

php5.6编译yaf3.0.6

phpize 没问题

./configure --with-php-config=/usr/local/php5.6/bin/php-config 没问题

make 出现错误

[[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.lo
mkdir .libs
 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.o
In 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 ‘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_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_stream
In 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_stream
In file included from /usr/local/src/yaf-yaf-3.0.6/yaf.c:35:0:
/usr/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_stream
In 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_stream
In 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/yaf-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_string’; did you mean ‘zend_stream’?
 int yaf_request_set_params_single(yaf_request_t *instance, zend_string *key, zval *value);
                                                            ^~~~~~~~~~~
                                                            zend_stream
In file included 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/local/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_DEFAULT_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_string_init(
                            ^
/usr/local/src/yaf-yaf-3.0.6/yaf.c:175:24: warning: assignment makes pointer from integer 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_base
In 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_TRUE
make: *** [yaf.lo] Error 1

  

后来搜索问题,yaf3以上是给PHP7 使用的,所以换成yaf2.3.5,问题解决

原文地址:https://www.cnblogs.com/qinwx/p/8543707.html

时间: 2024-11-05 22:35:45

php5.6编译yaf3.0.6报错,版本问题的相关文章

编译zabbix3.0安装报错index.php 29 line error

Parse error: syntax error, unexpected '[' in /usr/local/httpd/htdocs/zabbix/index.php on line 29 解决步骤:重新编译5.4以上的php,再次重新编译zabbix,重新复制zabbix的web页面就行了

编译mcrypt时,报错:You need at least libmhash 0.8.15

执行 ./configure  编译源码,报错如下: checking whether mhash >= 0.8.15... noconfigure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/" 奇怪,libmhash安装的是 mhash-0.9.9.9.tar.gz ,怎么会报这样的错误呢,难道是没找到? [plain] view plain c

被困扰了一个下午,求大神解答。VC6.0能编译通过,VS2013报错错误。

是一个与链表相关的代码,输入学生总人数及,每个学生的姓名成绩,并将输入的内容显示出来..VC6.0能编译通过,VS2013报错error C4703: 使用了可能未初始化的本地指针变量“p1”代码如下:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>typedef struct student{char name[15];int mark;struct student *next;}Node,*no

linux下编译安装php各种报错大集合

PHP开源脚本语言 PHP(外文名: Hypertext Preprocessor,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域.PHP的文件后缀名为php. 本文为大家整理汇总了一些linux下编译安装php各种报错大集合 ,感兴趣的同学参考下. 报错1:make 后报错如下: Generating phar.php /home/oldboy/tools/php-5.3.27

Centos6.3 PHP编译安装JSON模块报错解决

我在搭建监控系统时候出现JSON模块安装失败,PHP5.3  系统Centos6.3,安装json报错 ZVAL_DELREF 符号未知错误... # Warning: PHP Startup: Unable to load dynamic library '/home/json/json-1.2.1/modules/json.so' - /home/json/json-1.2.1/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown

self.view.frame.size.height = 100f; 这样写没法通过编译,编译器会报错&quot;expression is not assignable&quot;

self.view.frame.size.height = 100f; 这样写没法通过编译,编译器会报错"expression is not assignable" 原因是,这句话里面的几个点有两种不同的含义.self.view.frame是Objective-C语法,是读取view属性的frame属性,在Objective-C中使用点来访问属性只是一种语法糖,所以self.view.frame这句话会被转换成: [[self view] frame] 也就是说,实际上这是消息传递.

Cygwin编译自定义OpenCV库报错:opencv_contrib: LOCAL_SRC_FILES points to a missing file

今天受命帮师弟调个OpenCV4Android 识别银行卡的程序,版本为OpenCV4Android2.4.9,使用方式为前文介绍的第一种方式,即通过jni调用opencv.如杂家前文所述,配套的NDK应使用较高版本的android-ndk-r9d.它的安装很简单,解压缩后设置环境变量到Path就ok:D:\ProgramFile\android-ndk-r9d; 但遗憾的是,同样的程序同样的配置在一台PC上通过Cygwin编译一切ok.但在新的一台电脑上却出现如下错误: Android NDK

解决新建Support7Demos的sample时出现编译错误和运行报错出现的问题

右键New->Other->Android Sample Project->选择Android 4.4.2->选择Support7Demos ,finish. 会出现编译错误 解决如下: 1.把这三个文件导入到Eclipse里, 这三个是库文件,并且勾选COPY到工作空间里选项 如果没有这三个文件,就从这里下载 2.导入三个library工程后,mediarouter会无法编译,打开工程属性在anroid里将api-level改成17,添加依赖工程appcompat 3.就是将刚才

CentOS7.0开机报错“piix4_smbus”和“dev fd0”的解决办法

系统:CentOS 7.0 X64 报错现象: 此问题包含了两个错误: 错误1: piix4_smbus host smbus controller not enabled 修改办法: [[email protected] ~]# lsmod | grep i2c i2c_piix4              22106  0  i2c_core               40325  2 drm,i2c_piix4 [[email protected] ~]# vi /etc/modprob