[mod_python] compile mod_python on iSeries (AS/400)

Graham Dumpleton graham.dumpleton at gmail.com
Mon Jan 28 17:49:09 EST 2008


On 29/01/2008, Denes L <denes1951 at yahoo.ca> wrote:
> Thanks for the suggestion Graham, I forgot to mention that I was using
> mod_python 3.2.10.
>
> Now with 3.3.1 I get one error on line 826 as follows:
>
> 825    APR_REGISTER_OPTIONAL_FN(mp_acquire_interpreter);
> 825    do { apr_OFN_mp_acquire_interpreter_t *apu__opt =
> mp_acquire_interpreter;
> apr_dynamic_fn_register("mp_acquire_interpreter",(apr_opt_fn_t
> *)apu__opt); } while (0);
> 826    APR_REGISTER_OPTIONAL_FN(mp_release_interpreter);
> 826    do { apr_OFN_mp_release_interpreter_t *apu__opt =
> mp_release_interpreter;
> apr_dynamic_fn_register("mp_release_interpreter",(apr_opt_fn_t
> *)apu__opt); } while (0);
> Initialization between types "void*(*)()" and "void(*)(void)" is not
> allowed.

Hmmm, that is actually a bug in the mod_python code.

In src/include/mod_python.h.in (NOTE the extension is .h.in, not just
.h), change:

APR_DECLARE_OPTIONAL_FN(void *, mp_release_interpreter, ());

to:

APR_DECLARE_OPTIONAL_FN(void, mp_release_interpreter, ());

You should do a make distclean and rerun configure.

Graham

> Graham Dumpleton <graham.dumpleton at gmail.com> wrote:
>  Try with mod_python 3.3.1. You appear to be using an older version of
> mod_python source code. The 3.3.1 source code specifically has:
>
>  free((void *)ci->interpreter);
>
> so shouldn't get that first error.
>
> Graham
>
>
>  ________________________________
> Be smarter than spam. See how smart SpamGuard is at giving junk email the
> boot with the All-new Yahoo! Mail
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>


More information about the Mod_python mailing list