You are not logged in.
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
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
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
You should post this on the AUR page - the maintainer may help you.
Offline
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
but just for reference, here's what I came up with.
If you're reading this; you're awesome.
Offline
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