You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2014/04/03 05:43:46 UTC
[Bug 56342] New: cannot build apr with mingw-w64
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Bug ID: 56342
Summary: cannot build apr with mingw-w64
Product: APR
Version: HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: lhh@lequiossoft.com.tw
Created attachment 31468
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31468&action=edit
log file
Hi,
I'm building apr with minGW-w64 (x86_64-4.8.2-release-win32-seh-rt_v3-rev3) on
windows 7 but failed. Attached file is the log, can someone help me? Thanks
very much.
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|HEAD |1.5.1
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
--- Comment #4 from Jon Schewe (BBN) <js...@bbn.com> ---
Created attachment 31788
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31788&action=edit
apr-0.patch
I've seen this bug as well when building apr_getpass.c. I found what appears to
be an error in include/arch/win32/apr_private.h. __wtypes_h__ is defined in
there rather than including it. Here is the patch that works for me using mingw
4.9.0.
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #3 from Jeff Trawick <tr...@apache.org> ---
Do source files other than dso.c that include apr_private.h compile
successfully?
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Timothy Gu <ti...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #6 from Timothy Gu <ti...@gmail.com> ---
Hi, I can reproduce this, and applying Jon's patch fixes this cleanly.
@Jeff passwd/apr_getpass.c does not compile either, because it includes the
offending header.
I am changing the bug status back to NEW as I don't see any information still
is to be provided, and a working patch is here.
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Shane Peelar <lo...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Shane Peelar <lo...@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
C:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:66:0,
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:/msys64/mingw64/x86_64-w64-mingw32/include/accctrl.h:10,
from
C:/Users/Shane/Downloads/apr-1.5.1/include/arch/win32/apr_private.h:52,
from
C:/Users/Shane/Downloads/apr-1.5.1/include/arch/win32/apr_arch_dso.h:20,
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'
typedef CLIPFORMAT *LPCLIPFORMAT;
^
>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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
--- Comment #2 from lhh <lh...@lequiossoft.com.tw> ---
Hi,
I just comment out the lines of the following two files, FYI
1.
mingw64/x86_64-w64-mingw32/include/wtypes.h
line #12
- #include <ole2.h>
+ //#include <ole2.h>
2.
mingw64/x86_64-w64-mingw32/include/wtypesbase.h
line #12
- #include <ole2.h>
+ //#include <ole2.h>
--
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
[Bug 56342] cannot build apr with mingw-w64
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56342
Jon Schewe (BBN) <js...@bbn.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #31788|0 |1
is obsolete| |
--- Comment #5 from Jon Schewe (BBN) <js...@bbn.com> ---
Created attachment 31800
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31800&action=edit
apr-0.patch
I posted too soon. The previous patch fixes the error about CLIPFORMAT, but now
I've got an error about LPMSG. I'm building apr-1.4.6 with mingw 4.8.2.
This patch fixes the LPMSG errors as well. It looks like more things are being
put into wtypes.h now, so it needs to actually be included rather than just
faked. There may actually be a bug in mingw around the definition and use of
LPMSG as including wtypes.h *may* include ole2.h which eventually references
LPMSG before it's defined in wtypes.h
--
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