LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-02-2008, 06:31 PM   #1
m07hm4n
LQ Newbie
 
Registered: Aug 2006
Location: Belgrade
Distribution: CentOS 7
Posts: 4

Rep: Reputation: 0
Problem installing Net::Pcap in Slackware 12.1...strange error!


Hi, I'am trying to install Net-Pcap-0.26 perl module and I'am getting this strange error...can somebody tell me what's wrong with this, I'am totally confused...I'm using Slackware 12.1, perl 5.8.8, gcc 4.2.3, kernel 2.6.24.5, libpcap-0.9.7-i486 and tcpdump-3.9.8-i486:

Code:
root@elite:~# perl -MCPAN -eshell

cpan shell -- CPAN exploration and modules installation (v1.9301)
ReadLine support enabled

                                                                                                   cpan[1]> install Net::Pcap
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 02 Dec 2008 20:29:21 GMT
Running install for module 'Net::Pcap'
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.015)
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
DEL(1/1): /root/.cpan/build/CPAN-1.9301
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: YAML loaded ok (v0.66)

  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... 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/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
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-thread-multi/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':
Pcap.xs:57: warning: pointer targets in passing argument 2 of 'Perl_newSVpv' differ in signedness
Pcap.xs: In function 'XS_Net__Pcap_next_ex':
Pcap.xs:494: warning: pointer targets in passing argument 3 of 'Perl_sv_setpvn' differ in signedness
Pcap.xs: In function 'XS_Net__Pcap_dump':
Pcap.xs:553: warning: pointer targets in passing argument 3 of 'pcap_dump' differ in signedness
Pcap.c: In function 'XS_Net__Pcap_dump_file':
Pcap.c:1083: warning: passing argument 2 of 'Perl_newGVgen' discards qualifiers from pointer target type
Pcap.c:1085: warning: passing argument 3 of 'Perl_do_open' discards qualifiers from pointer target type
Pcap.c: In function 'XS_Net__Pcap_strerror':
Pcap.c:1384: warning: assignment discards qualifiers from pointer target type
Pcap.c: In function 'XS_Net__Pcap_file':
Pcap.c:1428: warning: passing argument 2 of 'Perl_newGVgen' discards qualifiers from pointer target type
Pcap.c:1430: warning: passing argument 3 of 'Perl_do_open' discards qualifiers from pointer target type
Pcap.xs: In function 'XS_Net__Pcap_sendpacket':
Pcap.xs:963: warning: pointer targets in passing argument 2 of 'pcap_sendpacket' differ in signedness
Pcap.c: In function 'boot_Net__Pcap':
Pcap.c:2050: warning: initialization discards qualifiers from pointer target type
Pcap.c:2054: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2055: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2056: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2057: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2058: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2059: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2060: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2061: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2062: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2063: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2064: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2065: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2066: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2067: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2068: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2069: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2070: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2071: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2072: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2073: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2074: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2075: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2076: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2077: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2078: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2079: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2080: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2081: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2082: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2083: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2084: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2085: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2086: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2087: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2088: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2089: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2090: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2091: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2092: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2093: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2094: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2095: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2096: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2097: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2098: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2099: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2100: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2101: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2102: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2103: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2104: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2105: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2106: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2107: warning: passing argument 2 of 'Perl_newXS' 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

                                                                                                   cpan[2]>

I tried to install it manually, too, but same problem occured. Does somebody managed to install that module in Slackware 12.1 yet? Thank you for any help you might provide.

Regards,
Nenad


PS: I so sorry if this is not the right place for this tread, feel free to move it to the right place.
 
Old 12-02-2008, 07:28 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
This might be better if you asked for it to be moved to the Slackware forum.
 
Old 12-03-2008, 12:08 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This is odd, none of the Slackware "perl's" will
make this module ( slack 11, 12, 12.1 )

Most other Linux's : no problems.

Compiling a new perl is a possibility, just tried
with perl-5.8.9-RC1, and you have the option to add
"Net::Pcap" during the " ./Configure " process.
( You will be asked, which modules to be included. )

And this perl did make the module, incl. the tests.
As this is experimental, I did no install, compiling
only.
....

Last edited by knudfl; 12-03-2008 at 02:00 PM.
 
  


Reply

Tags
cpan, libpcap, perl, slackware, tcpdump


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
configure: error: Header file pcap.h not found; when tried installing ethereal networ ssangeetha Linux - Software 6 05-02-2013 01:28 PM
Problem installing Net-Pcap 0.16 perl module m07hm4n Linux - Software 0 07-30-2008 10:46 AM
Net::pcap installing prob unixshell101 Linux - Software 1 03-10-2008 10:57 AM
Can't install Net::Pcap SlackN00b Slackware 11 02-25-2008 08:40 PM
WEPCrack and Can't locate Net/Pcap.pm jimdaworm SUSE / openSUSE 4 03-22-2006 01:31 PM

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

All times are GMT -5. The time now is 02:05 AM.

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