[Mono-list] Compiling Mono 2.6.1 from source code (make crash on socket-io.c)
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Thu Dec 24 12:11:22 EST 2009
On Thu, 2009-12-24 at 06:06 -0800, Didro wrote:
> Hello,
>
> I'm trying to build last mono 2.6.1 from source on Red Hat Linux release 9
> (Shrike) (Pentium III (Coppermine)).
>
> I'm not the root, but I could built previous mono version (for example
> 1.2.6).
>
> I configure mono install with only --prefix attribute and the run make.
>
> Make tell me:
> ---------------------------------------------------------
> CC opcodes.lo
> CC socket-io.lo
> socket-io.c: In function `ves_icall_System_Net_Dns_GetHostByAddr_internal':
> socket-io.c:2964: `AI_ADDRCONFIG' undeclared (first use in this function)
> socket-io.c:2964: (Each undeclared identifier is reported only once
> socket-io.c:2964: for each function it appears in.)
> make[3]: *** [socket-io.lo] Error 1
> make[3]: Leaving directory `/home/apetrov/mono-2.6.1/mono/metadata'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/apetrov/mono-2.6.1/mono'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/apetrov/mono-2.6.1'
> make: *** [all] Error 2
> ---------------------------------------------------------
>
> I try to goole that, but nothing.
> What should I do ?
IF upgrading your libc-dev is not an option, you can either add the
#define for AI_ADDRCONFIG to /usr/include/netdb.h or remove
AI_ADDRCONFIG in the 2 lines that it appears in socket-io.c.
My /usr/include/netdb.h has these lines:
/* Possible values for `ai_flags' field in `addrinfo' structure. */
# define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */
# define AI_CANONNAME 0x0002 /* Request for canonical name. */
# define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */
# define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */
# define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */
# define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose
returned address type.. */
-Gonzalo
More information about the Mono-list
mailing list