[Mono-list] newby, compile problem

Sergiu Gavrila sergiu.gavrila@gmx.net
Wed, 27 Feb 2002 09:47:59 +0100


   Hi, I 'm new to Mono, and Linux build tools, so I stumbled at the mono
package compilation.
I have downloaded the mono-0.9 and mcs-0.9 packages, and also the
precompiled glib1.3 and pkg-config. I instaled Cygwin and MS NET Framework.
The mcs compiled just fine, but the mono package does not want too.
At first, it complains about not finding netdb.h. I do have it, is in
C:\cygwin\usr\include\netdb.h, so I tried to fix it the problem.
I have modified the
C:\cygwin\usr\local\mono\mono-0.9\mono\metadata\Makefile :

the line:

CFLAGS = -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-mno-cygwin

to:
CFLAGS = -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-mno-cygwin -IC:/cygwin/usr/include -IC:/cygwin/usr/local/include

but it still does not want to compile (the listing is below).
This time I'm clueless (I don't even undestand where the error is).

Sergiu

----------- First problem
........
gcc -DHAVE_CONFIG_H -I. -I. -I../..
-IC:/cygwin/usr/local/include/glib-2.0 -IC:/
cygwin/usr/local/lib/glib-2.0/include
-IC:/cygwin/usr/local/include/glib-2.0 -
IC:/cygwin/usr/local/lib/glib-2.0/include -I../.. -DMONO_ASSEMBLIE
S=\""c:/mono/lib"\" -g -Wall -Wunused -Wmissing-prototypes -Wmis
sing-declarations -mno-cygwin -c socket-io.c
socket-io.c:25: netdb.h: No such file or directory
make[3]: *** [socket-io.o] Error 1
make[3]: Leaving directory `/usr/local/mono/mono-0.9/mono/metadata'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/mono/mono-0.9/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mono/mono-0.9'
make: *** [all-recursive-am] Error 2


---------- Second one

Administrator@HENOCH /usr/local/mono/mono-0.9
$ make
make all-recursive
make[1]: Entering directory `/usr/local/mono/mono-0.9'
Making all in mono
make[2]: Entering directory `/usr/local/mono/mono-0.9/mono'
Making all in io-layer
make[3]: Entering directory `/usr/local/mono/mono-0.9/mono/io-layer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/mono/mono-0.9/mono/io-layer'
Making all in monoburg
make[3]: Entering directory `/usr/local/mono/mono-0.9/mono/monoburg'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/mono/mono-0.9/mono/monoburg'
Making all in metadata
make[3]: Entering directory `/usr/local/mono/mono-0.9/mono/metadata'
gcc -DHAVE_CONFIG_H -I. -I. -I../..
-IC:/cygwin/usr/local/include/glib-2.0 -IC:/
cygwin/usr/local/lib/glib-2.0/include
-IC:/cygwin/usr/local/include/glib-2.0 -
IC:/cygwin/usr/local/lib/glib-2.0/include -I../.. -DMONO_ASSEMBLIE
S=\""c:/mono/lib"\" -g -Wall -Wunused -Wmissing-prototypes -Wmis
sing-declarations -mno-cygwin -IC:/cygwin/usr/include
-IC:/cygwin/usr/local/incl
ude -c socket-io.c
In file included from C:/cygwin/usr/include/stdlib.h:22,
from socket-io.c:14:
C:/cygwin/usr/include/alloca.h:14: warning: `alloca' redefined
C:/cygwin/usr/local/include/glib-2.0/glib/galloca.h:35: warning: this is
the loc
ation of the previous definition
In file included from socket-io.c:25:
C:/cygwin/usr/include/netdb.h:127: warning: `HOST_NOT_FOUND' redefined
/usr/include/w32api/winsock.h:417: warning: this is the location of the
previous
definition
C:/cygwin/usr/include/netdb.h:128: warning: `TRY_AGAIN' redefined
/usr/include/w32api/winsock.h:418: warning: this is the location of the
previous
definition
C:/cygwin/usr/include/netdb.h:129: warning: `NO_RECOVERY' redefined
/usr/include/w32api/winsock.h:419: warning: this is the location of the
previous
definition
C:/cygwin/usr/include/netdb.h:130: warning: `NO_DATA' redefined
/usr/include/w32api/winsock.h:420: warning: this is the location of the
previous
definition
C:/cygwin/usr/include/netdb.h:131: warning: `NO_ADDRESS' redefined
/usr/include/w32api/winsock.h:421: warning: this is the location of the
previous
definition
In file included from /usr/include/w32api/windef.h:145,
from /usr/include/w32api/windows.h:98,
from ../../mono/io-layer/io-layer.h:11,
from ../../mono/metadata/threads-types.h:17,
from ../../mono/metadata/object.h:5,
from socket-io.c:16:
/usr/include/w32api/winnt.h:2521: warning: no previous prototype for
`GetCurrent
Fiber'
/usr/include/w32api/winnt.h:2532: warning: no previous prototype for
`GetFiberDa
ta'
In file included from socket-io.c:22:
C:/cygwin/usr/include/sys/time.h:73: warning: `struct timezone' declared
inside
parameter list
C:/cygwin/usr/include/sys/time.h:73: warning: its scope is only this
definition
or declaration, which is probably not what you want.
C:/cygwin/usr/include/sys/time.h:74: warning: `struct timezone' declared
inside
parameter list
In file included from socket-io.c:25:
C:/cygwin/usr/include/netdb.h:73: redefinition of `struct hostent'
C:/cygwin/usr/include/netdb.h:87: redefinition of `struct netent'
C:/cygwin/usr/include/netdb.h:94: redefinition of `struct servent'
C:/cygwin/usr/include/netdb.h:102: redefinition of `struct protoent'
C:/cygwin/usr/include/netdb.h:139: conflicting types for `gethostbyaddr'
/usr/include/w32api/winsock.h:441: previous declaration of `gethostbyaddr'
C:/cygwin/usr/include/netdb.h:140: conflicting types for `gethostbyname'
/usr/include/w32api/winsock.h:442: previous declaration of `gethostbyname'
C:/cygwin/usr/include/netdb.h:145: conflicting types for `getprotobyname'
/usr/include/w32api/winsock.h:446: previous declaration of `getprotobyname'
C:/cygwin/usr/include/netdb.h:146: conflicting types for `getprotobynumber'
/usr/include/w32api/winsock.h:445: previous declaration of
`getprotobynumber'
C:/cygwin/usr/include/netdb.h:148: conflicting types for `getservbyname'
/usr/include/w32api/winsock.h:444: previous declaration of `getservbyname'
C:/cygwin/usr/include/netdb.h:149: conflicting types for `getservbyport'
/usr/include/w32api/winsock.h:443: previous declaration of `getservbyport'
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:1185: warning: passing arg 4 of `setsockopt' from
incompatible point
er type
socket-io.c:1202: warning: passing arg 4 of `setsockopt' from
incompatible point
er type
make[3]: *** [socket-io.o] Error 1
make[3]: Leaving directory `/usr/local/mono/mono-0.9/mono/metadata'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/mono/mono-0.9/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mono/mono-0.9'
make: *** [all-recursive-am] Error 2

Administrator@HENOCH /usr/local/mono/mono-0.9
$
------------