|
Subject: Re: mod_python 3.2.1b available for testing Newsgroups: gmane.comp.apache.mod-python.devel Date: 2005-09-07 15:27:13 GMT (2 years, 52 weeks, 23 hours and 39 minutes ago)
Jim Gallacher wrote:
> A new mod_python 3.2 beta tarball is now available for testing. A
> Windows binary for python 2.4 is also provided.
> Please download it, then do the usual
>
> $ ./configure --with-apxs=/wherever/it/is
> $ make
> $ (su)
> # make install
>
> Then (as non-root user!)
>
> $ cd test
> $ python test.py
>
> And see if any tests fail. If they pass, send a +1 to the list, if they
> fail, send the details (the versions of OS, Python and Apache, the test
> output, and suggestions, if any).
-1
Slackware Linux 10.1
Python 2.4.1
Apache 2.1.6 Alpha
To fix:
Before running ./config, remove this from src/filterobject.c:
if (!APR_STATUS_IS_EAGAIN(self->rc) && !APR_STATUS_IS_SUCCESS(self->rc)) {
PyErr_SetObject(PyExc_IOError,
PyString_FromString("Input filter read error"));
return NULL;
}
And remove this from src/connobject.c:
if (! APR_STATUS_IS_SUCCESS(rc)) {
PyErr_SetObject(PyExc_IOError,
PyString_FromString("Connection read error"));
return NULL;
}
Then configure/make/make install/test:
-1
Modify test.py for Apache 2.1.6-alpha, which has replaced mod_auth with
mod_auth_basic:
IfModule("!mod_auth_basic.c",
LoadModule("auth_basic_module %s" %
quoteIfSpace(os.path.join(modpath, "mod_auth_basic.so")))))
Run test.py again:
-1
Now all tests fail with socket error (111, 'Connection refused'). Since
the errors are consistent, this might be an easy fix, I just haven't
figured out the problem, yet.
Anyway, starting Apache normally loads mod_python fine, and I can run a
simple "Hello, World!" module using Publisher.
I know Apache 2.1.6-alpha is still a moving target, but hopefully this
will indicate some potential problems with the forthcoming Apache 2.2.x
stable branch that can be fixed now, such as the (deprecated?)
APR_STATUS_IS_SUCCESS references.
|
|
|