./stubs.inc:187:2: warning: "the function pcap_list_datalinks() is not available" [-W#warnings] #warning "the function pcap_list_datalinks() is not available" ^ ./stubs.inc:322:2: warning: "the function pcap_createsrcstr() is not available" [-W#warnings] #warning "the function pcap_createsrcstr() is not available" ^ ./stubs.inc:337:2: warning: "the function pcap_parsesrcstr() is not available" [-W#warnings] #warning "the function pcap_parsesrcstr() is not available" ^ ./stubs.inc:352:2: warning: "the function pcap_open() is not available" [-W#warnings] #warning "the function pcap_open() is not available" ^ ./stubs.inc:357:8: error: redefinition of 'pcap_rmtauth' struct pcap_rmtauth { ^ /usr/local/macports/include/pcap/pcap.h:788:8: note: previous definition is here struct pcap_rmtauth ^ In file included from Pcap.xs:43: ./stubs.inc:373:2: warning: "the function pcap_setbuff() is not available" [-W#warnings] #warning "the function pcap_setbuff() is not available" ^ ./stubs.inc:388:2: warning: "the function pcap_setuserbuffer() is not available" [-W#warnings] #warning "the function pcap_setuserbuffer() is not available" ^ ./stubs.inc:403:2: warning: "the function pcap_setmode() is not available" [-W#warnings] #warning "the function pcap_setmode() is not available" ^ ./stubs.inc:418:2: warning: "the function pcap_setmintocopy() is not available" [-W#warnings] #warning "the function pcap_setmintocopy() is not available" ^ ./stubs.inc:433:2: warning: "the function pcap_sendqueue_alloc() is not available" [-W#warnings] #warning "the function pcap_sendqueue_alloc() is not available" ^ ./stubs.inc:455:2: warning: "the function pcap_sendqueue_destroy() is not available" [-W#warnings] #warning "the function pcap_sendqueue_destroy() is not available" ^ ./stubs.inc:469:2: warning: "the function pcap_sendqueue_queue() is not available" [-W#warnings] #warning "the function pcap_sendqueue_queue() is not available" ^ ./stubs.inc:484:2: warning: "the function pcap_sendqueue_transmit() is not available" [-W#warnings] #warning "the function pcap_sendqueue_transmit() is not available" ^ ./stubs.inc:499:2: warning: "the function pcap_event() is not available" [-W#warnings] #warning "the function pcap_event() is not available" ^ ./stubs.inc:514:2: warning: "the function pcap_setsampling() is not available" [-W#warnings] #warning "the function pcap_setsampling() is not available" ^ ./stubs.inc:519:8: error: redefinition of 'pcap_samp' struct pcap_samp { ^ /usr/local/macports/include/pcap/pcap.h:914:8: note: previous definition is here struct pcap_samp ^ Pcap.xs:108:13: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] RETVAL = pcap_lookupdev(errbuf); ^ /usr/local/macports/include/pcap/pcap.h:327:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/local/macports/include/pcap/funcattrs.h:225:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ Pcap.xs:222:33: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] char *dev = pcap_lookupdev(errbuf); ^ /usr/local/macports/include/pcap/pcap.h:327:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/local/macports/include/pcap/funcattrs.h:225:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ Pcap.c:1702:9: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] RETVAL = pcap_strerror(error); ^ ~~~~~~~~~~~~~~~~~~~~ 17 warnings and 2 errors generated. make: *** [Pcap.o] Error 1