Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::Ping fails tests and won't install if IPv6 is disabled on the box #15

Closed
Binarus opened this issue Mar 6, 2019 · 4 comments
Closed
Assignees

Comments

@Binarus
Copy link

Binarus commented Mar 6, 2019

I am currently upgrading a bunch of modules in my Perl installation (Debian stretch, 64 bit, Perl 5.24.1). I opened the CPAN shell (perl -MCPAN -e shell) and tried to install Net::Ping (install Net::Ping).

Download and make went well, but the tests failed, presumably due to the following line:

t/501_ping_icmpv6.t .... icmp socket error - Bad file descriptor at t/501_ping_icmpv6.t line 49.
t/501_ping_icmpv6.t .... Dubious, test returned 9 (wstat 2304, 0x900)

As a consequence, the module did not get installed. I circumvented the problem by typing fforce install Net::Ping in the CPAN shell, but this is not satisfactory because real errors then will not be detected either.

The source of the error: On this box, IPv6 is disabled (I am doing this regularly on many of our and our clients' machines).

While I perfectly understand that the IPv6 tests fail if IPv6 is globally disabled, I think that this should be no reason to refuse installation. It would be very nice if you could change this. And by the way, the problem probably exists the other way around as well (I did not test, though): What happens on a box where IPv4 is disabled and only IPv6 enabled?

Thank you very much for your great work, your time and effort!

Regards,

Binarus

@wienfuchs
Copy link

I do have the same problem, is there a solution to it?

@rurban rurban self-assigned this Mar 12, 2020
@rurban
Copy link
Owner

rurban commented Mar 12, 2020

There is a bypassing the tests solution, but do we really want to pass a test on a systems without ipv6? IMHO force install then looks better to me.

@wienfuchs
Copy link

you're quite right, --force is probably the better solution then (after tested on an IPv6 enabled system)

rurban added a commit that referenced this issue Sep 8, 2020
Mostly due to missing icmpv6 support. Fixes GH #15.
Typical error msg: icmp socket error - Bad file descriptor
@rurban
Copy link
Owner

rurban commented Sep 10, 2020

I've added a fix in 2.74

@rurban rurban closed this as completed Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants