Hi

I am doing source compile mod security (2.7.1) on apache 2.2.23...

just doing this..

[root@changeme apache2]# /usr/local/apache2/bin/apxs -I/usr/local/libxml2/include/libxml2 -c -Wc,-fPIC -cia mod_security2.c

/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -fPIC -I/usr/local/libxml2/include/libxml2 -c -o mod_security2.lo mod_security2.c && touch mod_security2.slo
mod_security2.c: In function 'perform_interception':
mod_security2.c:160: warning: comparison is always false due to limited range of data type
mod_security2.c:160: warning: comparison is always false due to limited range of data type
mod_security2.c:169: warning: comparison is always false due to limited range of data type
mod_security2.c:169: warning: comparison is always false due to limited range of data type
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la -rpath /usr/local/apache2/modules -module -avoid-version mod_security2.lo
/usr/bin/ld: .libs/mod_security2.o: relocation R_X86_64_PC32 against `input_filter' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

Pl. someone help me on this. i am clueless... though i am able to compile using configure command, but curious to know, why this ain't running.

-Manish Singh