mod_evasive ERROR [RESOLVIDO]

1. mod_evasive ERROR [RESOLVIDO]

Mauro da fontoura
maurofontoura

(usa CentOS)

Enviado em 04/03/2014 - 14:53h

Ola Pessoal
To instalando o mod_evasive no apache e dá o seguinte erro!


/usr/share/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/include/apr-1 -I/usr//include/apr-1 -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
mod_evasive20.c: In function 'access_checker':
mod_evasive20.c:142:39: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:146:43: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:158:56: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:165:47: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:180:58: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:187:47: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:208:117: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:212:13: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
mod_evasive20.c:215:13: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:221:78: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:222:81: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:228:81: error: 'conn_rec' has no member named 'remote_ip'
apxs:Error: Command failed with rc=65536
.



Como posso resolver
Abracos


  


2. Re: mod_evasive ERROR [RESOLVIDO]

Mauro da fontoura
maurofontoura

(usa CentOS)

Enviado em 04/03/2014 - 18:34h

As remote_ip has been changed to client_ip (in this case), perform the following:

1
2
cp mod_evasive{20,24}.c
sed s/remote_ip/client_ip/g -i mod_evasive24.c







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts