Hi,
also bei mir geht es irgend wie nicht...
Ich habe Apache2, der installationsbefehl aus der README funktioniert nicht, habe daher den Rat befolgt und: "apache-dev" sowie "apache2-dev" (müsste eher die richtige Version sein) installiert.
Geht immer nicht: "Run $APACHE_ROOT/bin/apxs -i -a -c mod_evasive20.c
-bash: Run: command not found
Dann habe ich den von: "
http://nodomain.cc/archives/2005/11/10/ ... etzen.html" ausprobiert: "apxs -iac mod_evasive20.c" und dabei bekomme ich folgende Fehler:
gcc -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1 -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_MODULE -I/usr/include/apache-1.3 -c mod_evasive20.c
mod_evasive20.c:41: error: syntax error before "evasive20_module"
mod_evasive20.c:41: warning: type defaults to `int' in declaration of `evasive20_module'
mod_evasive20.c:41: warning: data definition has no type or storage class
mod_evasive20.c:113: error: syntax error before '*' token
mod_evasive20.c: In function `access_checker':
mod_evasive20.c:212: warning: long int format, __pid_t arg (arg 3)
mod_evasive20.c:248: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_evasive20.c: At top level:
mod_evasive20.c:297: error: syntax error before "destroy_hit_list"
mod_evasive20.c:297: warning: return type defaults to `int'
mod_evasive20.c:651: warning: implicit declaration of function `AP_INIT_TAKE1'
mod_evasive20.c:652: warning: missing braces around initializer
mod_evasive20.c:652: warning: (near initialization for `access_cmds[0]')
mod_evasive20.c:652: error: initializer element is not constant
mod_evasive20.c:652: error: (near initialization for `access_cmds[0].name')
mod_evasive20.c:655: error: initializer element is not constant
mod_evasive20.c:655: error: (near initialization for `access_cmds[0].func')
mod_evasive20.c:658: error: initializer element is not constant
mod_evasive20.c:658: error: (near initialization for `access_cmds[0].cmd_data')
mod_evasive20.c:661: error: initializer element is not constant
mod_evasive20.c:661: error: (near initialization for `access_cmds[0].req_override')
mod_evasive20.c:664: error: initializer element is not constant
mod_evasive20.c:664: error: (near initialization for `access_cmds[0].args_how')
mod_evasive20.c:667: error: initializer element is not constant
mod_evasive20.c:667: error: (near initialization for `access_cmds[0].errmsg')
mod_evasive20.c:670: error: initializer element is not constant
mod_evasive20.c:670: error: (near initialization for `access_cmds[0]')
mod_evasive20.c:670: error: initializer element is not constant
mod_evasive20.c:670: error: (near initialization for `access_cmds[1].name')
mod_evasive20.c:673: error: initializer element is not constant
mod_evasive20.c:673: error: (near initialization for `access_cmds[1].func')
mod_evasive20.c:676: error: initializer element is not constant
mod_evasive20.c:676: error: (near initialization for `access_cmds[1].cmd_data')
mod_evasive20.c:678: warning: implicit declaration of function `AP_INIT_ITERATE'
mod_evasive20.c:679: error: initializer element is not constant
mod_evasive20.c:679: error: (near initialization for `access_cmds[1].req_override')
mod_evasive20.c:681: warning: braces around scalar initializer
mod_evasive20.c:681: warning: (near initialization for `access_cmds[1].args_how')
mod_evasive20.c:681: error: incompatible types in initialization
mod_evasive20.c:681: error: initializer element is not constant
mod_evasive20.c:681: error: (near initialization for `access_cmds[1].args_how')
mod_evasive20.c:681: error: initializer element is not constant
mod_evasive20.c:681: error: (near initialization for `access_cmds[1].args_how')
mod_evasive20.c:682: error: initializer element is not constant
mod_evasive20.c:682: error: (near initialization for `access_cmds[1]')
mod_evasive20.c:684: error: syntax error before '*' token
mod_evasive20.c: In function `register_hooks':
mod_evasive20.c:685: warning: implicit declaration of function `ap_hook_access_checker'
mod_evasive20.c:685: error: `APR_HOOK_MIDDLE' undeclared (first use in this function)
mod_evasive20.c:685: error: (Each undeclared identifier is reported only once
mod_evasive20.c:685: error: for each function it appears in.)
mod_evasive20.c:686: warning: implicit declaration of function `apr_pool_cleanup_register'
mod_evasive20.c:686: error: `p' undeclared (first use in this function)
mod_evasive20.c:686: error: `apr_pool_cleanup_null' undeclared (first use in this function)
mod_evasive20.c: At top level:
mod_evasive20.c:689: error: syntax error before "evasive20_module"
mod_evasive20.c:689: warning: type defaults to `int' in declaration of `evasive20_module'
mod_evasive20.c:691: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
mod_evasive20.c:691: error: initializer element is not constant
mod_evasive20.c:691: error: (near initialization for `evasive20_module')
mod_evasive20.c:692: warning: excess elements in scalar initializer
mod_evasive20.c:692: warning: (near initialization for `evasive20_module')
mod_evasive20.c:693: warning: excess elements in scalar initializer
mod_evasive20.c:693: warning: (near initialization for `evasive20_module')
mod_evasive20.c:694: warning: excess elements in scalar initializer
mod_evasive20.c:694: warning: (near initialization for `evasive20_module')
mod_evasive20.c:695: warning: excess elements in scalar initializer
mod_evasive20.c:695: warning: (near initialization for `evasive20_module')
mod_evasive20.c:696: warning: excess elements in scalar initializer
mod_evasive20.c:696: warning: (near initialization for `evasive20_module')
mod_evasive20.c:698: warning: excess elements in scalar initializer
mod_evasive20.c:698: warning: (near initialization for `evasive20_module')
mod_evasive20.c:698: warning: data definition has no type or storage class
apxs:Break: Command failed with rc=1
thx