happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
9.02k stars 1.99k forks source link

nginx 编译make报错 #343

Open Galen1019 opened 4 years ago

Galen1019 commented 4 years ago

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -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 \ /usr/local/src/fastdfs-nginx-module-master/src//ngx_http_fastdfs_module.c In file included from /usr/local/src/fastdfs-nginx-module-master/src//ngx_http_fastdfs_module.c:6:0: /usr/local/src/fastdfs-nginx-module-master/src//common.c: 在函数‘fdfs_load_groups_store_paths’中: /usr/local/src/fastdfs-nginx-module-master/src//common.c:95:3: 错误:隐式声明函数‘STRERROR’ [-Werror=implicit-function-declaration] logError("file: "FILE", line: %d, " \ ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c: 在函数‘fdfs_mod_init’中: /usr/local/src/fastdfs-nginx-module-master/src//common.c:231:17: 错误:‘DEFAULT_CONNECT_TIMEOUT’未声明(在此函数内第一次使用) &iniContext, DEFAULT_CONNECT_TIMEOUT); ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:231:17: 附注:每个未声明的标识符在其出现的函数内只报告一次 /usr/local/src/fastdfs-nginx-module-master/src//common.c:387:22: 错误:在非结构或联合中请求成员‘count’ g_storage_ids_by_id.count, g_storage_ids_by_ip.count, ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:387:49: 错误:在非结构或联合中请求成员‘count’ g_storage_ids_by_id.count, g_storage_ids_by_ip.count, ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c: 在函数‘fdfs_do_format_range’中: /usr/local/src/fastdfs-nginx-module-master/src//common.c:520:7: 错误:expected ‘)’ before ‘PRId64’ "%"PRId64, range->start); ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:520:7: 错误:格式字符串尾有可疑的‘%’ [-Werror=format=] /usr/local/src/fastdfs-nginx-module-master/src//common.c:525:7: 错误:expected ‘)’ before ‘PRId64’ "%"PRId64"-", range->start); ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:525:7: 错误:格式字符串尾有可疑的‘%’ [-Werror=format=] /usr/local/src/fastdfs-nginx-module-master/src//common.c:530:7: 错误:expected ‘)’ before ‘PRId64’ "%"PRId64"-%"PRId64, \ ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:530:7: 错误:格式字符串尾有可疑的‘%’ [-Werror=format=] /usr/local/src/fastdfs-nginx-module-master/src//common.c: 在函数‘fdfs_do_format_content_range’中: /usr/local/src/fastdfs-nginx-module-master/src//common.c:555:12: 错误:expected ‘)’ before ‘PRId64’ "bytes %"PRId64"-%"PRId64"/%"PRId64, ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c:556:9: 错误:格式字符串尾有可疑的‘%’ [-Werror=format=] range->start, range->end, file_size); ^ /usr/local/src/fastdfs-nginx-module-master/src//common.c: 在函数‘fdfs_calc_content_length’中:

happyfish100 commented 4 years ago

需要先编译和安装FastDFS。

ufLearn commented 4 years ago

已经编译安装过了,但是在nginx make的时候还是有这样问题 nginx版本1.14

Xia-Ao commented 4 years ago

你有解决这个问题吗,我也遇到了

ayzhouwen commented 4 years ago

解决了,版本不一致,都用最新的就好了我用的最新的是(fastdfs-6.06.tar.gz+fastdfs-nginx-module-1.22.tar.gz+libfastcommon-1.0.43.tar.gz)

leiyide commented 4 years ago

换了新版本 原来的数据不能做迁移,安装旧版本 一直报上述的错误。

ypk716 commented 4 years ago

你们的版本怎么那么新的,我也是在这里下载,fastdfs-5.11.tar.gz+fastdfs-nginx-module-1.16.tar.gz+libfastcommon-1.0.7.tar.gz,,这样搭配,make编译的时候也报错。 image