简体   繁体   English

Apache Mod编译错误:apxs mod_antiloris.c

[英]Apache mod compile error: apxs mod_antiloris.c

Try to install mod_antiloris. 尝试安装mod_antiloris。 Getting compile error, when running the below command: 运行以下命令时出现编译错误:

apxs -a -i -c mod_antiloris.c

Compile Error: 编译错误:

mod_antiloris.c:126:37: error: 'conn_rec' has no member named 'remote_ip' apr_cpystrn(ws_record->client, c->remote_ip, sizeof(ws_record->client)); mod_antiloris.c:126:37:错误: 'conn_rec'没有名为'remote_ip'的成员 apr_cpystrn(ws_record-> client,c-> remote_ip,sizeof(ws_record-> client));

mod_antiloris.c:133:10: warning: passing argument 1 of 'ap_get_scoreboard_worker' makes pointer from integer without a cast [enabled by default] ws_record = ap_get_scoreboard_worker(i, j); mod_antiloris.c:133:10:警告:传递'ap_get_scoreboard_worker'的参数1使指针从整数开始而无需强制转换[默认启用] ws_record = ap_get_scoreboard_worker(i,j);

  • Apache version: Apache/2.4.6 (SLES Expanded Support platform) Apache版本:Apache / 2.4.6(SLES扩展支持平台)
  • O/S Redhat 7.4 操作系统Redhat 7.4

Any advise please? 有什么建议吗?

Thanks Nic 谢谢尼克

It looks like the module is outdated: according to doxygen the existing fields are either client_ip or remote_host . 看起来该模块已过时: 根据doxygen说法,现有字段为client_ipremote_host

Edit: someone posted a patch here . 编辑:有人在这里发布了补丁。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM