[New-bugs-announce] [issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

Vitaly Murashev report at bugs.python.org
Sun Sep 25 06:48:03 EDT 2016

New submission from Vitaly Murashev:

Attempt to complile Python/dynload_win.c by MinGW fails
due to static reimplementation of strcasecmp function in this file:

/* Case insensitive string compare, to avoid any dependencies on particular
   C RTL implementations */

static int strcasecmp (char *string1, char *string2)
    int first, second;

    do {
        first  = tolower(*string1);
        second = tolower(*string2);
    } while (first && first == second);

    return (first - second);

And this reimplementation clashed with native declaration of strcasecmp()
which one is a part of MinGW runtime

So suggested patch (for 3.5.2 and 2.7.12)
just disables static reimplementation of strcasecmp for MinGW

components: Build
files: dynload_win.c.3.5.mingw.patch
keywords: patch
messages: 277362
nosy: vmurashev
priority: normal
severity: normal
status: open
title: [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp
Added file: http://bugs.python.org/file44808/dynload_win.c.3.5.mingw.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list