win32 patch

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Mon Jan 2 07:59:04 PST 2012


On Mon, Jan 2, 2012 at 1:01 PM, Stef Walter <stef-list at thewalter.net> wrote:
> On 12/30/2011 10:38 PM, Nikos Mavrogiannopoulos wrote:
>> Hello,
>>  I needed to apply this patch in order to compile p11-kit with mingw64.
>
> Strange. Mike Cronenworth committed something a bit different to make it
> work with mingw64.
> http://cgit.freedesktop.org/p11-glue/p11-kit/commit/?id=336d8af58ea3d00a20a56937b11236a6bf2679dd
> Which versions of p11-kit and mingw64 are you using? I just tested with
> p11-kit master, and mingw64 version 1.0+20110523-1build2 on ubuntu and
> it built fine as is.

Hi,
 Mike asked the same information in private. I use mingw64 20110523 on
ubuntu with p11-kit 0.9. If I use p11-kit-0.9 as distributed I get the
error below (which was occurred also to another builder with mingw64).
If I apply the previous patch I have no issues. In any case those
definitions shouldn't be there because they look like a workaround in
a specific mingw64 release bug. Maybe they should be defined only for
the releases not having them causes problem.

regards,
Nikos

 CC     compat.lo
In file included from private.h:39:0,
                from util.c:42:
compat.h:46:0: warning: "_WIN32_WINNT" redefined [enabled by default]
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/_mingw.h:186:0:
note: this is the location of the previous definition
 CC     conf.lo
 CC     debug.lo
In file included from conf.c:65:0:
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/shlobj.h:15:2:
error: #error _WIN32_IE setting conflicts
 CC     hashmap.lo
In file included from
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/shlobj.h:86:0,
                from conf.c:65:
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/commctrl.h:15:2:
error: #error _WIN32_IE setting conflicts
In file included from
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/shlobj.h:89:0,
                from conf.c:65:
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/shlguid.h:14:2:
error: #error _WIN32_IE setting conflicts
In file included from
/usr/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/include/shlobj.h:99:0,
                from conf.c:65:


More information about the p11-glue mailing list