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

Graham Dumpleton graham.dumpleton at gmail.com
Sat Jan 26 23:12:27 EST 2008


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

On 27/01/2008, Denes L <denes1951 at yahoo.ca> wrote:
> Hello all,
>
> I am trying to compile mod_python on an IBM iSeries (AS400)
> with Apache server version: 2.0.52
> and Python 2.3.3 (from www.iseriespython.com).
>
> So far I have put together a bunch of include (source) directories and I
> have fixed a few redefinition errors but I need help with these:
>
> in mod_python.c line 313:
> free(ci->interpreter);
> fails with:
> Function argument assignment between types "void*" and "const unsigned
> char*" is not allowed.
>
> Here is some of the expanded code:
> 310     5 |    if (!idata) {
> 311     6 |        Py_DECREF(ci->handler);
> 311     6 +        if (   --(ci->handler)->ob_refcnt != 0) ; else (
> (*((PyObject
> *)(ci->handler))->ob_type->tp_dealloc)((PyObject
> *)((PyObject *)(ci->handler))));
> 312     9 |        Py_XDECREF(ci->data);
> 312     9 +        if ((ci->data) == ((void *)0)) ; else if (
> --(ci->data)->ob_refcnt != 0) ; else ((*((PyObject
> *)(ci->data))->ob_type->tp_dealloc)((PyObject *)((PyObject
> *)(ci->data))));
> 313    14 |        free(ci->interpreter);
>                           ^ error here
>
> Also, lines:
> 427    val = apr_table_get(conf->options, "mod_python.mutex_locks");
> 458    mutex_dir = apr_table_get(conf->options,
> "mod_python.mutex_directory");
> 540    (same as line 458 above)
> fail with:
> Operation between types "unsigned char*" and "const unsigned char*" is not
> allowed.
>
> Thank you.
>
>
>  ________________________________
>  Looking for the perfect gift? Give the gift of Flickr!
>
>
> _______________________________________________
> 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