bw_mod v0.6, Compiling..
I have Apache 2.0.52Centos 4.1
in root.. made the dir /bw so that's where I'm working from.
first step
Code:
libtool --silent --mode=compile gcc -g -O2 -pthread -DLINUX=2 \ -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE \ -I/usr/include/httpd \ -I/usr/include/apr-0 -Wall -g\ -prefer-pic -c bw_mod-0.6.c && touch bw_mod-0.6.slo
Then outputs a world of hurt..
Code:
bw_mod-0.6.c:282: warning: implicit declaration of function `strlen' bw_mod-0.6.c:282: error: `file' undeclared (first use in this function) bw_mod-0.6.c:285: error: `bw' undeclared (first use in this function) bw_mod-0.6.c:290: error: `size' undeclared (first use in this function) bw_mod-0.6.c:307: error: `NULL' undeclared (first use in this function) bw_mod-0.6.c: In function `in_domain': bw_mod-0.6.c:333: warning: implicit declaration of function `strcasecmp' bw_mod-0.6.c: In function `in_ip': ... more.. bw_mod-0.6.c:943: warning: (near initialization for `bw_module') bw_mod-0.6.c:944: warning: excess elements in scalar initializer bw_mod-0.6.c:944: warning: (near initialization for `bw_module') bw_mod-0.6.c:945: warning: excess elements in scalar initializer bw_mod-0.6.c:945: warning: (near initialization for `bw_module') bw_mod-0.6.c:946: warning: excess elements in scalar initializer bw_mod-0.6.c:946: warning: (near initialization for `bw_module') bw_mod-0.6.c:947: warning: excess elements in scalar initializer bw_mod-0.6.c:947: warning: (near initialization for `bw_module') bw_mod-0.6.c:949: warning: excess elements in scalar initializer bw_mod-0.6.c:949: warning: (near initialization for `bw_module') bw_mod-0.6.c:949: warning: data definition has no type or storage class bw_mod-0.6.c:94: error: storage size of `wait' isn't known
As the code to compile, the dir/file doesn't exist /usr/include/httpd what does this refer to?
Same with /usr/include/apr-0