LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2010, 05:03 AM   #1
singhabsk
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Unhappy cannot install Net::Pcap on fedora12


hello friends,
here is my problem
i want to install perl modules like Net::Pcap using cpan shell but its displaying you have lpcap older version .
i dont know why it is coming,,, i have latest version of libpcap.so.1 and cpan installing Net::Pcap.0.16
is there any compatibility issues........help me out i m died completely
i have fedora12
Code:
cpan> install Net::Pcap
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.008)
............................................................................DONE
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Mon, 15 Nov 2010 17:30:39 GMT
CPAN: HTTP::Date loaded ok (v5.810)
...............
  New CPAN.pm version (v1.9402) available.
  [Currently running version is v1.9205]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

CPAN: Time::HiRes loaded ok (v1.9719)

.............................................................DONE
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Running install for module 'Net::Pcap'
CPAN: YAML loaded ok (v0.72)
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: LWP::UserAgent loaded ok (v5.824)
Fetching with LWP:
  http://www.perl.org/CPAN/authors/id/...APER/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Net-Pcap-0.16/
Net-Pcap-0.16/bin/
Net-Pcap-0.16/bin/pcapinfo
Net-Pcap-0.16/Changes
Net-Pcap-0.16/eg/
Net-Pcap-0.16/eg/pcapdump
Net-Pcap-0.16/eg/pktdump.pl
Net-Pcap-0.16/fallback/
Net-Pcap-0.16/fallback/const-c.inc
Net-Pcap-0.16/fallback/const-xs.inc
Net-Pcap-0.16/Makefile.PL
Net-Pcap-0.16/MANIFEST
Net-Pcap-0.16/META.yml
Net-Pcap-0.16/Pcap.pm
Net-Pcap-0.16/Pcap.xs
Net-Pcap-0.16/ppport.h
Net-Pcap-0.16/README
Net-Pcap-0.16/stubs.inc
Net-Pcap-0.16/t/
Net-Pcap-0.16/t/00-load.t
Net-Pcap-0.16/t/01-api.t
Net-Pcap-0.16/t/02-lookup.t
Net-Pcap-0.16/t/03-openlive.t
Net-Pcap-0.16/t/04-loop.t
Net-Pcap-0.16/t/05-dump.t
Net-Pcap-0.16/t/06-offline.t
Net-Pcap-0.16/t/07-stats.t
Net-Pcap-0.16/t/08-filter.t
Net-Pcap-0.16/t/09-error.t
Net-Pcap-0.16/t/10-fileno.t
Net-Pcap-0.16/t/11-snapshot.t
Net-Pcap-0.16/t/12-next.t
Net-Pcap-0.16/t/13-dispatch.t
Net-Pcap-0.16/t/14-datalink.t
Net-Pcap-0.16/t/15-is_swapped.t
Net-Pcap-0.16/t/16-setnonblock.t
Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16/t/18-open_dead.t
Net-Pcap-0.16/t/19-breakloop.t
Net-Pcap-0.16/t/20-constants.t
Net-Pcap-0.16/t/21-next_ex.t
Net-Pcap-0.16/t/22-open.t
Net-Pcap-0.16/t/23-srcstr.t
Net-Pcap-0.16/t/50-poe-component-pcap.t
Net-Pcap-0.16/t/distchk.t
Net-Pcap-0.16/t/pod.t
Net-Pcap-0.16/t/podcover.t
Net-Pcap-0.16/t/podspell.t
Net-Pcap-0.16/t/portfs.t
Net-Pcap-0.16/t/README
Net-Pcap-0.16/t/samples/
Net-Pcap-0.16/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.16/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.16/t/Utils.pm
Net-Pcap-0.16/typemap
CPAN: File::Temp loaded ok (v0.21)

  CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz

looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... no
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to have an old version of the pcap library. 

This module need a recent version of the pcap library in order to provide 
access to all its features. You can still compile it with your old pcap 
library but some functions won't be available, and trying to use them in 
Perl programs will generate errors. Programs only using the old functions 
should perform as previously. If not, don't hesitate to fill a bug. 

