Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 504958

Summary: dev-perl/Net-Pcap - looking for -lpcap... no
Product: Gentoo Linux Reporter: gentoo
Component: [OLD] DevelopmentAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Makefile patch
emerge --info

Description gentoo 2014-03-18 13:41:48 UTC
Created attachment 372930 [details, diff]
Makefile patch

Net-Pcap-0.170.0 (and 0.160.0) does not compile on i686 with current perl-5.16.3. It will only install the doc files. Compile fails with:

packetgen3 ~ # emerge Net-Pcap
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-perl/Net-Pcap-0.170.0
 * Net-Pcap-0.17.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking Net-Pcap-0.17.tar.gz to /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/work/Net-Pcap-0.17 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/work/Net-Pcap-0.17 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Net-Pcap-0.170.0/image/
looking for -lpcap... no
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the pcap(3) library. 

If it is installed in a non-standard location, please try setting the LIBS 
and INC values on the command line.

Or get the sources and install the pcap library from 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. 
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/work/Net-Pcap-0.17 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-perl/Net-Pcap-0.170.0

>>> Install Net-Pcap-0.170.0 into /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/image/ category dev-perl
>>> Completed installing Net-Pcap-0.170.0 into /var/tmp/portage/dev-perl/Net-Pcap-0.170.0/image/

ecompressdir: bzip2 -9 /usr/share/doc

>>> Installing (1 of 1) dev-perl/Net-Pcap-0.170.0
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


Using this patch (also added as attachment) from https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/mhegTqj-aG0 i can manually install Net-Pcap.
Comment 1 gentoo 2014-03-18 13:43:31 UTC
Created attachment 372932 [details]
emerge --info
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2014-10-27 21:24:12 UTC
Perl 5.16 is masked and will be removed in a few days. 

Tested this and it works fine with both Perl 5.18 and Perl 5.20.