apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56342] cannot build apr with mingw-w64
Date Thu, 19 Jun 2014 08:53:45 GMT

Shane Peelar <lookatyouhacker@gmail.com> changed:

           What    |Removed                     |Added
                 OS|                            |All

--- Comment #1 from Shane Peelar <lookatyouhacker@gmail.com> ---
Can confirm this with MSYS2/MinGW-w64.  I'm getting the exact same build errors
as lhh.

Error snippet:

In file included from
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/ole2.h:17,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/wtypes.h:12,
                 from C:/Users/Shane/Downloads/apr-1.5.1/dso/win32/dso.c:17:
C:/msys64/mingw64/x86_64-w64-mingw32/include/objidl.h:10935:9: error: unknown
type name 'CLIPFORMAT'

>From what I can tell, the problem lies in file dso.c when the header accctrl.h
(windows API header) is imported by include/arch/win32/apr_private.h .  I've
tested accctrl.h out in a small test C program and it compiles fine.  I'm
inclined to believe this is an issue with the way accctrl.h is being included,
as the first error reported indicates that the type CLIPFORMAT is undefined,
yet this type is defined by wtypes.h (or rather, objidl.h which is included
indirectly by wtypes.h), which is included by accctrl.h.  I'll do some more
investigating tomorrow and come up with a patch if I can find the root cause. 
My guess is that somewhere, one of the include guards for some header that
includes objidl.h is being tripped up by a falsely defined macro.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message