tnteverett has asked for the wisdom of the Perl Monks concerning the following question:

http://cpansearch.perl.org/src/SULLR/Net-Inspect-0.303/tools/rtpxtract.pl

I am not able to resolve a Line 62 Error:

rtpextract.pl

Undefined subroutine &main::pcap_open_offline called at ~/bin/rtpextract.pl line 62.

Anyone know what the problem is here?

PROBLEM RESOLVED: See responses

Replies are listed 'Best First'.
Re: Example rtpextract does not compile
by toolic (Bishop) on Aug 20, 2014 at 14:33 UTC

    Tip #11 from the Basic debugging checklist: Is your installed version the latest version? The first thing you should try is to upgrade to 0.304.

      Also, try upgrading Net::Pcap too, the methods with pcap_ prefix were added in 0.15.
        Everything was upgraded with the latest.

        What I found was that the line 6 "use Net::Pcap qw(:functions);" had to be changed to "use Net::Pcap;".

        Once this was done the example compiled.

        I have never used this feature before and do not yet understand why it failed.