Skip Menu |

This queue is for tickets about the Net-Pcap CPAN distribution.

Report information
The Basics
Id: 40718
Status: open
Priority: 0/
Queue: Net-Pcap

People
Owner: Nobody in particular
Requestors: kaiorafael [...] dcc.ufam.edu.br
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #40718] Net::Pcap 0.16 with libpcap1.0.0
Date: Sat, 8 Nov 2008 02:48:19 +0100
To: bug-Net-Pcap [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Hello, Kaio Rafael wrote via RT: Show quoted text
> 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. > > [...] > > I have downloaded the last stable version and the same errors appear.
Did you install this new libpcap over the one you previously had or did you install it in another location? Judging from the message, it looks like the module can only find an old version of the libpcap. If you installed it in a specific location, you must pass it to Makefile.PL: $ perl Makefile.PL INC=-I/usr/local/include/pcap \ LIBS='-L/usr/lib/pcap -lpcap' -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #40718] Net::Pcap 0.16 with libpcap1.0.0
Date: Tue, 18 Nov 2008 13:31:31 -0400
To: bug-Net-Pcap [...] rt.cpan.org
From: Kaio Rafael <kaiorafael [...] dcc.ufam.edu.br>
Sébastien Aperghis-Tramoni via RT escreveu: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40718 > > > Hello, > > Kaio Rafael wrote via RT: > >
>> 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. >> >> [...] >> >> I have downloaded the last stable version and the same errors appear. >>
> > > Did you install this new libpcap over the one you previously had or > did you install it in another location? Judging from the message, it > looks like the module can only find an old version of the libpcap. If > you installed it in a specific location, you must pass it to > Makefile.PL: > > $ perl Makefile.PL INC=-I/usr/local/include/pcap \ > LIBS='-L/usr/lib/pcap -lpcap' > > >
Hi, I have followed the procedure as you told, but even that gives me the same error I searched in the net, and there are some other post with the same error. I will try to fix the problem -- Kaio Rafael Site: http://www.dcc.ufam.edu.br/~kaiorafael/ E-mail: kaiorafael at dcc dot ufam dot edu dot br