Subject: | Net::Pcap 0.16 with libpcap1.0.0 |
Date: | Thu, 06 Nov 2008 11:30:45 -0400 |
To: | bug-Net-Pcap [...] rt.cpan.org. |
From: | Kaio Rafael <kaiorafael [...] dcc.ufam.edu.br> |
Hello,
I'm running a Debian system with a libpcap from source
http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz, everthing goes just
fine. But when i wanna install Net::Pcap, many errors regading '
previous declaration of 'SOME_FUNCTION_NAME’ was here ' shows me and i
can not continue the installation.
looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Pcap
cp Pcap.pm blib/lib/Net/Pcap.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap Pcap.xs >
Pcap.xsc && mv Pcap.xsc Pcap.c
cc -c -Wall -Wwrite-strings -O2 -DVERSION=\"0.16\"
-DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl/5.8/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"
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:187:2: warning: #warning "the function pcap_list_datalinks()
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:267: error: conflicting types for ‘pcap_compile_nopcap’
/usr/local/include/pcap/pcap.h:304: error: previous declaration of
‘pcap_compile_nopcap’ was here
stubs.inc:268: error: conflicting types for ‘pcap_compile_nopcap’
/usr/local/include/pcap/pcap.h:304: error: previous declaration of
‘pcap_compile_nopcap’ was here
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.xs: In function ‘callback_wrapper’:
I have downloaded the last stable version and the same errors appear.
Regards,
--
Kaio Rafael
Site: http://www.dcc.ufam.edu.br/~kaiorafael/
E-mail: kaiorafael at dcc dot ufam dot edu dot br