$perl Makefile.PL PREFIX=/tmp/123/1
looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
Writing Makefile for Net::Pcapтут вроде нормально...
$make
Skip blib/lib/Net/Pcap.pm (unchanged)
cc -c -Wall -Wwrite-strings -O2 -march=i486 -mtune=i686 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux/CORE" -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"...
Pcap.c:1384: warning: assignment discards qualifiers from pointer target type
Pcap.c: In function `XS_Net__Pcap_file':
Pcap.c:1428: warning: passing arg 1 of `Perl_newGVgen' discards qualifiers from pointer target type
Pcap.c:1430: warning: passing arg 2 of `Perl_do_open' discards qualifiers from pointer target type
Pcap.c: In function `boot_Net__Pcap':
Pcap.c:2050: warning: initialization discards qualifiers from pointer target type
Pcap.c:2054: warning: passing arg 1 of `Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2055: warning: passing arg 1 of `Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2056: warning: passing arg 1 of `Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2057: warning: passing arg 1 of `Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2107: warning: passing arg 1 of `Perl_newXS' discards qualifiers from pointer target type
make: *** [Pcap.o] Error 1что не так?
нашел rpm с собранным Net-Pcap-0.14, перекинул файлы оттуда в систему вручную:/usr/lib/perl5/5.8.8/Net/Pcap.pm
/usr/lib/perl5/5.8.8/auto/Net/Pcap/Pcap.so
/usr/lib/perl5/5.8.8/auto/Net/Pcap/autosplit.ixзапустил скрипт:
---
#!/usr/bin/perl -w
use strict;
use Net::Pcap;
print "ok\n";
---выводится сообщение:
---
Can't load '/usr/lib/perl5/5.8.8/i486-linux/auto/Net/Pcap/Pcap.so' for module Net::Pcap: libpcap.so.0.9: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i486-linux/DynaLoader.pm line 230.
at ./2.pl line 5
Compilation failed in require at ./2.pl line 5.
BEGIN failed--compilation aborted at ./2.pl line 5.
---что за libpcap.so, ктонибуть собирал вручную libpcap и Net::Pcap или все юзают пакетные менеджеры?
P.S. дистр slackware
Если не знаете что такое *.so, как работает perl с либами и как интерпретировать тривиальные ошибки при сборке, то зачем вы юзаете слаку? Кончайте косить под крутого и переходите на дистры, позволяющие делать вашу непосредственную работу, а не выпендриваться перед *