[Mono-list] Mono Build Issue
Fernando Rodriguez
frodriguez.developer at outlook.com
Mon Sep 22 14:55:40 UTC 2014
On Monday 22 September 2014 8:16:29 AM Mauro Da Silva wrote:
>
[http://www.darielservices.co.za/images/Spring_Banner_2.jpg]<http://www.dariel.co.za>
>
> Hi,
>
> I was wondering if someone could possibly help. I'm trying to get the mono
source to build via Git on Windows.
>
> The process I followed is as follows :
>
> git checktout 5f9c74f4c5188d5dd56397a8e84126a5fb6e6ec0
> export PATH=$PATH:"C:/Program Files (x86)/Mono-3.2.3/bin"
> ./autogen.sh --prefix=/usr/local --host=i686-pc-mingw32
> make
>
> However, I get the following error :
>
> from socket-io.c:24:
> /usr/i686-pc-mingw32/sys-root/mingw/include/winsock.h:492:12: note: expected
'const char *' but argument is of type 'struct linger *'
> socket-io.c:2273:4: warning: pointer targets in passing argument 4 of
'setsockopt' differ in signedness [-Wpointer-sign]
> In file included from /usr/i686-pc-mingw32/sys-
root/mingw/include/windows.h:93:0,
> from ../../mono/io-layer/io-layer.h:24,
> 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/winsock.h:492:12: note: expected
'const char *' but argument is of type 'guchar *'
> socket-io.c:2282:4: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type [enabled by default]
> In file included from /usr/i686-pc-mingw32/sys-
root/mingw/include/windows.h:93:0,
> from ../../mono/io-layer/io-layer.h:24,
> 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/winsock.h:492:12: note: expected
'const char *' but argument is of type 'struct linger *'
> cc1: some warnings being treated as errors
> Makefile:2332: recipe for target 'libmonoruntime_la-socket-io.lo' failed
> make[3]: *** [libmonoruntime_la-socket-io.lo] Error 1
> make[3]: Leaving directory '/cygdrive/c/monosources/mono/mono/metadata'
> Makefile:434: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/cygdrive/c/monosources/mono/mono'
> Makefile:518: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/cygdrive/c/monosources/mono'
> Makefile:445: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> Does anyone know what I'm doing wrong or what I could do to fix the issue?
>
> Thanks
> Mauro
>
try passing --disable-werror to autogen.sh
--
----------
Fernando Rodriguez
frodriguez.developer at outlook.com
More information about the Mono-list
mailing list