linux的UBUNTU
已经按照网上说的吧 - WERROR去掉了
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -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 objs -I src/http -I src/http/modules -I //usr/include/fastdfs -I /usr/include/fastcommon/ \
-o objs/addon/src/ngx_http_fastdfs_module.o \
/root/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c
In file included from /root/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c:6:
/root/fastdfs-nginx-module-1.20/src//common.c: In function ‘fdfs_calc_content_length’:
/root/fastdfs-nginx-module-1.20/src//common.c:597:27: warning: implicit declaration of function ‘get_current_time_us’ [-Wimplicit-function-declaration]
597 | "%"PRIx64, get_current_time_us());
| ^~~~~~~~~~~~~~~~~~~
/root/fastdfs-nginx-module-1.20/src//common.c:597:16: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Wformat=]
597 | "%"PRIx64, get_current_time_us());
| ^~~ ~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/fastcommon/fastcommon/common_define.h:31,
from /usr/include/fastcommon/fastcommon/logger.h:15,
from /root/fastdfs-nginx-module-1.20/src//common.c:21,
from /root/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c:6:
/usr/include/inttypes.h:121:34: note: format string is defined here
121 | # define PRIx64 __PRI64_PREFIX "x"
In file included from /root/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c:6:
/root/fastdfs-nginx-module-1.20/src//common.c: In function ‘fdfs_http_request_handler’:
/root/fastdfs-nginx-module-1.20/src//common.c:1245:61: error: ‘FDFSHTTPParams’ {aka ‘struct <anonymous>’} has no member named ‘support_multi_range’
1245 | (pContext->range_count > 1 && !g_http_params.support_multi_range))
| ^
make[1]: *** [objs/Makefile:1207: objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/root/nginx-1.15.2'
make: *** [Makefile:8: build] Error 2
来个拯救世界的大神救救我把,这个问题卡了两天了
https://blog.csdn.net/weixin_34408624/article/details/93711589