Date: Wed, 2 Jan 2008 12:37:59 -0800 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Piotr <piotrekk@excite.com> Cc: freebsd-ports@freebsd.org Subject: Re: Undefined subroutine &Net::Pcapdump Message-ID: <20080102203759.GA25217@eos.sc1.parodius.com> In-Reply-To: <20080102200622.81FA32F5AE@xprdmxin.myway.com> References: <20080102200622.81FA32F5AE@xprdmxin.myway.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 02, 2008 at 03:06:22PM -0500, Piotr wrote: > I've updated my ports tree and sinfp on my freeBSD 6.2, but still get the > following error: > > # sinfp -i host -C -V -p 443 > P1: B10113 F0x12 W5840 O0204ffff M1460 > P2: B10113 F0x12 W5792 O0204ffff0402080affffffff4445414401030300 M1460 > P3: B00000 F0 W0 O0 M0 > IPv4: Linux 2.4.x, 2.6.x > Undefined subroutine &Net::Pcapdump called at > /usr/local/lib/perl5/site_perl/5.8.8/Net/Packet/Dump.pm line 561. > > what's wrong ? It looks as if the Net::Packet::Dump perl module is trying to call function Net::Pcapdump (which would be another perl module). The source to Net::Packet::Dump, for 3.25, is here: http://search.cpan.org/src/GOMOR/Net-Packet-3.25/lib/Net/Packet/Dump.pm I see no reference to Net::Pcapdump in that code. So I'm not sure how it's getting called; I'd have to install ports/net/p5-Net-Packet and dig around. For what it's worth, there is a perl module called Net::Pcap (in ports as ports/net/p5-Net-Pcap) that interfaces with the C library libpcap. That perl module has a function called Net::Pcap::dump(), which is probably what Net::Packet::Dump should be attempting to call. ports/net/p5-Net-Packet has a dependency on ports/net/p5-Net-Pcap, so that isn't the problem. I'm thinking the problem might be related to ports/net/p5-Net-Pcap being out-of-date (0.15 is not the newest). Looking at the CPAN Changelog for the module, I see there's a major bugfix in 0.16 which could explain what's happening: http://search.cpan.org/src/SAPER/Net-Pcap-0.16/Changes - [BUGFIX] A typo prevented the new function names from working. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080102203759.GA25217>