[Mono-list] Building mono on Cygwin (again)

Dennis Jarosch ya_luva@uni.de
Tue, 16 Apr 2002 13:26:46 +0200


Hi!

Thanx, Nick and Piers. I've hacked the scripts and exportet CC.
As you can see, I have moved everything to /usr/local/ so Cygwin's includes
won't interfere with Mono's.


gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include/ -I/usr
/loc
al/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include
/ -I
/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I../.. -I..
/../
mono -DMONO_ASSEMBLIES=\""c:/mono/lib"\"                    -g -Wall -Wunuse
d -W
missing-prototypes -Wmissing-declarations -mno-cygwin -c socket-io.c


Netdb.h is not included anymore and  PLATFORM_WIN32 is set.
I still get errors compiling socket-io.c. I would guess that there is a
problem with Winsock2, but of course I don't know for sure. Maybe somebody
has seen something like this? I am using Win2k.


socket-io.c: In function `convert_sockopt_level_and_name':
socket-io.c:337: `IP_MULTICAST_IF' undeclared (first use in this function)
socket-io.c:337: (Each undeclared identifier is reported only once
socket-io.c:337: for each function it appears in.)
socket-io.c:340: `IP_MULTICAST_TTL' undeclared (first use in this function)
socket-io.c:343: `IP_MULTICAST_LOOP' undeclared (first use in this function)
socket-io.c:346: `IP_ADD_MEMBERSHIP' undeclared (first use in this function)
socket-io.c:349: `IP_DROP_MEMBERSHIP' undeclared (first use in this
function)
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_Socket_internal':
socket-io.c:472: warning: return makes integer from pointer without a cast
socket-io.c:478: warning: return makes integer from pointer without a cast
socket-io.c:484: warning: return makes integer from pointer without a cast
socket-io.c:490: warning: return makes integer from pointer without a cast
socket-io.c:494: warning: passing arg 4 of `setsockopt' from incompatible
pointe
r type
socket-io.c:498: warning: return makes integer from pointer without a cast
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_Available_internal
':
socket-io.c:519: warning: passing arg 3 of `ioctlsocket' from incompatible
point
er type
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_Blocking_internal'
:
socket-io.c:533: warning: passing arg 3 of `ioctlsocket' from incompatible
point
er type
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_Accept_internal':
socket-io.c:546: warning: return makes integer from pointer without a cast
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_GetSocketOption_ob
j_internal':
socket-io.c:1028: warning: passing arg 4 of `getsockopt' from incompatible
point
er type
socket-io.c:1033: warning: passing arg 4 of `getsockopt' from incompatible
point
er type
socket-io.c: In function
`ves_icall_System_Net_Sockets_Socket_SetSocketOption_in
ternal':
socket-io.c:1143: warning: passing arg 4 of `setsockopt' from incompatible
point
er type
socket-io.c:1157: warning: passing arg 4 of `setsockopt' from incompatible
point
er type
socket-io.c:1165: storage size of `mreq' isn't known
socket-io.c:1165: warning: unused variable `mreq'
socket-io.c:1202: warning: passing arg 4 of `setsockopt' from incompatible
point
er type


Thanx!

Dennis