VPS侦探论坛

 找回密码
 注册
查看: 4640|回复: 2

lnmp1.3 ubuntu16.4 安装php模块 make失败

[复制链接]
发表于 2016-6-3 10:30:34 | 显示全部楼层 |阅读模式

--mode=compile cc  -I. -I/home/zhaoqian/php-beast-master -DPHP_ATOM_INC -I/home/zhaoqian/php-beast-master/include -I/home/zhaoqian/php-beast-master/main -I/home/zhaoqian/php-beast-master -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/zhaoqian/php-beast-master/beast.c -o beast.lo
cc -I. -I/home/zhaoqian/php-beast-master -DPHP_ATOM_INC -I/home/zhaoqian/php-beast-master/include -I/home/zhaoqian/php-beast-master/main -I/home/zhaoqian/php-beast-master -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/zhaoqian/php-beast-master/beast.c  -fPIC -DPIC -o .libs/beast.o
/home/zhaoqian/php-beast-master/beast.c: In function ‘filter_code_comments’:
/home/zhaoqian/php-beast-master/beast.c:198:5: warning: implicit declaration of function ‘zend_strip’ [-Wimplicit-function-declaration]
     zend_strip(TSRMLS_C);
     ^
/home/zhaoqian/php-beast-master/beast.c: In function ‘encrypt_file’:
/home/zhaoqian/php-beast-master/beast.c:259:28: error: request for member ‘len’ in something not a structure or union
     inlen = codes.value.str.len;
                            ^
/home/zhaoqian/php-beast-master/beast.c:260:28: error: request for member ‘val’ in something not a structure or union
     inbuf = codes.value.str.val;
                            ^
In file included from /usr/local/php/include/php/main/php.h:388:0,
                 from /home/zhaoqian/php-beast-master/beast.c:43:
/home/zhaoqian/php-beast-master/beast.c:269:9: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
         ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL);
         ^
/usr/local/php/include/php/main/php_streams.h:568:107: note: in definition of macro ‘php_stream_open_wrapper’
#define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/home/zhaoqian/php-beast-master/beast.c:269:9: note: each undeclared identifier is reported only once for each function it appears in
         ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL);
         ^
/usr/local/php/include/php/main/php_streams.h:568:107: note: in definition of macro ‘php_stream_open_wrapper’
#define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
In file included from /usr/local/php/include/php/main/php.h:388:0,
                 from /home/zhaoqian/php-beast-master/beast.c:43:
/usr/local/php/include/php/main/php_streams.h:311:72: warning: passing argument 2 of ‘_php_stream_write’ from incompatible pointer type [-Wincompatible-pointer-types]
#define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count))
                                                                        ^
/home/zhaoqian/php-beast-master/beast.c:285:5: note: in expansion of macro ‘php_stream_write’
     php_stream_write(output_stream, &dumplen, sizeof(dumplen));
     ^
/usr/local/php/include/php/main/php_streams.h:309:15: note: expected ‘const char *’ but argument is of type ‘int *’
PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count);
               ^
/home/zhaoqian/php-beast-master/beast.c: In function ‘cgi_compile_file’:
/home/zhaoqian/php-beast-master/beast.c:430:37: warning: passing argument 2 of ‘zend_fopen’ from incompatible pointer type [-Wincompatible-pointer-types]
     filep = zend_fopen(h->filename, &opened_path TSRMLS_CC);
                                     ^
/home/zhaoqian/php-beast-master/beast.c:430:37: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_cache_size’:
/home/zhaoqian/php-beast-master/beast.c:521:9: error: ‘new_value_length’ undeclared (first use in this function)
     if (new_value_length == 0) {
         ^
/home/zhaoqian/php-beast-master/beast.c:525:16: warning: passing argument 1 of ‘beast_atoi’ from incompatible pointer type [-Wincompatible-pointer-types]
     beast_atoi(new_value, &max_cache_size, &len);
                ^
/home/zhaoqian/php-beast-master/beast.c:485:6: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
void beast_atoi(const char *str, int *ret, int *len)
      ^
/home/zhaoqian/php-beast-master/beast.c:528:17: error: switch quantity not an integer
         switch (new_value[len]) {
                 ^
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_log_file’:
/home/zhaoqian/php-beast-master/beast.c:554:9: error: ‘new_value_length’ undeclared (first use in this function)
     if (new_value_length == 0) {
         ^
In file included from /usr/include/string.h:630:0,
                 from /usr/local/php/include/php/main/../main/php_config.h:2508,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:558:29: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
     beast_log_file = strdup(new_value);
                             ^
In file included from /usr/local/php/include/php/main/../main/php_config.h:2508:0,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern size_t strlen (const char *__s)
               ^
In file included from /usr/include/string.h:630:0,
                 from /usr/local/php/include/php/main/../main/php_config.h:2508,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:558:29: warning: passing argument 1 of ‘__strdup’ from incompatible pointer type [-Wincompatible-pointer-types]
     beast_log_file = strdup(new_value);
                             ^
/usr/include/x86_64-linux-gnu/bits/string2.h:1278:14: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern char *__strdup (const char *__string) __THROW __attribute_malloc__;
              ^
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_enable’:
/home/zhaoqian/php-beast-master/beast.c:569:9: error: ‘new_value_length’ undeclared (first use in this function)
     if (new_value_length == 0) {
         ^
/home/zhaoqian/php-beast-master/beast.c:573:21: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                     ^
In file included from /usr/local/php/include/php/main/../main/php_config.h:2508:0,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/usr/include/string.h:529:12: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern int strcasecmp (const char *__s1, const char *__s2)
            ^
In file included from /usr/include/string.h:630:0,
                 from /usr/local/php/include/php/main/../main/php_config.h:2508,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-6-3 10:30:49 | 显示全部楼层

补充



/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strcmp’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strcmp’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strcmp’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strcmp’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
                                                 ^
/home/zhaoqian/php-beast-master/beast.c:573:49: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_encrypt_handler’:
/home/zhaoqian/php-beast-master/beast.c:585:9: error: ‘new_value_length’ undeclared (first use in this function)
     if (new_value_length == 0) {
         ^
In file included from /usr/include/string.h:630:0,
                 from /usr/local/php/include/php/main/../main/php_config.h:2508,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:589:31: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
     default_ops_name = strdup(new_value);
                               ^
In file included from /usr/local/php/include/php/main/../main/php_config.h:2508:0,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern size_t strlen (const char *__s)
               ^
In file included from /usr/include/string.h:630:0,
                 from /usr/local/php/include/php/main/../main/php_config.h:2508,
                 from /usr/local/php/include/php/Zend/zend_config.h:1,
                 from /usr/local/php/include/php/Zend/zend_portability.h:48,
                 from /usr/local/php/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/include/php/Zend/zend.h:31,
                 from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:589:31: warning: passing argument 1 of ‘__strdup’ from incompatible pointer type [-Wincompatible-pointer-types]
     default_ops_name = strdup(new_value);
                               ^
/usr/include/x86_64-linux-gnu/bits/string2.h:1278:14: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern char *__strdup (const char *__string) __THROW __attribute_malloc__;
              ^
/home/zhaoqian/php-beast-master/beast.c: In function ‘zif_beast_cache_info’:
/home/zhaoqian/php-beast-master/beast.c:809:5: warning: implicit declaration of function ‘beast_cache_info’ [-Wimplicit-function-declaration]
     beast_cache_info(return_value);
     ^
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-6-3 15:33:32 | 显示全部楼层

完整日志
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-29 09:36 , Processed in 0.042715 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表