You can get the latest sources of the pcap library at 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. 
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap  Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
gcc -c   -Wall -Wwrite-strings -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE"  -DHAVE_BLANK Pcap.c
In file included from Pcap.xs:43:
stubs.inc:71:2: warning: #warning "the function pcap_lib_version() is not available, but will be emulated"
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.h:244: note: previous declaration of ‘pcap_compile_nopcap’ was here
stubs.inc:268: error: conflicting types for ‘pcap_compile_nopcap’
/usr/local/include/pcap.h:244: note: 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’:
Pcap.xs:57: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/proto.h:1607: note: expected ‘const char *’ but argument is of type ‘u_char *’
Pcap.xs:62: warning: value computed is not used
Pcap.xs:63: warning: value computed is not used
Pcap.xs:64: warning: value computed is not used
Pcap.xs:65: warning: value computed is not used
Pcap.xs: In function ‘XS_Net__Pcap_findalldevs_xs’:
Pcap.xs:196: warning: value computed is not used
Pcap.xs:199: warning: value computed is not used
Pcap.xs:202: warning: value computed is not used
Pcap.xs:220: warning: value computed is not used
Pcap.xs:222: warning: value computed is not used
Pcap.xs: In function ‘XS_Net__Pcap_next’:
Pcap.xs:447: warning: value computed is not used
Pcap.xs:448: warning: value computed is not used
Pcap.xs:449: warning: value computed is not used
Pcap.xs:450: warning: value computed is not used
Pcap.xs: In function ‘XS_Net__Pcap_next_ex’:
Pcap.xs:489: warning: value computed is not used
Pcap.xs:490: warning: value computed is not used
Pcap.xs:491: warning: value computed is not used
Pcap.xs:492: warning: value computed is not used
Pcap.xs:494: warning: pointer targets in passing argument 3 of ‘Perl_sv_setpvn’ differ in signedness
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/proto.h:2416: note: expected ‘const char *’ but argument is of type ‘const u_char *’
Pcap.xs: In function ‘XS_Net__Pcap_dump’:
Pcap.xs:553: warning: pointer targets in passing argument 3 of ‘pcap_dump’ differ in signedness
/usr/local/include/pcap.h:268: note: expected ‘const u_char *’ but argument is of type ‘char *’
Pcap.c: In function ‘XS_Net__Pcap_strerror’:
Pcap.c:1572: warning: assignment discards qualifiers from pointer target type
Pcap.xs: In function ‘XS_Net__Pcap_stats’:
Pcap.xs:742: warning: value computed is not used
Pcap.xs:744: warning: value computed is not used
Pcap.xs:746: warning: value computed is not used
Pcap.xs: In function ‘XS_Net__Pcap_sendpacket’:
Pcap.xs:963: warning: pointer targets in passing argument 2 of ‘pcap_sendpacket’ differ in signedness
/usr/local/include/pcap.h:239: note: expected ‘const u_char *’ but argument is of type ‘char *’
Pcap.c: In function ‘boot_Net__Pcap’:
Pcap.c:2335: warning: initialization discards qualifiers from pointer target type
make: *** [Pcap.o] Error 1
  SAPER/Net-Pcap-0.16.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 SAPER/Net-Pcap-0.16.tar.gz                   : make NO

Last edited by XavierP; 11-16-2010 at 06:12 AM. Reason: code tags make me happy
 
Old 11-16-2010, 05:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
- Do not resurrect stale threads.
- Do not post duplicate threads or make duplicate posts.


Quote:
Originally Posted by singhabsk View Post
i have fedora12
Fedora 12 is stale and 13 will be soon: run Fedora 14.


Code:
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.
So did you?
 
Old 11-16-2010, 06:13 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-18-2010, 11:16 PM   #4
singhabsk
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
yes i have devel packages installed also.........
thanking you for response
help me out plz........
 
Old 11-18-2010, 11:20 PM   #5
singhabsk
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
why its mentioning you don't have latest version of libpcap for lpcap()...
while i had installed libpcap..1.0
is there any compatibility issues between Net::Pcap and libpcap ??????
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Net::pcap installing prob unixshell101 Linux - Software 1 03-10-2008 09:57 AM
Can't install Net::Pcap SlackN00b Slackware 11 02-25-2008 07:40 PM
WEPCrack and Can't locate Net/Pcap.pm jimdaworm SUSE / openSUSE 4 03-22-2006 12:31 PM
Perl Net::Pcap install hang at loop test Bluesuperman Programming 1 08-17-2005 10:39 AM
libpcap.so.0 is needed by perl-Net-Pcap-0.04-5 r4736 Linux - Software 8 10-18-2003 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration