[#32676] VC++ embedded rubygems gives NoMethodError undefined method `synchronize' for Mutex — Phlip <phlip2005@...>
[I will try Bill Kelly's PDB path advice presently; this issue is more
5 messages
2010/10/03
[#32687] Re: VC++ embedded rubygems gives NoMethodError undefined method `synchronize' for Mutex
— Roger Pack <rogerdpack2@...>
2010/10/04
> This one's about...
[#32703] Re: VC++ embedded rubygems gives NoMethodError undefined method `synchronize' for Mutex
— Phlip <phlip2005@...>
2010/10/05
> > #<NoMethodError: undefined method `synchronize' for #<Mutex:0x750faa8>>
[#32698] [Ruby 1.9-Feature#3908][Open] private constant — Yusuke Endoh <redmine@...>
Feature #3908: private constant
10 messages
2010/10/05
[#32790] ruby with near native speed — Ondřej Bílka <neleai@...>
Hello
4 messages
2010/10/14
[#32795] Call for Cooperation: CFUNC usage survey — SASADA Koichi <ko1@...>
Hi,
5 messages
2010/10/15
[#32814] WeakHash — Santiago Pastorino <santiago@...>
Hi guys,
6 messages
2010/10/15
[#32844] [Ruby 1.9-Feature#3963][Open] Map class in standard library — Thomas Sawyer <redmine@...>
Feature #3963: Map class in standard library
3 messages
2010/10/18
[#32864] [Ruby 1.9-Bug#3972][Open] r28668 breaks test/unit when combined with the testing rake task — Aaron Patterson <redmine@...>
Bug #3972: r28668 breaks test/unit when combined with the testing rake task
6 messages
2010/10/20
[#32932] Behavior of initialize in 1.9 — Aaron Patterson <aaron@...>
The behavior of initialize in 1.9 seems to have changed. Here is an irb
5 messages
2010/10/28
[#32960] [Ruby 1.9-Bug#4005][Open] YAML fails to roundtrip Time objects — Peter Weldon <redmine@...>
Bug #4005: YAML fails to roundtrip Time objects
6 messages
2010/10/29
[#32976] Improve MinGW builds for Ruby 1.8.7, 1.9.2 and 1.9.3 — Luis Lavena <luislavena@...>
Hello,
10 messages
2010/10/30
[#32978] Re: Improve MinGW builds for Ruby 1.8.7, 1.9.2 and 1.9.3
— Aaron Patterson <aaron@...>
2010/10/30
On Sun, Oct 31, 2010 at 03:42:02AM +0900, Luis Lavena wrote:
[ruby-core:32769] Re: [Ruby-Bug#3802] freeaddrinfo not found in WS2_32.dll
From:
Heesob Park <phasis@...>
Date:
2010-10-13 05:43:15 UTC
List:
ruby-core #32769
2010/10/13 Luis Lavena <luislavena@gmail.com>:
> On Tue, Oct 12, 2010 at 11:44 PM, U.Nakamura <usa@garbagecollect.jp> wrot=
e:
>> Hello,
>>
>>> Here is a patch for VC.
>>
>> Luis, how do you think this patch?
>>
>
> While patch applies and solve the redefinition (good), it raises again
> the broken IPv6 issue with undefined references:
>
> <pre><code>
> gcc -shared -s -o ../../.ext/i386-mingw32/socket.so init.o constants.o
> basicsocket.o socket.o ipsocket.o tcpsocket.o tcpserver.o
> sockssocket.o udpsocket.o unixsocket.o unixserver.o option.o ancdata.o
> raddrinfo.o getaddrinfo.o getnameinfo.o
> -L. -L../.. -L. =C2=A0-Wl,--enable-auto-image-base,--enable-auto-import
> socket-i386-mingw32.def =C2=A0-lmsvcrt-ruby191 -lws2_32 =C2=A0-lshell32 -=
lws2_32
> -limagehlp
> getaddrinfo.o: In function `get_addr':
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:587:
> undefined reference to `getipnodebyname'
> getaddrinfo.o: In function `get_name':
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:543:
> undefined reference to `getipnodebyaddr'
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:555:
> undefined reference to `freehostent__compat'
> getaddrinfo.o: In function `get_addr':
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:660:
> undefined reference to `freehostent__compat'
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:590:
> undefined reference to `getipnodebyname'
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:669:
> undefined reference to `freehostent__compat'
> getaddrinfo.o: In function `get_name':
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getaddrinfo.c:564:
> undefined reference to `freehostent__compat'
> getnameinfo.o: In function `getnameinfo__compat':
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getnameinfo.c:227:
> undefined reference to `getipnodebyaddr'
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getnameinfo.c:240:
> undefined reference to `freehostent__compat'
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\soc=
ket/../../../../../../ruby/ext/socket/getnameinfo.c:246:
> undefined reference to `freehostent__compat'
> collect2: ld returned 1 exit status
> </code></pre>
>
> Which I think was solved in r24517:
>
> http://redmine.ruby-lang.org/issues/show/1834
>
> To quote your 3rd point in that ticket:
>
> "(3) link errors with --enable-wide-getaddrinfo is ruby's bug."
>
I can see the same error with VC9 with --enable-ipv6
It seems that getaddrinfo.c is not ready for Windows with ipv6 enabled.
The quick and simple way is disable ipv6 for Windows platform.
Here is a patch of ext/socket/extconf.rb
--- extconf.rb 2010-10-13 14:33:14.000000000 +0900
+++ extconf.rb.new 2010-10-13 14:34:41.000000000 +0900
@@ -34,7 +34,7 @@
end
ipv6 =3D false
-default_ipv6 =3D /mswin|cygwin|beos|haiku/ !~ RUBY_PLATFORM
+default_ipv6 =3D /mswin|mingw|cygwin|beos|haiku/ !~ RUBY_PLATFORM
if enable_config("ipv6", default_ipv6)
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>