Date: Tue, 28 May 2002 10:29:01 +0200 From: Anton Berezin <tobez@tobez.org> To: Chris Reinhardt <ctriv@dyndns.org> Cc: Doug Barton <DougB@FreeBSD.org>, Edwin Groothuis <edwin@mavetju.org>, ports@FreeBSD.org, devel@lists.net-dns.org Subject: Re: FreeBSD Port: p5-Net-DNS-0.14 Message-ID: <20020528082901.GB70140@heechee.tobez.org> In-Reply-To: <Pine.GSO.4.44.0205280410100.11583-100000@quartz.bos.dyndns.org> References: <20020528074512.GA70140@heechee.tobez.org> <Pine.GSO.4.44.0205280410100.11583-100000@quartz.bos.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Tue, May 28, 2002 at 04:16:26AM -0400, Chris Reinhardt wrote: > On Tue, 28 May 2002, Anton Berezin wrote: > > > > Yep, that is one of the two big changes for .21 (and minor bug fixes). > > > I would advise against running .20 on freebsd with the perl version > > > check removed. There is a bug in Net::DNS that keeps it from binding > > > UDP sockets properly on FreeBSD (4.6-RC, an older 4.5-STABLE, > > > 4.4-RELEASE, etc.. etc..). All this is cleared up in .21, which > > > should be released this week. > > > > Can you explain how this can be so? There are no problems with .20 and > > perl 5.6.1 (sic) on FreeBSD 4.X. While trying to make UDP socket > > binding work with .20 & 5.005_03, the tweaked installation of IO::Socket > > from 5.6.1 cured the problem - and now you, the maintainer, say it was a > > bug in Net::DNS. > Ok, calling it a bug in Net::DNS isn't completely acturate. The basic > change was this. Instead of creating the IO::Socket object and then > binding it to specific interface, I just used the LocalAddr, and > LocalPort parameters in calling IO::Socket::INET::new(). This fixed > the problem for me. Ok, thanks for the explanation. > If the problem was really in IO::Socket, then it's nice to know it > wasn't our fault to begin with :). :-) I can confirm that: tobez@svin ~> uname -a FreeBSD svin.catpipe.net 4.5-STABLE FreeBSD 4.5-STABLE #1: Thu Apr 4 12:53:15 CEST 2002 tobez@svin.catpipe.net:/data/stable-obj/data/stable-src/sys/SVIN-STABLE i386 tobez@svin ~> use.perl system tobez@svin ~> perl -MIO::Socket -le '$s = IO::Socket::INET->new(Proto => 'udp'); $sa = sockaddr_in(5353, inet_aton("0.0.0.0")); print $]; $s->bind($sa) or die $!' 5.00503 Invalid argument at -e line 1. tobez@svin ~> use.perl port tobez@svin ~> perl -MIO::Socket -le '$s = IO::Socket::INET->new(Proto => 'udp'); $sa = sockaddr_in(5353, inet_aton("0.0.0.0")); print $]; $s->bind($sa) or die $!' 5.006001 tobez@svin ~> Cheers, =Anton. -- | Anton Berezin | FreeBSD: The power to serve | | catpipe Systems ApS _ _ |_ | http://www.FreeBSD.org | | tobez@catpipe.net (_(_|| | tobez@FreeBSD.org | | +45 7021 0050 | Private: tobez@tobez.org | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020528082901.GB70140>