apache2 httpd 2.4.2 - mod_evasive

Bjarne D Mathiesen macintosh at mathiesen.info
Fri Apr 27 18:46:49 PDT 2012


fails to build

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
-------------- next part --------------
version:1
:msg:clean --->  Computing dependencies for mod_evasive:info:clean .:debug:clean Searching for dependency: apache2
:debug:clean Found Dependency: receipt exists for apache2
:msg:clean 
:debug:main Executing org.macports.main (mod_evasive)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 508
:debug:main euid changed to: 508
:debug:archivefetch archivefetch phase started at Sat Apr 28 03:28:55 CEST 2012
:msg:archivefetch --->  Fetching archive for mod_evasive
:debug:archivefetch Executing org.macports.archivefetch (mod_evasive)
:debug:archivefetch Can't run archivefetch on this port without elevated privileges. Escalating privileges back to root.
:debug:archivefetch euid changed to: 0. egid changed to: 0.
:debug:archivefetch changing euid/egid - current euid: 0 - current egid: 0
:debug:archivefetch egid changed to: 508
:debug:archivefetch euid changed to: 508
:info:archivefetch --->  mod_evasive-1.10.1_0+apache2.darwin_11.x86_64.tbz2 doesn't seem to exist in /macports/var/macports/software/mod_evasive
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Sat Apr 28 03:28:55 CEST 2012
:notice:fetch --->  Fetching mod_evasive
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /macports/var/macports/distfiles/mod_evasive to macports
:debug:fetch euid/egid changed to: 508/508
:debug:fetch Executing org.macports.fetch (mod_evasive)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Apr 28 03:28:55 CEST 2012
:notice:checksum --->  Verifying checksum(s) for mod_evasive
:debug:checksum Executing org.macports.checksum (mod_evasive)
:info:checksum --->  Checksumming mod_evasive_1.10.1.tar.gz
:debug:checksum Correct (sha1) checksum for mod_evasive_1.10.1.tar.gz
:debug:checksum Correct (rmd160) checksum for mod_evasive_1.10.1.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Sat Apr 28 03:28:55 CEST 2012
:notice:extract --->  Extracting mod_evasive
:debug:extract Executing org.macports.extract (mod_evasive)
:info:extract --->  Extracting mod_evasive_1.10.1.tar.gz
:debug:extract setting option extract.args to '/macports/var/macports/distfiles/mod_evasive/mod_evasive_1.10.1.tar.gz'
:debug:extract Environment: CPATH='/macports/include' CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/macports/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' GI_SCANNER_DISABLE_CACHE='1'
:debug:extract Assembled command: 'cd "/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work" && /usr/bin/gzip -dc '/macports/var/macports/distfiles/mod_evasive/mod_evasive_1.10.1.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work" && /usr/bin/gzip -dc '/macports/var/macports/distfiles/mod_evasive/mod_evasive_1.10.1.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work to macports
:debug:extract euid/egid changed to: 508/508
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Sat Apr 28 03:28:55 CEST 2012
:debug:patch Executing org.macports.patch (mod_evasive)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Sat Apr 28 03:28:55 CEST 2012
:notice:configure --->  Configuring mod_evasive
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (mod_evasive)
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sat Apr 28 03:28:55 CEST 2012
:notice:build --->  Building mod_evasive
:debug:build Executing org.macports.build (mod_evasive)
:debug:build Environment: CPATH='/macports/include' CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/macports/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' GI_SCANNER_DISABLE_CACHE='1'
:debug:build Assembled command: 'cd "/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work/mod_evasive" && /macports/apache2/bin/apxs -c -S SYSCONFDIR=/macports/apache2/conf/standard -S TARGET=11111-dso -o mod_evasive20.so mod_evasive20.c'
:debug:build Executing command line:  cd "/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work/mod_evasive" && /macports/apache2/bin/apxs -c -S SYSCONFDIR=/macports/apache2/conf/standard -S TARGET=11111-dso -o mod_evasive20.so mod_evasive20.c 
:info:build /macports/share/apr-1/build/libtool --silent --mode=compile --tag=CC /usr/bin/clang -prefer-pic -pipe -O2 -arch x86_64  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -DDARWIN_10 -I/usr/include/libxml2 -I/macports/apache2/include  -I/macports/include/apr-1   -I/macports/include/apr-1 -I/macports/include  -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
:info:build clang: warning: argument unused during compilation: '-no-cpp-precomp'
:info:build mod_evasive20.c:118:1: warning: control reaches end of non-void function [-Wreturn-type]
:info:build }
:info:build ^
:info:build mod_evasive20.c:142:41: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build       if (is_whitelisted(r->connection->remote_ip)) 
:info:build                          ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:146:45: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build       n = ntt_find(hit_list, r->connection->remote_ip);
:info:build                              ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:158:58: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build         snprintf(hash_key, 2048, "%s_%s", r->connection->remote_ip, r->uri);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
:info:build /usr/include/secure/_stdio.h:58:62: note: expanded from macro 'snprintf'
:info:build   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
:info:build                                                              ^
:info:build mod_evasive20.c:165:49: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build             ntt_insert(hit_list, r->connection->remote_ip, time(NULL));
:info:build                                  ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:180:60: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build         snprintf(hash_key, 2048, "%s_SITE", r->connection->remote_ip);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
:info:build /usr/include/secure/_stdio.h:58:62: note: expanded from macro 'snprintf'
:info:build   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
:info:build                                                              ^
:info:build mod_evasive20.c:187:49: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build             ntt_insert(hit_list, r->connection->remote_ip, time(NULL));
:info:build                                  ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:208:119: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build         snprintf(filename, sizeof(filename), "%s/dos-%s", log_dir != NULL ? log_dir : DEFAULT_LOG_DIR, r->connection->remote_ip);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
:info:build /usr/include/secure/_stdio.h:58:62: note: expanded from macro 'snprintf'
:info:build   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
:info:build                                                              ^
:info:build mod_evasive20.c:212:36: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
:info:build             fprintf(file, "%ld\n", getpid());
:info:build                                    ^
:info:build mod_evasive20.c:212:30: warning: conversion specifies type 'long' but the argument has type 'int' [-Wformat]
:info:build             fprintf(file, "%ld\n", getpid());
:info:build                            ~~^     ~~~~~~~~
:info:build                            %d
:info:build mod_evasive20.c:215:92: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build             LOG(LOG_ALERT, "Blacklisting address %s: possible DoS attack.", r->connection->remote_ip);
:info:build             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
:info:build mod_evasive20.c:46:82: note: expanded from macro 'LOG'
:info:build #define  LOG( A, ... ) { openlog("mod_evasive", LOG_PID, LOG_DAEMON); syslog( A, __VA_ARGS__ ); closelog(); }
:info:build                                                                                  ^
:info:build mod_evasive20.c:221:80: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build                 fprintf(file, "Subject: HTTP BLACKLIST %s\n\n", r->connection->remote_ip);
:info:build                                                                 ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:222:83: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build                 fprintf(file, "mod_evasive HTTP Blacklisted %s\n", r->connection->remote_ip);
:info:build                                                                    ~~~~~~~~~~~~~  ^
:info:build mod_evasive20.c:228:83: error: no member named 'remote_ip' in 'struct conn_rec'
:info:build               snprintf(filename, sizeof(filename), system_command, r->connection->remote_ip);
:info:build               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
:info:build /usr/include/secure/_stdio.h:58:62: note: expanded from macro 'snprintf'
:info:build   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
:info:build                                                              ^
:info:build 3 warnings and 11 errors generated.
:info:build apxs:Error: Command failed with rc=65536
:info:build .
:info:build shell command " cd "/macports/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/work/mod_evasive" && /macports/apache2/bin/apxs -c -S SYSCONFDIR=/macports/apache2/conf/standard -S TARGET=11111-dso -o mod_evasive20.so mod_evasive20.c " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for mod_evasive): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for mod_evasive is at: /macports/var/macports/logs/_Volumes_Bjarne_WebServer_MacPorts_newPorts_www_mod_evasive/mod_evasive/main.log


More information about the macports-dev mailing list