Issue #3802 has been updated by Luis Lavena.


Hello Mr. Nakamura,

I think we have a problem on this. Using Windows 7 which provides a working freeaddrinfo compilation fails since it is already defined by MinGW headers:

<pre><code>
generating constant definitions
gcc -I. -I../../.ext/include/i386-mingw32 -I../../../../../../ruby/include -I../../../../../../ruby/ext/socket -DRUBY_EXTCONF_H=\"extconf.h\" -I.    -D_WIN32_WINNT=0x501 -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -o init.o -c ../../../../../../ruby/ext/socket/init.c
In file included from ../../../../../../ruby/ext/socket/rubysocket.h:101:0,
                 from ../../../../../../ruby/ext/socket/init.c:11:
../../../../../../ruby/ext/socket/addrinfo.h:175:13: error: conflicting types for 'freeaddrinfo'
c:\users\luis\projects\oss\oci\rubyinstaller\sandbox\devkit\mingw\bin\../lib/gcc/mingw32/4.5.1/../../../../include/ws2tcpip.h:298:13: note: previous declaration of 'freeaddrinfo' was here
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/c/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/ext/socket'
</code></pre>

There is no way to alias those just for Ruby? thinking that it could just provide the alternative after a failed LoadLibrary & GetAddressProc is missing reference?

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3802

----------------------------------------
http://redmine.ruby-lang.org