[#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

No accept Ipv6 in IPAddr

From: "Cyril Mougel" <cyril.mougel@...>
Date: 2007-04-27 13:27:06 UTC
List: ruby-core #11049
Hi,

I ask me a question since 1 day and I don't understand why this code
doesn't run :

    require 'ipaddr'
    IPAddr.new '2002:0000:1234:4561'

In fact this code raise an Exception :

    /usr/lib64/ruby/1.8/ipaddr.rb:422:in `initialize': invalid address
(ArgumentError)

But this adress is syntactically valid like an Ipv6. My search lead me
to this conclusion :

IPAddr think my IP like an invalid adress because it hadn't a name
resolution. The line who raise the exception is :

    IPSocket.getaddress(prefix)

For me, the prefix is '2002:0000:1234:4561', because it's never modify
before in intialize of IPAddr (Verify with the debuggeur). The command
follow prouve it :

    hello% host 2002:0000:1234:4561
    Host 2002:0000:1234:4561 not found: 3(NXDOMAIN)

or with irb :

    hello% irb
    irb(main):001:0> require 'socket'
    => true
    irb(main):002:0> IPSocket.getaddress('2002:0000:1234:4561')
    SocketError: getaddrinfo: Name or service not known
        from (irb):2:in `getaddress'
        from (irb):2

But , it's not specify anywhere that an IPAddr must be "valid" for be
use. Likewise, if we see the code of this file ipaddr.rb, We remark
that in first step, there are :

    unless Socket.const_defined? "AF_INET6"

But in the new version of Ruby this variable is define. So the
override of the method getaddress made after this unless is never
execute. In this new method, we can see that :

   return true if /\A[\dA-Fa-f]{1,4}(:[\dA-Fa-f]{1,4})*\Z/ =~ addr

With this my Ipv6 is valid.

The question that I ask me is the follow :

It's a bug or not ?

thank for your answer

-- 
Cyril Mougel

In This Thread

Prev Next