lala@ubuntu:~/Downloads/nginx/nginx-1.10.1$ make
make -f objs/Makefile
make[1]: Entering directory '/home/lala/Downloads/nginx/nginx-1.10.1'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -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/fastdfs -I /usr/local/fastcommon/ -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 \
/home/lala/Downloads/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c
In file included from /home/lala/Downloads/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
/home/lala/Downloads/fastdfs-nginx-module/src/common.c: In function ‘fdfs_mod_init’:
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:342:5: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
"store_path%d=%s, ", i, \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:342:5: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:379:3: error: ‘g_storage_id_count’ undeclared (first use in this function)
g_storage_id_count, flv_support, flv_extension);
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:379:3: note: each undeclared identifier is reported only once for each function it appears in
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:391:6: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
", store_path%d=%s", i, \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:391:6: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c: In function ‘fdfs_http_request_handler’:
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:863:29: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
sizeof(full_filename), "%s/data/%s", \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:863:29: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:1158:28: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
sizeof(full_filename), "%s/data/%s", \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:1158:28: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
cc1: all warnings being treated as errors
objs/Makefile:1154: recipe for target 'objs/addon/src/ngx_http_fastdfs_module.o' failed
make[1]: [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/home/lala/Downloads/nginx/nginx-1.10.1'
Makefile:8: recipe for target 'build' failed
make: [build] Error 2
lala@ubuntu:~/Downloads/nginx/nginx-1.10.1$ make make -f objs/Makefile make[1]: Entering directory '/home/lala/Downloads/nginx/nginx-1.10.1' cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -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/fastdfs -I /usr/local/fastcommon/ -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 \ /home/lala/Downloads/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c In file included from /home/lala/Downloads/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0: /home/lala/Downloads/fastdfs-nginx-module/src/common.c: In function ‘fdfs_mod_init’: /home/lala/Downloads/fastdfs-nginx-module/src/common.c:342:5: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct}’ [-Werror=format=]
"store_path%d=%s, ", i, \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:342:5: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:379:3: error: ‘g_storage_id_count’ undeclared (first use in this function)
g_storage_id_count, flv_support, flv_extension);
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:379:3: note: each undeclared identifier is reported only once for each function it appears in
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:391:6: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
", store_path%d=%s", i, \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:391:6: error: format ‘%s’ expects argument of type ‘char ’, but argument 5 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c: In function ‘fdfs_http_request_handler’:
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:863:29: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
sizeof(full_filename), "%s/data/%s", \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:863:29: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:1158:28: error: format ‘%s’ expects argument of type ‘char ’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
sizeof(full_filename), "%s/data/%s", \
^
/home/lala/Downloads/fastdfs-nginx-module/src/common.c:1158:28: error: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘FDFSStorePathInfo {aka struct }’ [-Werror=format=]
cc1: all warnings being treated as errors
objs/Makefile:1154: recipe for target 'objs/addon/src/ngx_http_fastdfs_module.o' failed
make[1]: [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/home/lala/Downloads/nginx/nginx-1.10.1'
Makefile:8: recipe for target 'build' failed
make: [build] Error 2