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

Denes L denes1951 at yahoo.ca
Sat Jan 26 19:12:50 EST 2008


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080126/164e28e7/attachment.html


More information about the Mod_python mailing list