[Mono-dev] mono from git will not build on cygwin 32

Zoltan Varga vargaz at gmail.com
Tue Nov 19 14:06:40 UTC 2013


Hi,

  This is a bug in the mingw header files, two header define the same type
(PEXECUTION_STATE). This happens on some systems, and doesn't happen on
others. The only workaround is to fix the header files by hand, i.e. rename
one of the definitions to PEXECUTION_STATE2 or something.

              Zoltan


On Tue, Nov 19, 2013 at 7:20 AM, mobin.seven <mobin.seven at live.com> wrote:

> I have done ALL above BUT still getting this:
> "socket-io.c:2353:2: warning: pointer targets in passing argument 7 of
> 'WSAIoctl'
>  differ in signedness [-Wpointer-sign]
> In file included from ../../mono/io-layer/io-layer.h:24:0,
>                  from ./process.h:17,
>                  from
> /usr/i686-pc-mingw32/sys-root/mingw/include/unistd.h:37,
>                  from socket-io.c:24:
> /usr/i686-pc-mingw32/sys-root/mingw/include/winsock2.h:1178:32: note:
> expected '
> LPDWORD' but argument is of type 'glong *'
>   CC       libmonoruntime_la-process.lo
> In file included from process.c:37:0:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h:49:15: error:
> conflictin
> g types for 'PEXECUTION_STATE'
> In file included from
> /usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:62:0
> ,
>                  from
> /usr/i686-pc-mingw32/sys-root/mingw/include/winsock2.h:40,
>
>                  from ../../mono/io-layer/io-layer.h:24,
>                  from ../../mono/metadata/domain-internals.h:15,
>                  from ../../mono/metadata/metadata-internals.h:8,
>                  from ../../mono/metadata/class-internals.h:10,
>                  from ../../mono/metadata/object-internals.h:8,
>                  from process.c:16:
> /usr/i686-pc-mingw32/sys-root/mingw/include/winbase.h:1973:33: note:
> previous de
> claration of 'PEXECUTION_STATE' was here
> process.c: In function
> 'ves_icall_System_Diagnostics_Process_GetProcesses_intern
> al':
> process.c:912:3: warning: passing argument 1 of 'EnumProcesses' from
> incompatibl
> e pointer type [enabled by default]
> In file included from ../../mono/io-layer/io-layer.h:34:0,
>                  from ../../mono/metadata/domain-internals.h:15,
>                  from ../../mono/metadata/metadata-internals.h:8,
>                  from ../../mono/metadata/class-internals.h:10,
>                  from ../../mono/metadata/object-internals.h:8,
>                  from process.c:16:
> /usr/i686-pc-mingw32/sys-root/mingw/include/psapi.h:108:13: note: expected
> 'DWOR
> D *' but argument is of type 'guint32 *'
> Makefile:2168: recipe for target 'libmonoruntime_la-process.lo' failed
> make[3]: *** [libmonoruntime_la-process.lo] Error 1
> make[3]: Leaving directory '/usr/src/Mono-3.2.3/mono/metadata'
> Makefile:380: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/usr/src/Mono-3.2.3/mono'
> Makefile:460: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/usr/src/Mono-3.2.3'
> Makefile:387: recipe for target 'all' failed
> make: *** [all] Error 2"
>
> Is your problem solved? what should I do?
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/mono-from-git-will-not-build-on-cygwin-32-tp4660749p4661343.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20131119/3075af32/attachment.html>


More information about the Mono-devel-list mailing list