happyfish100 / fastdfs-nginx-module

FastDFS nginx module
GNU Lesser General Public License v3.0
434 stars 260 forks source link

nginx 编译 fastdfs-nginx-module,报错fdfs_get_ini_context_from_tracker参数多了,continue_flag这个参数未使用等问题 #109

Open wangyikun opened 1 month ago

wangyikun commented 1 month ago

image In file included from /www/server/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0: /www/server/fastdfs-nginx-module/src/common.c: In function ‘fdfs_get_params_from_tracker’: /www/server/fastdfs-nginx-module/src/common.c:1602:43: error: macro "fdfs_get_ini_context_from_tracker" passed 5 arguments, but takes just 3 &iniContext, &continue_flag, false, NULL)) != 0) ^ /www/server/fastdfs-nginx-module/src/common.c:1601:14: error: ‘fdfs_get_ini_context_from_tracker’ undeclared (first use in this function) if ((result=fdfs_get_ini_context_from_tracker(&g_tracker_group, \ ^ /www/server/fastdfs-nginx-module/src/common.c:1601:14: note: each undeclared identifier is reported only once for each function it appears in /www/server/fastdfs-nginx-module/src/common.c:1598:7: error: variable ‘continue_flag’ set but not used [-Werror=unused-but-set-variable] bool continue_flag; ^ cc1: all warnings being treated as errors make[1]: [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory /www/server/nginx/src' make: [build] Error 2 这是什么原因

happyfish100 commented 1 month ago

版本匹配问题,建议全部升级到最新版本。