- 论坛徽章:
- 0
|
本帖最后由 lixp9 于 2013-08-20 13:17 编辑
测试环境:
1.操作系统:Debian 2.6.32-29
2.FastDFS:FastDFS_v3.05,fastdfs-nginx-module_v1.15
3.Nginx:1.0.11
报错内容:在make nginx时,
make -f objs/Makefile
make[1]: Entering directory `/data/soft/nginx-1.0.11'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -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 /usr/local/include/fastdfs -I /usr/local/include/fastcommon/ -I objs -I src/http -I src/http/modules -I src/mail \
-o objs/addon/src/ngx_http_fastdfs_module.o \
/data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c
In file included from /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/data/soft/fastdfs-nginx-module/src/common.c:43: error: expected specifier-qualifier-list before ‘FDFSStorePaths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_load_groups_store_paths’:
/data/soft/fastdfs-nginx-module/src/common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
cc1: warnings being treated as errors
/data/soft/fastdfs-nginx-module/src/common.c:123: error: implicit declaration of function ‘storage_load_paths_from_conf_file_ex’
/data/soft/fastdfs-nginx-module/src/common.c:123: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_mod_init’:
/data/soft/fastdfs-nginx-module/src/common.c:293: error: implicit declaration of function ‘fdfs_load_storage_ids_from_file’
/data/soft/fastdfs-nginx-module/src/common.c:336: error: request for member ‘count’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:339: error: request for member ‘count’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:341: error: request for member ‘paths’ in something not a structure or union
/data/soft/fastdfs-nginx-module/src/common.c:383: error: ‘g_storage_id_count’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:383: error: (Each undeclared identifier is reported only once
/data/soft/fastdfs-nginx-module/src/common.c:383: error: for each function it appears in.)
/data/soft/fastdfs-nginx-module/src/common.c:392: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:394: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:399: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_http_request_handler’:
/data/soft/fastdfs-nginx-module/src/common.c:556: error: ‘FDFSStorePaths’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:556: error: ‘pStorePaths’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:674: error: ‘GroupStorePaths’ has no member named ‘store_paths’
/data/soft/fastdfs-nginx-module/src/common.c:754: error: implicit declaration of function ‘storage_split_filename_no_check’
/data/soft/fastdfs-nginx-module/src/common.c:808: error: implicit declaration of function ‘trunk_file_stat_ex1’
/data/soft/fastdfs-nginx-module/src/common.c:904: error: ‘FDFSFileInfo’ has no member named ‘source_id’
/data/soft/fastdfs-nginx-module/src/common.c:973: error: implicit declaration of function ‘fdfs_http_get_file_extension’
/data/soft/fastdfs-nginx-module/src/common.c:973: error: assignment makes pointer from integer without a cast
/data/soft/fastdfs-nginx-module/src/common.c:977: error: passing argument 3 of ‘fdfs_http_get_content_type_by_extname’ makes pointer from integer without a cast
/usr/local/include/fastdfs/fdfs_http_shared.h:104: note: expected ‘char *’ but argument is of type ‘int’
/data/soft/fastdfs-nginx-module/src/common.c:977: error: passing argument 4 of ‘fdfs_http_get_content_type_by_extname’ makes integer from pointer without a cast
/usr/local/include/fastdfs/fdfs_http_shared.h:104: note: expected ‘int’ but argument is of type ‘char *’
/data/soft/fastdfs-nginx-module/src/common.c:977: error: too many arguments to function ‘fdfs_http_get_content_type_by_extname’
/data/soft/fastdfs-nginx-module/src/common.c:1092: error: ‘ConnectionInfo’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:1092: error: expected ‘;’ before ‘storage_server’
/data/soft/fastdfs-nginx-module/src/common.c:1096: error: ‘storage_server’ undeclared (first use in this function)
/data/soft/fastdfs-nginx-module/src/common.c:1133: error: implicit declaration of function ‘trunk_get_full_filename_ex’
/data/soft/fastdfs-nginx-module/src/common.c: In function ‘fdfs_get_params_from_tracker’:
/data/soft/fastdfs-nginx-module/src/common.c:1276: error: implicit declaration of function ‘fdfs_get_storage_ids_from_tracker_group’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
make[1]: Leaving directory `/data/soft/nginx-1.0.11'
make: *** [build] 错误 2 |
|