On Thu, Oct 8, 2009 at 1:44 PM, Alexander Alfimov <[email protected]> wrote: > Hi! > > I'm trying to compile mod_cache which was checked out from > http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/cache about > an hour ago: > [r...@dev38 mod_cache]# svn info > Path: . > URL: http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/cache > Repository Root: http://svn.apache.org/repos/asf > Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 > Revision: 823208 > Node Kind: directory > Schedule: normal > Last Changed Author: minfrin > Last Changed Rev: 821993 > Last Changed Date: 2009-10-05 16:27:19 -0400 (Mon, 05 Oct 2009) > > I was able to compile mod_cache.c, but got stuck with > mod_disk_cache (mod_cache doesn't seem to be working with the old > mod_disk_cache I had). > > Command I've used: > [r...@dev38 mod_cache]#/usr/sbin/apxs -c mod_disk_cache.c > /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic > -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack- > protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DLINUX=2 - > D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/ > include/apr-1 -I/usr/include/apr-1 -c -o mod_disk_cache.lo > mod_disk_cache.c && touch mod_disk_cache.slo > mod_disk_cache.c: In function 'open_entity': > mod_disk_cache.c:380: error: 'core_dir_config' undeclared (first use > in this function)
Try adding "#define CORE_PRIVATE" inside mod_disk_cache.c prior to the inclusion of header files. What you've encountered is an API difference between httpd 2.2 and 2.3-dev. There may be others that show up at compile, link, or run-time. (Maybe somebody here has actually used recent mod*cache from trunk with 2.2 and can comment.) I guess you're anxious to try a fix that is in svn trunk but not in the 2.2.x branch? I wonder if backporting the individual fix is less troublesome...
