开发者社区> 问答> 正文

fastdfs安装nginx插件报错?报错

In file included from /home/soft/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:
/home/soft/fastdfs-nginx-module/src//common.c:43: error: expected specifier-qualifier-list before ‘FDFSStorePaths’
/home/soft/fastdfs-nginx-module/src//common.c: In function ‘fdfs_load_groups_store_paths’:
/home/soft/fastdfs-nginx-module/src//common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
cc1: warnings being treated as errors
/home/soft/fastdfs-nginx-module/src//common.c:123: error: implicit declaration of function ‘storage_load_paths_from_conf_file_ex’
/home/soft/fastdfs-nginx-module/src//common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/home/soft/fastdfs-nginx-module/src//common.c: In function ‘fdfs_mod_init’:
/home/soft/fastdfs-nginx-module/src//common.c:293: error: implicit declaration of function ‘fdfs_load_storage_ids_from_file’
/home/soft/fastdfs-nginx-module/src//common.c:336: error: request for member ‘count’ in something not a structure or union
/home/soft/fastdfs-nginx-module/src//common.c:339: error: request for member ‘count’ in something not a structure or union
/home/soft/fastdfs-nginx-module/src//common.c:341: error: request for member ‘paths’ in something not a structure or union
/home/soft/fastdfs-nginx-module/src//common.c:379: error: ‘g_storage_id_count’ undeclared (first use in this function)
/home/soft/fastdfs-nginx-module/src//common.c:379: error: (Each undeclared identifier is reported only once
/home/soft/fastdfs-nginx-module/src//common.c:379: error: for each function it appears in.)
/home/soft/fastdfs-nginx-module/src//common.c:388: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/home/soft/fastdfs-nginx-module/src//common.c:390: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/home/soft/fastdfs-nginx-module/src//common.c:395: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/home/soft/fastdfs-nginx-module/src//common.c: In function ‘fdfs_http_request_handler’:
/home/soft/fastdfs-nginx-module/src//common.c:552: error: ‘FDFSStorePaths’ undeclared (first use in this function)
/home/soft/fastdfs-nginx-module/src//common.c:552: error: ‘pStorePaths’ undeclared (first use in this function)
/home/soft/fastdfs-nginx-module/src//common.c:670: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/home/soft/fastdfs-nginx-module/src//common.c:750: error: implicit declaration of function ‘storage_split_filename_no_check’
/home/soft/fastdfs-nginx-module/src//common.c:804: error: implicit declaration of function ‘trunk_file_stat_ex1’
/home/soft/fastdfs-nginx-module/src//common.c:900: error: ‘FDFSFileInfo’ has no member named ‘source_id’
/home/soft/fastdfs-nginx-module/src//common.c:969: error: implicit declaration of function ‘fdfs_http_get_file_extension’
/home/soft/fastdfs-nginx-module/src//common.c:969: error: assignment makes pointer from integer without a cast
/home/soft/fastdfs-nginx-module/src//common.c:1108: error: ‘ConnectionInfo’ undeclared (first use in this function)
/home/soft/fastdfs-nginx-module/src//common.c:1108: error: expected ‘;’ before ‘storage_server’
/home/soft/fastdfs-nginx-module/src//common.c:1112: error: ‘storage_server’ undeclared (first use in this function)
/home/soft/fastdfs-nginx-module/src//common.c:1149: error: implicit declaration of function ‘trunk_get_full_filename_ex’
/home/soft/fastdfs-nginx-module/src//common.c: In function ‘fdfs_get_params_from_tracker’:
/home/soft/fastdfs-nginx-module/src//common.c:1292: error: implicit declaration of function ‘fdfs_get_storage_ids_from_tracker_group’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory `/home/soft/nginx-1.7.10'

make: *** [build] Error 2

安装fastdfs的nginx模块报错,请高手指点一下

展开
收起
爱吃鱼的程序员 2020-06-14 16:11:43 1013 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    已解决


    回复 @Oldming:这个问题是fastdfs-nginx-module版本的问题,我换了fastdfs-nginx-module_v1.16.tar.gz就OK了你好这个问题是怎么解决的?如何解决的?这个问题是fastdfs-nginx-module版本的问题,我换了fastdfs-nginx-module_v1.16.tar.gz就OK了
    2020-06-14 16:11:58
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《Nginx 代理系统常用手册》 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载