免费注册 查看新帖 |

Chinaunix

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

[FastDFS] nginx+FastDFS在合并时,报错,求助???? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-08-20 13:17 |只看该作者 |倒序浏览
本帖最后由 lixp9 于 2013-08-20 13:17 编辑

测试环境:
1.操作系统:Debian 2.6.32-29
2.FastDFS:FastDFS_v3.05,fastdfs-nginx-module_v1.15
3.Nginx:1.0.11
报错内容:在make nginx时,
make -f objs/Makefile
make[1]: Entering directory `/data/soft/nginx-1.0.11'
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/fastdfs -I /usr/local/include/fastcommon/ -I objs -I src/http -I src/http/modules -I src/mail \
                -o objs/addon/src/ngx_http_fastdfs_module.o \
                /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c
In file included from /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/data/soft/fastdfs-nginx-module/src/common.c:43: error: expected specifier-qualifier-list before ‘FDFSStorePaths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_load_groups_store_paths’:
/data/soft/fastdfs-nginx-module/src/common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
cc1: warnings being treated as errors
/data/soft/fastdfs-nginx-module/src/common.c:123: error: implicit declaration of function ‘storage_load_paths_from_conf_file_ex’
/data/soft/fastdfs-nginx-module/src/common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_mod_init’:
/data/soft/fastdfs-nginx-module/src/common.c:293: error: implicit declaration of function ‘fdfs_load_storage_ids_from_file’
/data/soft/fastdfs-nginx-module/src/common.c:336: error: request for member ‘count’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:339: error: request for member ‘count’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:341: error: request for member ‘paths’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:383: error: ‘g_storage_id_count’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:383: error: (Each undeclared identifier is reported only once
/data/soft/fastdfs-nginx-module/src/common.c:383: error: for each function it appears in.)
/data/soft/fastdfs-nginx-module/src/common.c:392: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:394: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:399: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_http_request_handler’:
/data/soft/fastdfs-nginx-module/src/common.c:556: error: ‘FDFSStorePaths’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:556: error: ‘pStorePaths’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:674: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:754: error: implicit declaration of function ‘storage_split_filename_no_check’
/data/soft/fastdfs-nginx-module/src/common.c:808: error: implicit declaration of function ‘trunk_file_stat_ex1’
/data/soft/fastdfs-nginx-module/src/common.c:904: error: ‘FDFSFileInfo’ has no member named ‘source_id’
/data/soft/fastdfs-nginx-module/src/common.c:973: error: implicit declaration of function ‘fdfs_http_get_file_extension’
/data/soft/fastdfs-nginx-module/src/common.c:973: error: assignment makes pointer from integer without a cast
/data/soft/fastdfs-nginx-module/src/common.c:977: error: passing argument 3 of ‘fdfs_http_get_content_type_by_extname’ makes pointer from integer without a cast
/usr/local/include/fastdfs/fdfs_http_shared.h:104: note: expected ‘char *’ but argument is of type ‘int’
/data/soft/fastdfs-nginx-module/src/common.c:977: error: passing argument 4 of ‘fdfs_http_get_content_type_by_extname’ makes integer from pointer without a cast
/usr/local/include/fastdfs/fdfs_http_shared.h:104: note: expected ‘int’ but argument is of type ‘char *’
/data/soft/fastdfs-nginx-module/src/common.c:977: error: too many arguments to function ‘fdfs_http_get_content_type_by_extname’
/data/soft/fastdfs-nginx-module/src/common.c:1092: error: ‘ConnectionInfo’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:1092: error: expected ‘;’ before ‘storage_server’
/data/soft/fastdfs-nginx-module/src/common.c:1096: error: ‘storage_server’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:1133: error: implicit declaration of function ‘trunk_get_full_filename_ex’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_get_params_from_tracker’:
/data/soft/fastdfs-nginx-module/src/common.c:1276: error: implicit declaration of function ‘fdfs_get_storage_ids_from_tracker_group’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
make[1]: Leaving directory `/data/soft/nginx-1.0.11'
make: *** [build] 错误 2

论坛徽章:
0
2 [报告]
发表于 2013-09-06 21:01 |只看该作者
降低ngix-fastdfs-module的版本,如1.10以下。。
另外,编译nginx和module必须在已正确编译fastDFS之后。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP