[#10853] Why limit class def to a constant or colon node? — Charles Oliver Nutter <charles.nutter@...>

Is there a historical reason why I can't do something like these:

12 messages 2007/04/03

[#10933] Cannot build with extra library path if previous version already installed — <noreply@...>

Bugs item #10140, was opened at 2007-04-16 17:32

10 messages 2007/04/16
[#10934] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — nobu@... 2007/04/16

Hi,

[#10960] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — "Michal Suchanek" <hramrach@...> 2007/04/18

On 4/16/07, nobu@ruby-lang.org <nobu@ruby-lang.org> wrote:

[#10967] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — Nobuyoshi Nakada <nobu@...> 2007/04/19

Hi,

[#10970] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — "Michal Suchanek" <hramrach@...> 2007/04/19

On 4/19/07, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:> Hi,>> At Wed, 18 Apr 2007 20:21:44 +0900,> Michal Suchanek wrote in [ruby-core:10960]:> > Yes. And this should also apply to extensions. The mkmf tests are now> > fine but the extension is linked with -L/sw/lib before -L../..>> Indeed.>>> Index: configure.in> ===================================================================> --- configure.in (revision 12191)> +++ configure.in (working copy)> @@ -1385,5 +1385,4 @@ if test "$enable_rpath" = yes; then> fi>> -LDFLAGS="-L. $LDFLAGS"> AC_SUBST(ARCHFILE)>This would break the previous fix so I did not even try to apply this ^

[#11003] miniruby loads extensions from already installed ruby — <noreply@...>

Bugs item #10303, was opened at 2007-04-23 10:44

10 messages 2007/04/23

[#11025] gsub with backslash characters in replacement string — "Adam Bozanich" <adam.boz@...>

Hello, spotted this one the other day:

10 messages 2007/04/26

[ ruby-Bugs-9061 ] Windows Vista: recvfrom causes exception

From: <noreply@...>
Date: 2007-04-03 06:28:36 UTC
List: ruby-core #10846
Bugs item #9061, was opened at 2007-03-06 04:28
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9061&group_id=426

>Category: Standard Library
>Group: 1.8.x
Status: Open
>Resolution: Accepted
Priority: 3
Submitted By: Bram Whillock (bramski)
Assigned to: Usaku Nakamura (usa)
Summary: Windows Vista: recvfrom causes exception

Initial Comment:
>ruby -v

ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]

I'm also running on windows vista, but I don't know if this is an
issue on the overall mswin32-x86 platform.

I'm getting an error when trying to recvfrom on a TCP Socket.  The
code looks as follows:

listen_socket = TCPSocket.new("127.0.0.1",5000)
(data,host) = listen_socket.recvfrom( 1024 )

running this code (it's in my unit test) yields:

SocketError: getnameinfo: ai_family not supported.
    ./lib/juggernaut.rb:42:in `recvfrom'

Any idea why this might be occurring?  Is it due to something related
to IPv6 support?


----------------------------------------------------------------------

>Comment By: Usaku Nakamura (usa)
Date: 2007-04-03 15:28

Message:
Hmm, this problem is not only on Vista. o
I reproduced it on XP SP2.

patch:

Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 12136)
+++ ext/socket/socket.c	(working copy)
@@ -625,7 +625,7 @@ s_recvfrom(sock, argc, argv, from)
 	    rb_raise(rb_eTypeError, "sockaddr size differs - should not happen");
 	}
 #endif
-	if (alen) /* OSX doesn't return a 'from' result from recvfrom for connection-oriented sockets */
+	if (alen && alen != sizeof(buf)) /* OSX doesn't return a 'from' result from recvfrom for connection-oriented sockets */
 	    return rb_assoc_new(str, ipaddr((struct sockaddr*)buf));
 	else
 	    return rb_assoc_new(str, Qnil);
@@ -691,7 +691,7 @@ s_recvfrom_nonblock(VALUE sock, int argc
 	return str;
 
       case RECV_IP:
-        if (alen) /* connection-oriented socket may not return a from result */
+        if (alen && alen != sizeof(buf)) /* connection-oriented socket may not return a from result */
             addr = ipaddr((struct sockaddr*)buf);
         break;
 


----------------------------------------------------------------------

Comment By: Bram Whillock (bramski)
Date: 2007-03-06 15:13

Message:
http://www.rubycentral.com/book/lib_network.html

Most people seem to use this in the context of (as per the
example):
t = TCPSocket.new('localhost', 'ftp')
data = t.recvfrom(30)
data

and disregard the fact that this function returns the host
(again).  This definitely works on linux, btw.

----------------------------------------------------------------------

Comment By: Bill K. (spatulasnout)
Date: 2007-03-06 15:09

Message:
Sorry if this is a dumb question; but is recvfrom supposed to work with TCP connections?  Typically I've only seen recv used with TCP, and recvfrom used with UDP.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9061&group_id=426

In This Thread

Prev Next