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

Graham Dumpleton graham.dumpleton at gmail.com
Fri Feb 8 23:14:02 EST 2008

On 07/02/2008, Denes L <denes1951 at yahoo.ca> wrote:
> I will continue trying to get mod_python to work, but I consider myself
> warned that it might not work.
> So... the compile of _apachemodule.c fails on line 665:
> 665    ci->interpreter = strdup(interpreter);
> CZM0304  No function prototype given for 'strdup'.
> Is that supposed to say apr_pstrdup ?

No, can't use apr_pstrdup() as no pool of adequate scope available at
that point in code.


    ci->interpreter = strdup(interpreter);


    ci->interpreter = (char *)malloc(strlen(interpreter)+1));
    strcpy(ci->interpreter, interpreter);

Does the same thing.


More information about the Mod_python mailing list