In file included from ../fastdfs-nginx-module-1.20/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module-1.20/src/common.c: In function ‘fdfs_mod_init’:
../fastdfs-nginx-module-1.20/src/common.c:349:4: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘FDFSStorePathInfo’ [-Werror=format=]
len += snprintf(buff + len, sizeof(buff) - len, \
^
../fastdfs-nginx-module-1.20/src/common.c:349:4: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘FDFSStorePathInfo’ [-Werror=format=]
../fastdfs-nginx-module-1.20/src/common.c:387:3: error: ‘g_storage_id_count’ undeclared (first use in this function)
g_storage_id_count, flv_support, flv_extension);
^
../fastdfs-nginx-module-1.20/src/common.c:387:3: note: each undeclared identifier is reported only once for each function it appears in
../fastdfs-nginx-module-1.20/src/common.c:398:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘FDFSStorePathInfo’ [-Werror=format=]
len += snprintf(buff + len, sizeof(buff) - len, \
^
../fastdfs-nginx-module-1.20/src/common.c:398:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘FDFSStorePathInfo’ [-Werror=format=]
../fastdfs-nginx-module-1.20/src/common.c: In function ‘fdfs_http_request_handler’:
../fastdfs-nginx-module-1.20/src/common.c:1085:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo’ [-Werror=format=]
snprintf(full_filename, \
^
../fastdfs-nginx-module-1.20/src/common.c:1085:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo’ [-Werror=format=]
../fastdfs-nginx-module-1.20/src/common.c:1430:3: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo’ [-Werror=format=]
full_filename_len = snprintf(full_filename, \
^
../fastdfs-nginx-module-1.20/src/common.c:1430:3: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo’ [-Werror=format=]
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Message:
Packages: libfastcommon-1.0.50 nginx-1.20.0 fastdfs-6.07
Configure:
pingos is a nginx module base on nginx-rtmp-module , can be find in github.
And I compile in docker.