Skip Menu |

This queue is for tickets about the Net-Pcap CPAN distribution.

Report information
The Basics
Id: 80498
Status: resolved
Priority: 0/
Queue: Net-Pcap

People
Owner: Nobody in particular
Requestors: crckdns [...] web.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.17



Subject: Net-Pcap Bugreport
Date: Tue, 30 Oct 2012 19:02:20 +0100
To: <bug-Net-Pcap [...] rt.cpan.org>
From: "Dennis \(cracky\)" <crckdns [...] web.de>
Hey there, the compilation of Net::Pcap module fails. System: Debian Squeeze Perl: 5.10.1 Module: Net-Pcap-0.16 logfile: ### cpan[15]> install Net::Pcap Running install for module 'Net::Pcap' Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz looking for -lpcap... yes checking for pcap_lib_version() in -lpcap... yes detecting available functions... ok Checking if your kit is complete... Looks good Writing Makefile for Net::Pcap Writing MYMETA.yml and MYMETA.json cp Pcap.pm blib/lib/Net/Pcap.pm /usr/bin/perl /usr/local/share/perl/5.10.1/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c cc -c -Wall -Wwrite-strings -O2 -g -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl/5.10/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_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] stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" [-Wcpp] stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" [-Wcpp] stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" [-Wcpp] stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available" [-Wcpp] stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available" [-Wcpp] stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available" [-Wcpp] stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available" [-Wcpp] stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available" [-Wcpp] stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" [-Wcpp] stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available" [-Wcpp] stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available" [-Wcpp] stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" [-Wcpp] stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available" [-Wcpp] Pcap.xs: In function ‘callback_wrapper’: Pcap.xs:57:5: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness [-Wpointer-sign] In file included from /usr/lib/perl/5.10/CORE/perl.h:4829:0, from Pcap.xs:29: /usr/lib/perl/5.10/CORE/proto.h:2210:19: note: expected ‘const char *’ but argument is of type ‘u_char *’ Pcap.xs:62:5: warning: value computed is not used [-Wunused-value] Pcap.xs:63:5: warning: value computed is not used [-Wunused-value] Pcap.xs:64:5: warning: value computed is not used [-Wunused-value] Pcap.xs:65:5: warning: value computed is not used [-Wunused-value] Pcap.xs: In function ‘XS_Net__Pcap_findalldevs_xs’: Pcap.xs:196:29: warning: value computed is not used [-Wunused-value] Pcap.xs:199:33: warning: value computed is not used [-Wunused-value] Pcap.xs:202:33: warning: value computed is not used [-Wunused-value] Pcap.xs:220:25: warning: value computed is not used [-Wunused-value] Pcap.xs:222:25: warning: value computed is not used [-Wunused-value] Pcap.xs: In function ‘XS_Net__Pcap_next’: Pcap.xs:447:5: warning: value computed is not used [-Wunused-value] Pcap.xs:448:5: warning: value computed is not used [-Wunused-value] Pcap.xs:449:5: warning: value computed is not used [-Wunused-value] Pcap.xs:450:5: warning: value computed is not used [-Wunused-value] Pcap.xs: In function ‘XS_Net__Pcap_next_ex’: Pcap.xs:489:17: warning: value computed is not used [-Wunused-value] Pcap.xs:490:17: warning: value computed is not used [-Wunused-value] Pcap.xs:491:17: warning: value computed is not used [-Wunused-value] Pcap.xs:492:17: warning: value computed is not used [-Wunused-value] Pcap.xs:494:17: warning: pointer targets in passing argument 3 of ‘Perl_sv_setpvn’ differ in signedness [-Wpointer-sign] In file included from /usr/lib/perl/5.10/CORE/perl.h:4829:0, from Pcap.xs:29: /usr/lib/perl/5.10/CORE/proto.h:3372:20: note: expected ‘const char *’ but argument is of type ‘const u_char *’ Pcap.xs: In function ‘XS_Net__Pcap_dump’: Pcap.xs:553:4: warning: pointer targets in passing argument 3 of ‘pcap_dump’ differ in signedness [-Wpointer-sign] In file included from /usr/local/include/pcap.h:45:0, from Pcap.xs:36: /usr/local/include/pcap/pcap.h:398:6: note: expected ‘const u_char *’ but argument is of type ‘char *’ Pcap.c: In function ‘XS_Net__Pcap_strerror’: Pcap.c:1603:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] Pcap.xs: In function ‘XS_Net__Pcap_stats’: Pcap.xs:742:4: warning: value computed is not used [-Wunused-value] Pcap.xs:744:4: warning: value computed is not used [-Wunused-value] Pcap.xs:746:4: warning: value computed is not used [-Wunused-value] Pcap.xs: In function ‘XS_Net__Pcap_getevent’: Pcap.xs:951:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Pcap.xs: In function ‘XS_Net__Pcap_sendpacket’: Pcap.xs:963:9: warning: pointer targets in passing argument 2 of ‘pcap_sendpacket’ differ in signedness [-Wpointer-sign] In file included from /usr/local/include/pcap.h:45:0, from Pcap.xs:36: /usr/local/include/pcap/pcap.h:363:5: note: expected ‘const u_char *’ but argument is of type ‘char *’ Pcap.c: In function ‘XS_Net__Pcap_constant’: ./const-xs.inc:38:11: warning: ‘iv’ may be used uninitialized in this function [-Wmaybe-uninitialized] ./const-xs.inc:11:6: note: ‘iv’ was declared here Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs rm -f blib/arch/auto/Net/Pcap/Pcap.so LD_RUN_PATH="/usr/local/lib" cc -shared -O2 -g -L/usr/local/lib -fstack-protector Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so \ -lpcap \ chmod 755 blib/arch/auto/Net/Pcap/Pcap.so cp Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs chmod 644 blib/arch/auto/Net/Pcap/Pcap.bs cp bin/pcapinfo blib/script/pcapinfo /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pcapinfo Manifying blib/man1/pcapinfo.1p Manifying blib/man3/Net::Pcap.3pm SAPER/Net-Pcap-0.16.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ................ 1/1 # Testing Net::Pcap 0.16 under Perl 5.010001 t/00-load.t ................ ok t/01-api.t ................. ok t/02-lookup.t .............. ok t/03-openlive.t ............ 1/14 # Failed test ' - $err must be set: this is not a device: No such device exists (SIOCGIFHWADDR: No such device)' # at t/03-openlive.t line 70. # 'this is not a device: No such device exists (SIOCGIFHWADDR: No such device)' # doesn't match '/^(?:bind|ioctl|SIOCGIFHWADDR): (?:No such device)/' # Looks like you failed 1 test of 14. t/03-openlive.t ............ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/14 subtests (less 4 skipped subtests: 9 okay) 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 ............... ok 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.3.0 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-poe-component-pcap.t .. skipped: POE is not available t/distchk.t ................ skipped: Test::Distribution required for checking distribution t/pod.t .................... skipped: Test::Pod 1.14 required for testing POD t/podcover.t ............... skipped: Currently not working for Net::Pcap t/podspell.t ............... skipped: Pod spelling: for developer interest only :) t/portfs.t ................. skipped: Test::Portability::Files required for testing filenames portability Test Summary Report ------------------- t/03-openlive.t (Wstat: 256 Tests: 14 Failed: 1) Failed test: 13 Non-zero exit status: 1 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, 42, 68, 94, 107, 133 t/10-fileno.t (Wstat: 0 Tests: 21 Failed: 0) TODO passed: 19 Files=30, Tests=1607, 30 wallclock secs ( 0.33 usr 0.03 sys + 1.16 cusr 0.15 csys = 1.67 CPU) Result: FAIL Failed 1/30 test programs. 1/1607 subtests failed. make: *** [test_dynamic] Error 255 SAPER/Net-Pcap-0.16.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.16.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: SAPER/Net-Pcap-0.16.tar.gz : make_test NO cpan[16]> ###
Subject: Re: [rt.cpan.org #80498] Net-Pcap Bugreport
Date: Wed, 31 Oct 2012 00:52:52 +0100
To: bug-Net-Pcap [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Dennis (cracky) wrote via RT: Show quoted text
> Hey there,
Hello, Show quoted text
> the compilation of Net::Pcap module fails.
No. The compilation succeeded, and all but 1 out of 1607 failed. A future release will change this test from t/03-openlive.t so it isn't as weak. The module works perfectly on your system. Just "force install" it. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.