cannot install p5-Net-Pcap

Piotr piotrekk at excite.com
Sat Jan 5 18:19:06 PST 2008


I've installed the newest libpcap-0.9.7_1, but I'm still getting errors:

# pkg_info | grep libpcap
libpcap-0.9.7_1     Ubiquitous network traffic capture library

# cd /usr/ports/net/p5-Net-Pcap
# make deinstall clean
===>  Deinstalling for net/p5-Net-Pcap
===>   p5-Net-Pcap not installed, skipping
===>  Cleaning for p5-Net-Pcap-0.15_1
bsd# make install clean$
===>  Vulnerability check disabled, database not found
===>  Extracting for p5-Net-Pcap-0.15_1
=> MD5 Checksum OK for Net-Pcap-0.15.tar.gz.
=> SHA256 Checksum OK for Net-Pcap-0.15.tar.gz.
===>   p5-Net-Pcap-0.15_1 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Patching for p5-Net-Pcap-0.15_1
===>   p5-Net-Pcap-0.15_1 depends on file: /usr/local/bin/perl5.8.8 - found
/usr/bin/find /usr/ports/net/p5-Net-Pcap/work/Net-Pcap-0.15 -name "._Pcap.pm" -delete
===>  Applying FreeBSD patches for p5-Net-Pcap-0.15_1
===>   p5-Net-Pcap-0.15_1 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Configuring for p5-Net-Pcap-0.15_1
looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
WARNING: LICENSE is not a known parameter.
Checking if your kit is complete...
Looks good
'LICENSE' is not a known MakeMaker parameter name.
Writing Makefile for Net::Pcap
===>  Building for p5-Net-Pcap-0.15_1
cp Pcap.pm blib/lib/Net/Pcap.pm
/usr/local/bin/perl5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
cc -c    -O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe    -DVERSION=\"0.15\"  -DXS_VERSION=\"0.15\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE"  -DHAVE_PCAP_LIST_DATALINKS -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION Pcap.c
In file included from Pcap.xs:43:
stubs.inc:85:2: warning: #warning "the function pcap_findalldevs() is not available, but will be emulated"
In file included from Pcap.xs:43:
stubs.inc:91: error: redefinition of `struct pcap_if'
stubs.inc:113:2: warning: #warning "the function pcap_breakloop() is not available"
stubs.inc:127:2: warning: #warning "the function pcap_setnonblock() is not available"
stubs.inc:142:2: warning: #warning "the function pcap_getnonblock() is not available"
stubs.inc:157:2: warning: #warning "the function pcap_dump_file() is not available"
stubs.inc:172:2: warning: #warning "the function pcap_dump_flush() is not available"
stubs.inc:202:2: warning: #warning "the function pcap_set_datalink() is not available"
stubs.inc:217:2: warning: #warning "the function pcap_datalink_name_to_val() is not available"
stubs.inc:232:2: warning: #warning "the function pcap_datalink_val_to_name() is not available"
stubs.inc:247:2: warning: #warning "the function pcap_datalink_val_to_description() is not available"
stubs.inc:262:2: warning: #warning "the function pcap_compile_nopcap() is not available"
stubs.inc:277:2: warning: #warning "the function pcap_get_selectable_fd() is not available"
stubs.inc:292:2: warning: #warning "the function pcap_next_ex() is not available"
stubs.inc:307:2: warning: #warning "the function pcap_sendpacket() is not available"
stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available"
stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available"
stubs.inc:352:2: warning: #warning "the function pcap_open() is not available"
stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available"
stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available"
stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available"
stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available"
stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available"
stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available"
stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available"
stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available"
stubs.inc:499:2: warning: #warning "the function pcap_event() is not available"
stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available"
Pcap.c: In function `XS_Net__Pcap_dump_open':
Pcap.c:541: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setnonblock':
Pcap.c:574: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_getnonblock':
Pcap.c:624: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_dispatch':
Pcap.c:676: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_loop':
Pcap.c:724: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_next':
Pcap.c:767: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_next_ex':
Pcap.c:831: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_dump':
Pcap.c:898: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_compile':
Pcap.c:970: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setfilter':
Pcap.c:1050: warning: cast to pointer from integer of different size
Pcap.c:1057: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_freecode':
Pcap.c:1085: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_breakloop':
Pcap.c:1112: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_close':
Pcap.c:1139: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_dump_close':
Pcap.c:1166: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_dump_file':
Pcap.c:1194: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_dump_flush':
Pcap.c:1232: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_datalink':
Pcap.c:1262: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_set_datalink':
Pcap.c:1293: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_snapshot':
Pcap.c:1392: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_is_swapped':
Pcap.c:1422: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_major_version':
Pcap.c:1452: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_minor_version':
Pcap.c:1482: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_perror':
Pcap.c:1511: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_geterr':
Pcap.c:1540: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_file':
Pcap.c:1614: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_fileno':
Pcap.c:1652: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_get_selectable_fd':
Pcap.c:1682: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_stats':
Pcap.c:1713: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setuserbuffer':
Pcap.c:1981: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setbuff':
Pcap.c:2012: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setmode':
Pcap.c:2043: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_setmintocopy':
Pcap.c:2074: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_getevent':
Pcap.c:2108: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_sendpacket':
Pcap.c:2143: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_sendqueue_queue':
Pcap.c:2228: warning: cast to pointer from integer of different size
Pcap.c: In function `XS_Net__Pcap_sendqueue_transmit':
Pcap.c:2300: warning: cast to pointer from integer of different size
Pcap.c:2307: warning: cast to pointer from integer of different size
*** Error code 1

Stop in /usr/ports/net/p5-Net-Pcap/work/Net-Pcap-0.15.
*** Error code 1

Stop in /usr/ports/net/p5-Net-Pcap.










 --- On Sat 01/05, Max Laier < max at love2party.net > wrote:
From: Max Laier [mailto: max at love2party.net]
To: freebsd-ports at freebsd.org, piotrekk at excite.com
     Cc: koitsu at freebsd.org
Date: Sun, 6 Jan 2008 03:10:45 +0100
Subject: Re: cannot install p5-Net-Pcap

On Sunday 06 January 2008, Piotr wrote:> now I'm getting this error:>> # cd /usr/ports/net/p5-Net-Pcap> # make reinstall clean>> ===>  Building for p5-Net-Pcap-0.15_1> Makefile out-of-date with respect to> /usr/local/lib/perl5/5.8.8/mach/Config.pm /> usr/local/lib/perl5/5.8.8/mach/CORE/config.h> Cleaning current config before rebuilding Makefile...> make -f Makefile.old clean > /dev/null 2>&1> /usr/local/bin/perl5.8.8 Makefile.PL "INSTALLDIRS=site" "CC=cc"> "CCFLAGS=-O2 -fn o-strict-aliasing -pipe " "PREFIX=/usr/local"> "INSTALLPRIVLIB=/usr/local/lib" "I NSTALLARCHLIB=/usr/local/lib"> looking for -lpcap... yes> checking for pcap_lib_version() in -lpcap... no>         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -> You appear to have an old version of the pcap library.>> This module need a recent version of the pcap library in order to> provide access to all its features. You can still compile it with your> old pcap library but some functions won't be available, 
and trying to> use them in Perl programs will generate errors. Programs only using the> old functions should perform as previously. If not, don't hesitate to> fill a bug.>> You can get the latest sources of the pcap library at> http://www.tcpdump.org/>> If you install the pcap library using a system package, make sure to> also install the corresponding -devel package, which contains the C> headers needed to compile this module.>         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -> detecting available functions... ok> WARNING: LICENSE is not a known parameter.> Checking if your kit is complete...> Looks good> 'LICENSE' is not a known MakeMaker parameter name.> Note (probably harmless): No library found for -lpcap> Writing Makefile for Net::Pcap> ==> Your Makefile has been rebuilt. <==> ==> Please rerun the make command.  <==> false> *** Error code 1>> Stop in /usr/ports/net/p5-Net-Pcap/work/Net-Pcap-0.15.> *** Error code 1>> Stop in /usr/ports/net/p5-Net-Pcap.>
  
*** Error code 1>> Stop in /usr/ports/net/p5-Net-Pcap.>> howto reinstall pcap, lpcap and all depending packages ?Please note that libpcap in HEAD and RELENG_7 has been updated to 0.9.8 recently while RELENG_6 remains at 0.9.4.  I'm not sure what p5-Net-Pcap really requires, but from the message you quote, 0.9.4 ain't it.  You might be able to work around this by installing net/libpcap from ports (which is at 0.9.7).  p5-Net-Pcap seems able to pick that up, too.If that doesn't help you might be required to stick with an older version of p5-Net-Pcap for the moment (or a newer one if they figure out how to support older libpcap again).-- /"\  Best regards,                      | mlaier at freebsd.org\ /  Max Laier                          | ICQ #67774661 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet/ \  ASCII Ribbon Campaign              | Against HTML Mail and NewsAttachment: signature.asc  (0.19KB)

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!




More information about the freebsd-ports mailing list