Bjoern Hoehrmann wrote:
Show quoted text> I tried installing the latest Net::Pcap on Win2k3 with WinPcap
> 4.x and
> ran into two problems. First, the distribution depends on
> IO::Interface
> which does not seem to be available for Win32 (it's only used for the
> pcapinfo utility so I removed the dependency)
I didn't know IO::Interface wasn't available under Win32. I'll modify
Makefile.PL to not install pcapinfo and remove IO::Interface from the
prereqs.
Show quoted text> after a successful build it generates many test failures. I've
> attached those.
>
> [...]
> # Failed test ' - '\' must be present in the list returned by
> findalldevs()'
> # in t/02-lookup.t at line 135.
> # got: undef
> # expected: '1'
This is probably because the interfaces are incorrectly listed for
some reason. Could you give me the output of the following commands:
perl -wTIblib/lib -Iblib/arch -It -MNet::Pcap -MUtils -le "print
join$/,find_network_device()"
perl -MNet::Pcap=:functions -le "print join$/,findalldevs(\$err)"
ipconfig /all
You can hide the IP addresses if you want, what interest me here is
the list of interface names.
Show quoted text> t/12-next...........dubious
> Test returned status 42 (wstat 10752, 0x2a00)
> DIED. FAILED tests 5-16, 18-19, 21-32, 34-35, 37-48, 50-51
> Failed 42/52 tests, 19.23% okay
Hmm, in fact, this test script should be skipped. It's a mistake on
my part that it is enabled in the CPAN release. This test script is
probably trying to check some of the areas of Net::Pcap where
problems may come from bugs in libpcap/WinPcap or from the XS
interface. Usually, they can be ignored, especially if the rest of
the test suite passes.
--
Sébastien Aperghis-Tramoni
Close the world, txEn eht nepO.