You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Valentine Sinitsyn <e_...@inbox.ru> on 2004/11/22 16:27:23 UTC
Re[4]: [users@httpd] mod_filter and apache-2.0
>> I tried the patch you suggested. Now httpd itself compiled just fine,
>> but 'apxs -a -c -i mod_filter.c' failed. This was because "enum {...}
>> dispatch;" was found twice: in util_filter.h (struct ap_filter_rec_t)
>> and in mod_filter.c itself (in struct ap_filter_provider_t).
>
> Thanks, that's useful. It tells me I've failed to keep the util_filter
> patch in sync with mod_filter updates. I'll try and xreference it to
> current source once I've figured out the switch of my local apache
> source tree from cvs to svn.
>
>> In case you will be interested in, I'm sending patches for
>> util_filter.h (merged with yours util-2.0-patch) and mod_filter.c.
>> Please note that they should be applied with -R flag
>
> Right. I'll just add that to the page for now.
Just a small correction: my util-2.0-patch is not for a CVS version of
util_filter.h but rather for apache-2.0.52. Original patch does not
work for it (although it is supposed to be), because it defines
/** Dispatch criteria for filter providers */
enum {
HANDLER,
REQUEST_HEADERS,
RESPONSE_HEADERS,
SUBPROCESS_ENV,
CONTENT_TYPE
} dispatch ;
as a part of ap_filter_rec_t structure. The same enum with the same
name is found in mod_filter.c (MAIN CVS branch) in ap_filter_provider_t
structure. I suppose your patch became broken with mod_filter.c Revision
1.20, when ap_filter_provider_t was moved back out of public API.
However, this means nothing bad for Apache 2.1 since ap_filter_rec_t there is
different and does not contain "enum {...} dispatch;"
I've solved this problem by pulling "enum {} dispatch;" out of
ap_filter_rec_t in apache-2.0.52's util_filer.h, typedef'ing it and
referencing in both mod_filter.c's ap_provider_rec_t and util_filter.h's
ap_filter_rec_t by a given name (that's what my patches are all about).
These modifications are 2.1-compatible: you should be able to
compile patched in this way mod_filter.c with util_filter.h from CVS and, still,
after patching util_filter.h from APACHE_2_0 branch you should be able
to build mod_filter in 2.0.x.
P.S. The odd behavior I experienced earlier seemed to vanish after I
recompiled mod_filer with NO_PROTOCOL defined. I'll test it
extensively tomorrow and post results here.
Regards,
Valentine
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org