You are not logged in.

#1 2011-08-05 07:04:52

warped
Member
Registered: 2009-08-19
Posts: 41

unable to build perl-net-pcap

Hi,
I just do successful full system upgrade. Some of written by me apps needs perl-net-pcap.
Unfortunately no matter what - I'm not able successfully build perl-net-pcap package.

PKGBUILD is following:

# Maintainer: Alessandro Nakamuta <alessandro dot ufms at gmail dot com>

pkgname=perl-net-pcap
pkgver=0.16
pkgrel=1
pkgdesc="Perl/CPAN Module Net::Pcap"
arch=("i686" "x86_64")
url="http://search.cpan.org/dist/Net-Pcap"
license=("GPL" "PerlArtistic")
options=('!emptydirs')
source=("http://cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-$pkgver.tar.gz")
depends=('perl' 'libpcap' 'glibc')
md5sums=('b150d8e0a40137fad2a7df792d80cab4')

build() {
        cd "$srcdir/Net-Pcap-$pkgver"

        # install module in vendor directories.
        PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
        make
        make install DESTDIR="$pkgdir/"

        # remove perllocal.pod and .packlist
        find "$pkgdir" -name perllocal.pod -delete
        find "$pkgdir" -name .packlist -delete
}

Console output is:

==> WARNING: Skipping integrity checks.
==> Extracting Sources...
  -> Extracting Net-Pcap-0.16.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
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. 
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: A failure occurred in build().
    Aborting...

I make sure libpcap is installed.
Also header files are present in usr/include/pcap. I symlinked them also in /usr/local/include

By perl-net-pcap read me, in PKGBUILD I try to add
 
# install module in vendor directories.
        PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor INC=-I/usr/include/pcap LIBS='-L/usr/lib/pcap -lpcap'
        make

Unfortunately I still get the same error.
Has anybody Idea where issues is ?
Thx in advance

Last edited by warped (2011-08-05 16:43:26)

Offline

#2 2011-08-05 10:19:59

Ari'osika
Member
From: Your computer, okay?
Registered: 2010-06-22
Posts: 175

Re: unable to build perl-net-pcap

Could you please revise your post with code tags.. and while you're at it post your PKGBUILD?

Thanks.


If you're reading this; you're awesome.

Offline

#3 2011-08-05 16:35:46

warped
Member
Registered: 2009-08-19
Posts: 41

Re: unable to build perl-net-pcap

Ari'osika wrote:

Could you please revise your post with code tags.. and while you're at it post your PKGBUILD?

Thanks.

oops - sorry. I was in hurry....
Done !

Last edited by warped (2011-08-05 16:43:52)

Offline

#4 2011-08-05 21:33:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: unable to build perl-net-pcap

You should post this on the AUR page - the maintainer may help you.

Offline

#5 2011-08-06 02:23:56

Ari'osika
Member
From: Your computer, okay?
Registered: 2010-06-22
Posts: 175

Re: unable to build perl-net-pcap

I agree with karol and tell him It appears that the problem 0.16 of the module. (You'll need to use the 0.15 to build your module.)

# Maintainer: waka waka at waka@waka.waka

pkgname=perl-net-pcap
_cpanname=Net-Pcap
pkgver=0.15
pkgrel=1
pkgdesc="waka waka"
arch=('any')
url="http://search.cpan.org/~mstplbg/${_cpanname}/"
license=('GPL' 'Perl Artistic')
depends=('perl' 'libpcap')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/${_cpanname}-${pkgver}.tar.gz")
md5sums=('1e5fa5cbee1cb54cd0f0756c2c6ee521')

build() {
 cd "$srcdir/${_cpanname}-${pkgver}"
 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
 make || return 1
 make install DESTDIR="$pkgdir/" || return 1
}

You get to fill in all the glory details tongue but just for reference, here's what I came up with.


If you're reading this; you're awesome.

Offline

#6 2011-08-07 13:40:01

warped
Member
Registered: 2009-08-19
Posts: 41

Re: unable to build perl-net-pcap

Guys,
Thx for help.
I simply forgot to do 1st thing which should be done in such cases: test older ver. of src.pkg
-br

Offline

Board footer

Powered by FluxBB