nginx插件编译不通过

发布于 2022-10-15 04:42:17 字数 11672 浏览 17 评论 0

本帖最后由 zcq100 于 2011-06-10 11:18 编辑

大家帮我看下,谢谢

  1. /usr/local/include/fdfs_http_shared.h:28: error: expected specifier-qualifier-list before ‘HashArray’
  2. In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
  3. /opt/fastdfs-nginx-module-read-only/src//common.c:27:27: error: local_ip_func.h: No such file or directory
  4. /opt/fastdfs-nginx-module-read-only/src//common.c:28:26: error: trunk_shared.h: No such file or directory
  5. In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
  6. /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_mod_init’:
  7. /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: ‘IniContext’ undeclared (first use in this function)
  8. /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: (Each undeclared identifier is reported only once
  9. /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: for each function it appears in.)
  10. /opt/fastdfs-nginx-module-read-only/src//common.c:47: error: expected ‘;’ before ‘iniContext’
  11. /opt/fastdfs-nginx-module-read-only/src//common.c:54: error: too few arguments to function ‘log_init’
  12. cc1: warnings being treated as errors
  13. /opt/fastdfs-nginx-module-read-only/src//common.c:55: error: implicit declaration of function ‘trunk_shared_init’
  14. /opt/fastdfs-nginx-module-read-only/src//common.c:57: error: implicit declaration of function ‘iniLoadFromFile’
  15. /opt/fastdfs-nginx-module-read-only/src//common.c:57: error: ‘iniContext’ undeclared (first use in this function)
  16. /opt/fastdfs-nginx-module-read-only/src//common.c:67: error: implicit declaration of function ‘storage_load_paths_from_conf_file’
  17. /opt/fastdfs-nginx-module-read-only/src//common.c:72: error: ‘g_fdfs_connect_timeout’ undeclared (first use in this function)
  18. /opt/fastdfs-nginx-module-read-only/src//common.c:73: error: ‘DEFAULT_CONNECT_TIMEOUT’ undeclared (first use in this function)
  19. /opt/fastdfs-nginx-module-read-only/src//common.c:72: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
  20. /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  21. /opt/fastdfs-nginx-module-read-only/src//common.c:79: error: ‘g_fdfs_network_timeout’ undeclared (first use in this function)
  22. /opt/fastdfs-nginx-module-read-only/src//common.c:79: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
  23. /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  24. /opt/fastdfs-nginx-module-read-only/src//common.c:86: error: too few arguments to function ‘load_log_level’
  25. /opt/fastdfs-nginx-module-read-only/src//common.c:88: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
  26. /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  27. /opt/fastdfs-nginx-module-read-only/src//common.c:91: error: implicit declaration of function ‘log_set_filename’
  28. /opt/fastdfs-nginx-module-read-only/src//common.c:97: error: implicit declaration of function ‘fdfs_load_tracker_group_ex’
  29. /opt/fastdfs-nginx-module-read-only/src//common.c:97: error: ‘g_tracker_group’ undeclared (first use in this function)
  30. /opt/fastdfs-nginx-module-read-only/src//common.c:104: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
  31. /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  32. /opt/fastdfs-nginx-module-read-only/src//common.c:107: error: passing argument 2 of ‘iniGetBoolValue’ from incompatible pointer type
  33. /usr/local/include/ini_file_reader.h:48: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  34. /opt/fastdfs-nginx-module-read-only/src//common.c:109: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
  35. /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  36. /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
  37. /usr/local/include/fdfs_http_shared.h:50: note: expected ‘int’ but argument is of type ‘char *’
  38. /opt/fastdfs-nginx-module-read-only/src//common.c:128: error: passing argument 3 of ‘fdfs_http_params_load’ from incompatible pointer type
  39. /usr/local/include/fdfs_http_shared.h:50: note: expected ‘const char *’ but argument is of type ‘struct FDFSHTTPParams *’
  40. /opt/fastdfs-nginx-module-read-only/src//common.c:128: error: too few arguments to function ‘fdfs_http_params_load’
  41. /opt/fastdfs-nginx-module-read-only/src//common.c:134: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
  42. /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  43. /opt/fastdfs-nginx-module-read-only/src//common.c:143: error: passing argument 2 of ‘iniGetStrValue’ from incompatible pointer type
  44. /usr/local/include/ini_file_reader.h:36: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  45. /opt/fastdfs-nginx-module-read-only/src//common.c:146: error: ‘g_if_alias_prefix’ undeclared (first use in this function)
  46. /opt/fastdfs-nginx-module-read-only/src//common.c:156: error: implicit declaration of function ‘iniFreeContext’
  47. /opt/fastdfs-nginx-module-read-only/src//common.c:162: error: implicit declaration of function ‘load_local_host_ip_addrs’
  48. /opt/fastdfs-nginx-module-read-only/src//common.c:185: error: ‘g_fdfs_base_path’ undeclared (first use in this function)
  49. /opt/fastdfs-nginx-module-read-only/src//common.c:188: error: ‘g_local_host_ip_count’ undeclared (first use in this function)
  50. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘need_find_content_type’
  51. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘default_content_type’
  52. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_ttl’
  53. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘anti_steal_secret_key’
  54. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
  55. /opt/fastdfs-nginx-module-read-only/src//common.c:165: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
  56. /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_http_request_handler’:
  57. /opt/fastdfs-nginx-module-read-only/src//common.c:256: error: ‘FDFSFileInfo’ undeclared (first use in this function)
  58. /opt/fastdfs-nginx-module-read-only/src//common.c:256: error: expected ‘;’ before ‘file_info’
  59. /opt/fastdfs-nginx-module-read-only/src//common.c:260: error: ‘FDFSTrunkFullInfo’ undeclared (first use in this function)
  60. /opt/fastdfs-nginx-module-read-only/src//common.c:260: error: expected ‘;’ before ‘trunkInfo’
  61. /opt/fastdfs-nginx-module-read-only/src//common.c:261: error: ‘FDFSTrunkHeader’ undeclared (first use in this function)
  62. /opt/fastdfs-nginx-module-read-only/src//common.c:261: error: expected ‘;’ before ‘trunkHeader’
  63. /opt/fastdfs-nginx-module-read-only/src//common.c:355: error: ‘FDFSHTTPParams’ has no member named ‘anti_steal_secret_key’
  64. /opt/fastdfs-nginx-module-read-only/src//common.c:355: error: ‘FDFSHTTPParams’ has no member named ‘token_ttl’
  65. /opt/fastdfs-nginx-module-read-only/src//common.c:359: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
  66. /opt/fastdfs-nginx-module-read-only/src//common.c:361: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
  67. /opt/fastdfs-nginx-module-read-only/src//common.c:362: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_content_type’
  68. /opt/fastdfs-nginx-module-read-only/src//common.c:365: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
  69. /opt/fastdfs-nginx-module-read-only/src//common.c:367: error: ‘FDFSHTTPParams’ has no member named ‘token_check_fail_buff’
  70. /opt/fastdfs-nginx-module-read-only/src//common.c:384: error: implicit declaration of function ‘storage_split_filename_ex’
  71. /opt/fastdfs-nginx-module-read-only/src//common.c:397: error: implicit declaration of function ‘fdfs_get_file_info_ex1’
  72. /opt/fastdfs-nginx-module-read-only/src//common.c:397: error: ‘file_info’ undeclared (first use in this function)
  73. In file included from /opt/fastdfs-nginx-module-read-only/src//ngx_http_fastdfs_module.c:6:
  74. /opt/fastdfs-nginx-module-read-only/src//common.c:431: error: implicit declaration of function ‘trunk_file_stat’
  75. /opt/fastdfs-nginx-module-read-only/src//common.c:432: error: ‘trunkInfo’ undeclared (first use in this function)
  76. /opt/fastdfs-nginx-module-read-only/src//common.c:432: error: ‘trunkHeader’ undeclared (first use in this function)
  77. /opt/fastdfs-nginx-module-read-only/src//common.c:447: error: implicit declaration of function ‘is_local_host_ip’
  78. /opt/fastdfs-nginx-module-read-only/src//common.c:529: error: ‘FDFSHTTPParams’ has no member named ‘need_find_content_type’
  79. /opt/fastdfs-nginx-module-read-only/src//common.c:588: error: implicit declaration of function ‘STORAGE_IS_TRUNK_FILE’
  80. /opt/fastdfs-nginx-module-read-only/src//common.c:591: error: implicit declaration of function ‘trunk_get_full_filename’
  81. /opt/fastdfs-nginx-module-read-only/src//common.c:594: error: implicit declaration of function ‘TRUNK_FILE_START_OFFSET’
  82. /opt/fastdfs-nginx-module-read-only/src//common.c:600: error: ‘g_fdfs_store_paths’ undeclared (first use in this function)
  83. /opt/fastdfs-nginx-module-read-only/src//common.c:625: error: implicit declaration of function ‘STRERROR’
  84. /opt/fastdfs-nginx-module-read-only/src//common.c: In function ‘fdfs_get_params_from_tracker’:
  85. /opt/fastdfs-nginx-module-read-only/src//common.c:667: error: ‘IniContext’ undeclared (first use in this function)
  86. /opt/fastdfs-nginx-module-read-only/src//common.c:667: error: expected ‘;’ before ‘iniContext’
  87. /opt/fastdfs-nginx-module-read-only/src//common.c:672: error: implicit declaration of function ‘fdfs_get_ini_context_from_tracker’
  88. /opt/fastdfs-nginx-module-read-only/src//common.c:672: error: ‘g_tracker_group’ undeclared (first use in this function)
  89. /opt/fastdfs-nginx-module-read-only/src//common.c:673: error: ‘iniContext’ undeclared (first use in this function)
  90. /opt/fastdfs-nginx-module-read-only/src//common.c:678: error: passing argument 2 of ‘iniGetIntValue’ from incompatible pointer type
  91. /usr/local/include/ini_file_reader.h:41: note: expected ‘struct IniItemInfo *’ but argument is of type ‘char *’
  92. make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
  93. make[1]: Leaving directory `/opt/nginx-0.8.53'
  94. make: *** [build] Error 2
  95. zcq100@ubuntu-server:/opt/nginx-0.8.53$

复制代码抱歉,有点长

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬シ愛 2022-10-22 04:42:17

关联组件的问题,
如gcc、libevent、zlip、pcre。。
而且fastdfs必须在nginx之前安装。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文