Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    32

    Problem with mod_evasive installation

    Hello,

    We are having problem with installing mod_evasive on our server. We tried installing it on our Virtual Machine that runs Fedora 7 (on our server, we have Fedora core 5), and on Virtual Machine it is fine, we can compile it and put it in our Apache2 conf file.

    However, when we try

    Code:
    [root@ mod_evasive]# /usr/local/psa/admin/bin/apxs -i -a -c mod_evasive20.c
    on the server, we get a

    [root@ mod_evasive]# /usr/local/psa/admin/bin/apxs -i -a -c mod_evasive20.c
    gcc -DHARD_SERVER_LIMIT=512 -DDEFAULT_PATH="/usr/local/psa/admin/bin:/bin:/usr/bin" -DLINUX=22 -DTARGET="httpsd" -DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DMOD_SSL=208122 -DEAPI -O -pipe -I/usr/include -O3 -fexpensive-optimizations -fstrength-reduce -pipe -DPLESK_Linux -I/home/builder/buildbot/psa-8.2.1-bfc7/build/plesk/lib/dist/include/libxml2 -W -Wall -DPLESK_Linux -I/home/builder/buildbot/psa-8.2.1-bfc7/build/plesk/plesk-utils/include -DBSG_CR -DBSG_MSG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_RPM -DUSE_SLEEP_ON_IDLE -Wno-unused-parameter -fpic -DSHARED_MODULE -I/usr/local/psa/admin/include -c mod_evasive20.c
    mod_evasive20.c:41: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚evasive20_module‚
    mod_evasive20.c:113: error: expected ‚)‚ before ‚*‚ token
    mod_evasive20.c: In function ‚access_checker‚:
    mod_evasive20.c:212: warning: format ‚%ld‚ expects type ‚long int‚, but argument 3 has type ‚__pid_t‚
    mod_evasive20.c:248: warning: passing argument 5 of ‚ap_log_rerror‚ from incompatible pointer type
    mod_evasive20.c: At top level:
    mod_evasive20.c:297: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚destroy_hit_list‚
    mod_evasive20.c: In function ‚ntt_create‚:
    mod_evasive20.c:353: warning: comparison between signed and unsigned
    mod_evasive20.c: At top level:
    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: warning: missing initializer
    mod_evasive20.c:670: warning: (near initialization for ‚access_cmds[0].name‚)
    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:682: warning: missing initializer
    mod_evasive20.c:682: warning: (near initialization for ‚access_cmds[1].name‚)
    mod_evasive20.c:684: error: expected ‚)‚ before ‚*‚ token
    mod_evasive20.c:689: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚evasive20_module‚
    apxs:Break: Command failed with rc=1


    Any help would be appreciated.

    Cheers

  2. #2
    Join Date
    Jan 2006
    Location
    Europe
    Posts
    50
    Hi,
    try
    Code:
    which apxs
    and replace your '/usr/local/psa/admin/bin/apxs' ,
    this should help


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •