Hi Paul:
On Sat Jul 04 23:48:49 2009, PJF wrote:
Show quoted text> G'day Jonathan,
>
> On Sat Jul 04 12:40:51 2009, FREQUENCY wrote:
>
> > Use of uninitialized value $tcp in socket at t/socket.t line 26.
> > my $tcp = getprotobyname('tcp');
>
> Perl's in-built getprotobyname() function does whatever is needed to
> convert a human readable string ('tcp') into something usable by the
> socket call (eg: '6'). On Linux systems, that means looking it up in
> /etc/protocols .
Oh, I see.
Show quoted text>
> My guess is that in a sandboxed build environment, there is no
> /etc/protocols, and so this is failing, and returning undef. That
> doesn't impact the test at all, since the whole purpose is to end up
> with an invalid call to connect().
That makes sense.
Show quoted text>
> Besides from being unsightly, does the warning cause any other problems
> with the build process? If not, would you mind particularly if it
> stayed in there for the moment?
Nope, I've upgraded the package appropriately. It might have even
existed from the past, I really don't know. It's not a huge issue, just
thought I'd let you know.
Show quoted text>
> It does remind me that having getprotobyname() supported by autodie is
> currently marked as a TODO test, and with the current autodie framework,
> it should be trivial to implement. So with the next release you may see
> that test having changed somewhat, and that warning will probably go away.
Cool. I look forward to it.
Thanks for the prompt response.
Cheers,
Jonathan