On Wed Feb 27 22:20:32 2019, c_hobbs@yahoo.com wrote:
Show quoted text>
For the lazy...
cpan[1]> install Net::Pcap
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 28 Feb 2019 01:54:26 GMT
Running install for module 'Net::Pcap'
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.18.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Argument "1.4417_001" isn't numeric in numeric ge (>=) at /usr/local/share/perl/5.24.1/CPAN/Distribution.pm line 640.
Configuring S/SA/SAPER/Net-Pcap-0.18.tar.gz with Makefile.PL
looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::Pcap
Writing MYMETA.yml and MYMETA.json
SAPER/Net-Pcap-0.18.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SA/SAPER/Net-Pcap-0.18.tar.gz
cp Pcap.pm blib/lib/Net/Pcap.pm
Running Mkbootstrap for Net::Pcap ()
chmod 644 "Pcap.bs"
"/usr/bin/perl" "/usr/share/perl/5.24/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.24/ExtUtils/typemap" -typemap "typemap" Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -O2 -g -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE" -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c
In file included from Pcap.xs:43:0:
stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not available" [-Wcpp]
#warning "the function pcap_list_datalinks() is not available"
^~~~~~~
stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" [-Wcpp]
#warning "the function pcap_createsrcstr() is not available"
^~~~~~~
stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" [-Wcpp]
#warning "the function pcap_parsesrcstr() is not available"
^~~~~~~
stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" [-Wcpp]
#warning "the function pcap_open() is not available"
^~~~~~~
stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available" [-Wcpp]
#warning "the function pcap_setbuff() is not available"
^~~~~~~
stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available" [-Wcpp]
#warning "the function pcap_setuserbuffer() is not available"
^~~~~~~
stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available" [-Wcpp]
#warning "the function pcap_setmode() is not available"
^~~~~~~
stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available" [-Wcpp]
#warning "the function pcap_setmintocopy() is not available"
^~~~~~~
stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available" [-Wcpp]
#warning "the function pcap_sendqueue_alloc() is not available"
^~~~~~~
stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" [-Wcpp]
#warning "the function pcap_sendqueue_destroy() is not available"
^~~~~~~
stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available" [-Wcpp]
#warning "the function pcap_sendqueue_queue() is not available"
^~~~~~~
stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available" [-Wcpp]
#warning "the function pcap_sendqueue_transmit() is not available"
^~~~~~~
stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" [-Wcpp]
#warning "the function pcap_event() is not available"
^~~~~~~
stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available" [-Wcpp]
#warning "the function pcap_setsampling() is not available"
^~~~~~~
Pcap.c: In function 'XS_Net__Pcap_strerror':
Pcap.c:1702:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
RETVAL = pcap_strerror(error);
^
Pcap.xs: In function 'XS_Net__Pcap_getevent':
Pcap.xs:1038:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
h = (unsigned int) pcap_getevent(p);
^
rm -f blib/arch/auto/Net/Pcap/Pcap.so
x86_64-linux-gnu-gcc -shared -L/usr/local/lib -fstack-protector-strong Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so \
-lpcap \
chmod 755 blib/arch/auto/Net/Pcap/Pcap.so
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs 644
cp bin/pcapinfo blib/script/pcapinfo
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pcapinfo
Manifying 1 pod document
Manifying 1 pod document
SAPER/Net-Pcap-0.18.tar.gz
/usr/bin/make -- OK
Running make test for SAPER/Net-Pcap-0.18.tar.gz
Running Mkbootstrap for Net::Pcap ()
chmod 644 "Pcap.bs"
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/1 # Testing Net::Pcap 0.18 (libpcap version 1.8.1) under Perl 5.024001
t/00-load.t ................ ok
t/01-api.t ................. ok
t/02-lookup.t .............. ok
t/03-openlive.t ............ ok
t/04-loop.t ................ ok
t/05-dump.t ................ ok
t/06-offline.t ............. ok
t/07-stats.t ............... ok
t/08-filter.t .............. ok
t/09-error.t ............... 1/10
# Failed test ' - $err must not be null: syntax error in filter expression: syntax error'
# at t/09-error.t line 25.
# 'syntax error in filter expression: syntax error'
# doesn't match '/^(?:parse|syntax) error$/'
# Looks like you failed 1 test of 10.
t/09-error.t ............... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests
t/10-fileno.t .............. ok
t/11-snapshot.t ............ ok
t/12-next.t ................ skipped: pcap_next() behaves too strangely for being tested on random machines
t/13-dispatch.t ............ ok
t/14-datalink.t ............ ok
t/15-is_swapped.t .......... 1/5 # This platform has been detected as a little endian architecture
t/15-is_swapped.t .......... ok
t/16-setnonblock.t ......... ok
t/17-lib_version.t ......... 1/2 # libpcap version 1.8.1
t/17-lib_version.t ......... ok
t/18-open_dead.t ........... ok
t/19-breakloop.t ........... ok
t/20-constants.t ........... ok
t/21-next_ex.t ............. skipped: slowness and random failures... testing pcap_next_ex() is a PITA
t/22-open.t ................ skipped: pcap_open() is not available
t/23-srcstr.t .............. skipped: pcap_createsrcstr() is not available
t/50-anyevent-pcap.t ....... skipped: AnyEvent::Pcap is not available
t/50-net-pcap-easy.t ....... skipped: Net::Pcap::Easy is not available
t/50-poe-component-pcap.t .. skipped: POE is not available
t/distchk.t ................ ok
t/pod.t .................... ok
t/podcover.t ............... skipped: Currently not working for Net::Pcap
t/podspell.t ............... skipped: Pod spelling: for maintainer only
t/portfs.t ................. skipped: Only for the module maintainer
Test Summary Report
-------------------
t/06-offline.t (Wstat: 0 Tests: 403 Failed: 0)
TODO passed: 398
t/07-stats.t (Wstat: 0 Tests: 134 Failed: 0)
TODO passed: 16, 29, 68, 81, 94, 107
t/09-error.t (Wstat: 256 Tests: 10 Failed: 1)
Failed test: 4
Non-zero exit status: 1
t/10-fileno.t (Wstat: 0 Tests: 21 Failed: 0)
TODO passed: 19
Files=32, Tests=1516, 26 wallclock secs ( 0.42 usr 0.05 sys + 6.70 cusr 0.61 csys = 7.78 CPU)
Result: FAIL
Failed 1/32 test programs. 1/1516 subtests failed.
Makefile:1036: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
SAPER/Net-Pcap-0.18.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SAPER/Net-Pcap-0.18.tar.gz
Failed during this command:
SAPER/Net-Pcap-0.18.tar.gz : make_test NO