nginx插件编译不通过
本帖最后由 zcq100 于 2011-06-10 11:18 编辑
大家帮我看下,谢谢
- /usr/local/include/fdfs_http_shared.h:28: error: expected specifier-qualifier-list before ‘HashArray’
- In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
- /opt/fastdfs-nginx-module-read-only/src//common.c:27:27: error: local_ip_func.h: No such file or directory
- /opt/fastdfs-nginx-module-read-only/src//common.c:28:26: error: trunk_shared.h: No such file or directory
- In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
- /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_mod_init’:
- /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: ‘IniContext’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: (Each undeclared identifier is reported only once
- /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: for each function it appears in.)
- /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: expected ‘;’ before ‘iniContext’
- /opt/fastdfs-nginx-module-read-only/src//common.c:54: error: too few arguments to function ‘log_init’
- cc1: warnings being treated as errors
- /opt/fastdfs-nginx-module-read-only/src//common.c:55: error: implicit declaration of function ‘trunk_shared_init’
- /opt/fastdfs-nginx-module-read-only/src//common.c:57: error: implicit declaration of function ‘iniLoadFromFile’
- /opt/fastdfs-nginx-module-read-only/src//common.c:57: error: ‘iniContext’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:67: error: implicit declaration of function ‘storage_load_paths_from_conf_file’
- /opt/fastdfs-nginx-module-read-only/src//common.c:72: error: ‘g_fdfs_connect_timeout’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:73: error: ‘DEFAULT_CONNECT_TIMEOUT’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:72: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:79: error: ‘g_fdfs_network_timeout’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:79: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:86: error: too few arguments to function ‘load_log_level’
- /opt/fastdfs-nginx-module-read-only/src//common.c:88: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:91: error: implicit declaration of function ‘log_set_filename’
- /opt/fastdfs-nginx-module-read-only/src//common.c:97: error: implicit declaration of function ‘fdfs_load_tracker_group_ex’
- /opt/fastdfs-nginx-module-read-only/src//common.c:97: error: ‘g_tracker_group’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:104: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:107: error: passing argument 2 of ‘iniGetBoolValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:48: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:109: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:128: error: passing argument 2 of ‘fdfs_http_params_load’ makes integer from pointer without a cast
- /usr/local/include/fdfs_http_shared.h:50: note: expected ‘int’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:128: error: passing argument 3 of ‘fdfs_http_params_load’ from incompatible pointer type
- /usr/local/include/fdfs_http_shared.h:50: note: expected ‘const char *’ but argument is of type ‘struct FDFSHTTPParams *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:128: error: too few arguments to function ‘fdfs_http_params_load’
- /opt/fastdfs-nginx-module-read-only/src//common.c:134: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:143: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- /opt/fastdfs-nginx-module-read-only/src//common.c:146: error: ‘g_if_alias_prefix’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:156: error: implicit declaration of function ‘iniFreeContext’
- /opt/fastdfs-nginx-module-read-only/src//common.c:162: error: implicit declaration of function ‘load_local_host_ip_addrs’
- /opt/fastdfs-nginx-module-read-only/src//common.c:185: error: ‘g_fdfs_base_path’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:188: error: ‘g_local_host_ip_count’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘need_find_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘default_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_ttl’
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘anti_steal_secret_key’
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
- /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_http_request_handler’:
- /opt/fastdfs-nginx-module-read-only/src//common.c:256: error: ‘FDFSFileInfo’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:256: error: expected ‘;’ before ‘file_info’
- /opt/fastdfs-nginx-module-read-only/src//common.c:260: error: ‘FDFSTrunkFullInfo’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:260: error: expected ‘;’ before ‘trunkInfo’
- /opt/fastdfs-nginx-module-read-only/src//common.c:261: error: ‘FDFSTrunkHeader’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:261: error: expected ‘;’ before ‘trunkHeader’
- /opt/fastdfs-nginx-module-read-only/src//common.c:355: error: ‘FDFSHTTPParams’ has no member named ‘anti_steal_secret_key’
- /opt/fastdfs-nginx-module-read-only/src//common.c:355: error: ‘FDFSHTTPParams’ has no member named ‘token_ttl’
- /opt/fastdfs-nginx-module-read-only/src//common.c:359: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:361: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
- /opt/fastdfs-nginx-module-read-only/src//common.c:362: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:365: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
- /opt/fastdfs-nginx-module-read-only/src//common.c:367: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
- /opt/fastdfs-nginx-module-read-only/src//common.c:384: error: implicit declaration of function ‘storage_split_filename_ex’
- /opt/fastdfs-nginx-module-read-only/src//common.c:397: error: implicit declaration of function ‘fdfs_get_file_info_ex1’
- /opt/fastdfs-nginx-module-read-only/src//common.c:397: error: ‘file_info’ undeclared (first use in this function)
- In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
- /opt/fastdfs-nginx-module-read-only/src//common.c:431: error: implicit declaration of function ‘trunk_file_stat’
- /opt/fastdfs-nginx-module-read-only/src//common.c:432: error: ‘trunkInfo’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:432: error: ‘trunkHeader’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:447: error: implicit declaration of function ‘is_local_host_ip’
- /opt/fastdfs-nginx-module-read-only/src//common.c:529: error: ‘FDFSHTTPParams’ has no member named ‘need_find_content_type’
- /opt/fastdfs-nginx-module-read-only/src//common.c:588: error: implicit declaration of function ‘STORAGE_IS_TRUNK_FILE’
- /opt/fastdfs-nginx-module-read-only/src//common.c:591: error: implicit declaration of function ‘trunk_get_full_filename’
- /opt/fastdfs-nginx-module-read-only/src//common.c:594: error: implicit declaration of function ‘TRUNK_FILE_START_OFFSET’
- /opt/fastdfs-nginx-module-read-only/src//common.c:600: error: ‘g_fdfs_store_paths’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:625: error: implicit declaration of function ‘STRERROR’
- /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_get_params_from_tracker’:
- /opt/fastdfs-nginx-module-read-only/src//common.c:667: error: ‘IniContext’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:667: error: expected ‘;’ before ‘iniContext’
- /opt/fastdfs-nginx-module-read-only/src//common.c:672: error: implicit declaration of function ‘fdfs_get_ini_context_from_tracker’
- /opt/fastdfs-nginx-module-read-only/src//common.c:672: error: ‘g_tracker_group’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:673: error: ‘iniContext’ undeclared (first use in this function)
- /opt/fastdfs-nginx-module-read-only/src//common.c:678: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
- /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
- make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
- make[1]: Leaving directory `/opt/nginx-0.8.53'
- make: *** [build] Error 2
- zcq100@ubuntu-server:/opt/nginx-0.8.53$
复制代码抱歉,有点长
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关联组件的问题,
如gcc、libevent、zlip、pcre。。
而且fastdfs必须在nginx之前安装。