[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] unable to build with mingw...



with mingw/gcc 3.4.5, libevent-2.0.3-alpha, I receive the following
when attempting to compile...

...
 gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -g -O2 -Wall
-fno-strict-aliasing -MT bufferevent_sock.lo -MD -MP -MF
.deps/bufferevent_sock.Tpo -c bufferevent_sock.c  -DDLL_EXPORT -DPIC
-o .libs/bufferevent_sock.o
bufferevent_sock.c: In function `bufferevent_socket_connect_hostname':
bufferevent_sock.c:429: error: `AF_INET6' undeclared (first use in
this function)
bufferevent_sock.c:429: error: (Each undeclared identifier is reported only once
bufferevent_sock.c:429: error: for each function it appears in.)
make[2]: *** [bufferevent_sock.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/dev/ruby/downloads/libevent-2.0.3-alpha'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/dev/ruby/downloads/libevent-2.0.3-alpha'
make: *** [all] Error 2


Googling this message yielded this note... (from ruby)
	* ext/socket/socket.c (Init_socket): IPv6 is not supported although
	  AF_INET6 is defined on MinGW.

cygwin (gcc 3.4.4) appears to fail the same way (2.0.3-alpha)


compiling 2.0.3-alpha with TDM GCC 4.4.1 works though, so I'm not sure
what is going on.

1.4.13:

Cygwin/mingw fails in a different way for 1.4.13-stable (see attachment).
Compiling 1.4.13-stable with TDM GCC 4.4.1 works.

A workaround for 3.4.5 would be nice.
Thanks!
-r

Attachment: cygwin.out.libevent.1.4.13-stable
Description: Binary data