From owner-freebsd-ports@FreeBSD.ORG Wed Jan 2 20:38:00 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ADF416A417 for ; Wed, 2 Jan 2008 20:38:00 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id EF94913C459 for ; Wed, 2 Jan 2008 20:37:59 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id E42481CC038; Wed, 2 Jan 2008 12:37:59 -0800 (PST) Date: Wed, 2 Jan 2008 12:37:59 -0800 From: Jeremy Chadwick To: Piotr Message-ID: <20080102203759.GA25217@eos.sc1.parodius.com> References: <20080102200622.81FA32F5AE@xprdmxin.myway.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080102200622.81FA32F5AE@xprdmxin.myway.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-ports@freebsd.org Subject: Re: Undefined subroutine &Net::Pcapdump X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 20:38:00 -0000 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 |