免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2246 | 回复: 4
打印 上一主题 下一主题

[FastDFS] nginx + fastdfs编译报错~help [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-09-05 10:56 |只看该作者 |倒序浏览
我现在用的nginx 1.42 + Fdfs v4.06 + fsfs-nginx-module1.15 编译nginx模块出错
/opt/temp/fastdfs-nginx-module/src/common.c:558: 警告:未使用的变量 ‘full_filename’
/opt/temp/fastdfs-nginx-module/src/common.c: In function ‘fdfs_get_params_from_tracker’:
/opt/temp/fastdfs-nginx-module/src/common.c:1255: 错误:‘IniContext’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1255: 错误:expected ‘;’ before ‘iniContext’
/opt/temp/fastdfs-nginx-module/src/common.c:1257: 错误:‘bool’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1257: 错误:expected ‘;’ before ‘continue_flag’
/opt/temp/fastdfs-nginx-module/src/common.c:1259: 错误:‘continue_flag’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1259: 错误:‘false’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1260: 警告:隐式声明函数 ‘fdfs_get_ini_context_from_tracker’
/opt/temp/fastdfs-nginx-module/src/common.c:1260: 错误:‘g_tracker_group’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1260: 错误:‘iniContext’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1270: 错误:‘use_storage_id’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/common.c:1276: 警告:隐式声明函数 ‘fdfs_get_storage_ids_from_tracker_group’
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c: 在顶层:
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:30: 错误:‘IP_ADDRESS_SIZE’ 未声明 (不在函数内)
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c: In function ‘fdfs_output_headers’:
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:175: 错误:‘struct fdfs_http_response’ 没有名为 ‘header_outputed’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:221: 错误:‘struct fdfs_http_response’ 没有名为 ‘header_outputed’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:221: 错误:‘true’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c: 在顶层:
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:231: 警告:在 ‘bool’ 的声明中,类型默认为 ‘int’
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:231: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘last_buf’
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c: In function ‘ngx_http_fastdfs_handler’:
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:842: 错误:‘struct fdfs_http_context’ 没有名为 ‘arg’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:843: 错误:‘struct fdfs_http_context’ 没有名为 ‘header_only’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:844: 错误:‘struct fdfs_http_context’ 没有名为 ‘url’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:845: 错误:‘struct fdfs_http_context’ 没有名为 ‘output_headers’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:846: 错误:‘struct fdfs_http_context’ 没有名为 ‘send_file’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:847: 错误:‘struct fdfs_http_context’ 没有名为 ‘send_reply_chunk’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:847: 错误:‘fdfs_send_reply_chunk’ 未声明 (在此函数内第一次使用)
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:848: 错误:‘struct fdfs_http_context’ 没有名为 ‘proxy_handler’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:854: 错误:‘struct fdfs_http_context’ 没有名为 ‘if_modified_since’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:857: 错误:‘struct fdfs_http_context’ 没有名为 ‘if_modified_since’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:887: 错误:‘struct fdfs_http_context’ 没有名为 ‘range’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:893: 错误:‘struct fdfs_http_context’ 没有名为 ‘if_range’ 的成员
/opt/temp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:893: 错误:‘true’ 未声明 (在此函数内第一次使用)
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
fish大大在么
各路大神们求指点...拜谢了

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2013-09-05 22:22 |只看该作者
需要先编译和安装FastDFS。

论坛徽章:
0
3 [报告]
发表于 2013-09-06 09:09 |只看该作者
明白了,我改了默认安装路径导致nginx 编译时候找不到依赖类库了。。

论坛徽章:
0
4 [报告]
发表于 2013-09-10 18:23 |只看该作者
{:2_179:}{:2_179:}{:2_179:}{:2_179:}{:2_179:}{:2_179:}{:2_179:}{:2_179:}

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-11-10 06:20:00IT运维版块每日发帖之星
日期:2016-07-19 06:20:00JAVA
日期:2016-10-25 16:03:37PHP
日期:2016-10-25 16:03:37Python
日期:2016-10-25 16:03:37
5 [报告]
发表于 2013-09-12 10:51 |只看该作者
回复 3# windy0605


    是不是修改fastdfs-nginx-module/src/config  文件解决的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP