Hi,
I have a few problems with mp 2.0.3 against the http2 trunk.
1)
/home/mrstlee/Projects/mod_perl-2.0.3/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:157:
structure has no member named `ap_auth_type'
/home/mrstlee/Projects/mod_perl-2.0.3/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:158:
structure has no member named `ap_auth_type'
/home/mrstlee/Projects/mod_perl-2.0.3/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:160:
structure has no member named `ap_auth_name'
/home/mrstlee/Projects/mod_perl-2.0.3/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:161:
structure has no member named `ap_auth_name'
So I change that:
--- xs/Apache2/RequestUtil/Apache2__RequestUtil.h Fri Nov 9 12:31:27 2007
+++
/home/mrstlee/Projects/mod_perl-2.0.3/xs/Apache2/RequestUtil/Apache2__RequestUtil.h
Sun Nov 19 23:31:03 2006
@@ -149,20 +149,16 @@
int i;
for (i=0; i<num_sec; i++) {
- char * auth_type;
- char * auth_name;
core_dir_config *entry =
(core_dir_config *)ap_get_module_config(sec[i],
&core_module);
- auth_type = (char *) ap_auth_type(r);
- auth_name = (char *) ap_auth_name(r);
if (strEQ(entry->d, location)) {
- if (!auth_type) {
- auth_type = "Basic";
+ if (!entry->ap_auth_type) {
+ entry->ap_auth_type = "Basic";
}
- if (!auth_name) {
- auth_name = apr_pstrdup(p, location);
+ if (!entry->ap_auth_name) {
+ entry->ap_auth_name = apr_pstrdup(p, location);
}
r->per_dir_config =
ap_merge_per_dir_configs(p, s->lookup_defaults, sec[i]);
2) It builds OK. But then with make test:
/opt/apache2-udp/bin/aps-udp: relocation error:
/home/mrstlee/Projects/mod_perl-2.0.3/blib/arch/auto/Apache2/ServerUtil/ServerUtil.so:
undefined symbol: ap_get_server_version
I see in the httpd comments that ap_get_server_version has been
replaced with get_server_description or get_server_banner.
3) So I change get_server_version to get_server_description. This
seems to go OK - make test now builds and runs. But access2 fails.
When I look at the error log:
no authorization providers configured
Presumably this is due to the way the auth stuff has changed in
Apache2__RequestUtil.h?
Does anyone know what I need to do here?
Thanks,
Rolf