mod_rewrite with MySQL support
Hi,Yesterday I found a patch for mod_rewrite which does EXACTLY what I want, read this post and you will understand : linux.lesgarsdvierzon.net/mod_rewrite/
The problem is that this patch is for an old version of mod_rewrite (2001), I applied the changes of the patch manually (this was not the problem) on the mod_rewrite.c of an Apache v1.33.
So, the problem is when I compile : I have these errors :
Code:
apxs -c mod_rewrite.c cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=208116 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -DUSE_SETUSERCONTEXT -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -c mod_rewrite.c mod_rewrite.c: In function `lookup_map': mod_rewrite.c:3022: `VAR' undeclared (first use in this function) mod_rewrite.c:3022: (Each undeclared identifier is reported only once mod_rewrite.c:3022: for each function it appears in.) mod_rewrite.c:3023: `TXT' undeclared (first use in this function) mod_rewrite.c:3179: syntax error before `static' mod_rewrite.c:3189: `fp' undeclared (first use in this function) mod_rewrite.c:3189: `file' undeclared (first use in this function) mod_rewrite.c:3193: `line' undeclared (first use in this function) mod_rewrite.c:3196: `cpT' undeclared (first use in this function) mod_rewrite.c:3197: `curkey' undeclared (first use in this function) mod_rewrite.c:3198: `skip' undeclared (first use in this function) mod_rewrite.c:3210: `curval' undeclared (first use in this function) mod_rewrite.c:3212: `accept_several_words' undeclared (first use in this function) mod_rewrite.c:3233: syntax error before `static' mod_rewrite.c:3240: `dbmfp' undeclared (first use in this function) mod_rewrite.c:3244: `dbmkey' undeclared (first use in this function) mod_rewrite.c:3247: `dbmval' undeclared (first use in this function) mod_rewrite.c:3263: syntax error before `static' mod_rewrite.c:3282: `fpin' undeclared (first use in this function) mod_rewrite.c:3282: `fpout' undeclared (first use in this function) mod_rewrite.c:3294: `iov' undeclared (first use in this function) mod_rewrite.c:3303: `c' undeclared (first use in this function) mod_rewrite.c:3307: `buf' undeclared (first use in this function) mod_rewrite.c:3322: syntax error before `static' mod_rewrite.c:3335: `cp' undeclared (first use in this function) mod_rewrite.c: In function `lookup_variable': mod_rewrite.c:3928: warning: assignment of read-only location mod_rewrite.c:3931: warning: assignment of read-only location mod_rewrite.c: At top level: mod_rewrite.h:413: warning: `lookup_map_txtfile' used but never defined mod_rewrite.h:415: warning: `lookup_map_dbmfile' used but never defined mod_rewrite.h:418: warning: `lookup_map_program' used but never defined mod_rewrite.h:421: warning: `lookup_map_internal' used but never defined mod_rewrite.h:422: warning: `rewrite_mapfunc_toupper' used but never defined apxs:Break: Command failed with rc=1 *** Error code 1
Do you know how to make them compilable ? I don't know many things in C or C++. Or, do you know where to find an already patched mod_rewrite, or another stuff which does the same thing ?
Many thanks in advance, I hope you will help me because such a function of mod_rewrite is required for what I want.