fastdfs-nginx-module icon indicating copy to clipboard operation
fastdfs-nginx-module copied to clipboard

nginx 1.8 1.10 .12 都不能通过编译 fastdfs-nginx-module-1.20

Open vm-001 opened this issue 7 years ago • 8 comments

cc1: warnings being treated as errors /usr/local/fastdfs/fastdfs-nginx-module-1.20/src//common.c:1366: error: implicit declaration of function ‘storage_download_file_ex1’ make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory `/usr/local/nginx/nginx-1.10.3' make: *** [build] Error 2

vm-001 avatar Jul 13 '18 04:07 vm-001

需要先编译和安装FDFS client library。

happyfish100 avatar Jul 13 '18 07:07 happyfish100

FDFS client library是指? libfastcommon与fastdfs已经安装成功的

vm-001 avatar Jul 13 '18 08:07 vm-001

同问

charlesliang1 avatar Oct 11 '18 06:10 charlesliang1

我在公司用的nginx-1.10.0可以,在自己的电脑上用nginx-1.12.2和nginx-1.10.3都是这个问题,为什么呢,你们解决了吗?

liangzhuo avatar Nov 13 '18 16:11 liangzhuo

/usr/local/include/fastdfs/storage_client1.h:524: error: expected ‘)’ before ‘*’ token In file included from /data/fastDFS/fastdfs-nginx-module-master/src/common.c:31, from /data/fastDFS/fastdfs-nginx-module-master/src/ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/trunk_shared.h:18:20: error: base64.h: No such file or directory In file included from /data/fastDFS/fastdfs-nginx-module-master/src/ngx_http_fastdfs_module.c:6: /data/fastDFS/fastdfs-nginx-module-master/src/common.c: In function ‘fdfs_http_request_handler’: /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: ‘ConnectionInfo’ undeclared (first use in this function) /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: (Each undeclared identifier is reported only once /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: for each function it appears in.) /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: expected ‘;’ before ‘storage_server’ /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1353: error: ‘storage_server’ undeclared (first use in this function) cc1: warnings being treated as errors /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1366: error: implicit declaration of function ‘storage_download_file_ex1’ make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory `/data/fastDFS/nginx-1.14.2' make: *** [build] Error 2

long898 avatar Dec 26 '18 12:12 long898

找不到FDFS客户端库?我发现找不到/usr/include/fastcommon/目录下所有以.h结尾的文件,全部复制过去就好了。具体原因不清楚。 cp -a /usr/include/fastcommon/* /usr/include/fastdfs/

long898 avatar Dec 27 '18 02:12 long898

楼上6了

yaoxiyu avatar Apr 19 '19 12:04 yaoxiyu

楼上的方法,我还是不成功,难受

tayloryoungz avatar Aug 27 '19 06:08 tayloryoungz