perl CPAN issue

Perl staying at the last line for more then 3 hours we have reinstalled operating system but nothing changed. why that happens



[root@249 /]# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

cpan[1]> install Net::PcapUtils
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 02 Sep 2015 11:41:02 GMT
Running install for module 'Net::PcapUtils'
Running make for T/TI/TIMPOTTER/Net-PcapUtils-0.01.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TI/TIMPOTTER/Net-PcapUtils-0.01.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building T/TI/TIMPOTTER/Net-PcapUtils-0.01.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Net::Pcap 0.03 not found.
Generating a Unix-style Makefile
Writing Makefile for Net::PcapUtils
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
----    TIMPOTTER/Net-PcapUtils-0.01.tar.gz   ----
    Net::Pcap [requires]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module 'Net::Pcap'
Running make for S/SA/SAPER/Net-Pcap-0.17.tar.gz
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.17.tar.gz ok

  CPAN.pm: Building S/SA/SAPER/Net-Pcap-0.17.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
Generating a Unix-style Makefile
Writing Makefile for Net::Pcap
Writing MYMETA.yml and MYMETA.json
cp Pcap.pm blib/lib/Net/Pcap.pm
Running Mkbootstrap for Pcap ()
chmod 644 "Pcap.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs 644
"/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/root/.cpan/build/Net-Pcap-0.17-OkgbIF/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-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic   -DVERSION=\"0.17\" -DXS_VERSION=\"0.17\" -fPIC "-I/usr/lib64/perl5/CORE"  -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c -o Pcap.o
In file included from Pcap.xs:43:0:
stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not available" [-Wcpp]
 #warning "the function pcap_list_datalinks() is not available"
  ^
stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" [-Wcpp]
 #warning "the function pcap_createsrcstr() is not available"
  ^
stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" [-Wcpp]
 #warning "the function pcap_parsesrcstr() is not available"
  ^
stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" [-Wcpp]
 #warning "the function pcap_open() is not available"
  ^
stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available" [-Wcpp]
 #warning "the function pcap_setbuff() is not available"
  ^
stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available" [-Wcpp]
 #warning "the function pcap_setuserbuffer() is not available"
  ^
stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available" [-Wcpp]
 #warning "the function pcap_setmode() is not available"
  ^
stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available" [-Wcpp]
 #warning "the function pcap_setmintocopy() is not available"
  ^
stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available" [-Wcpp]
 #warning "the function pcap_sendqueue_alloc() is not available"
  ^
stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" [-Wcpp]
 #warning "the function pcap_sendqueue_destroy() is not available"
  ^
stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available" [-Wcpp]
 #warning "the function pcap_sendqueue_queue() is not available"
  ^
stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available" [-Wcpp]
 #warning "the function pcap_sendqueue_transmit() is not available"
  ^
stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" [-Wcpp]
 #warning "the function pcap_event() is not available"
  ^
stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available" [-Wcpp]
 #warning "the function pcap_setsampling() is not available"
  ^
Pcap.xs: In function ‘callback_wrapper’:
Pcap.xs:57:5: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness [-Wpointer-sign]
     SV *packet  = newSVpv((u_char *)pkt, h->caplen);
     ^
In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
                 from Pcap.xs:25:
/usr/lib64/perl5/CORE/proto.h:2755:19: note: expected ‘const char * const’ but argument is of type ‘u_char *’
 PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
                   ^
Pcap.xs: In function ‘XS_Net__Pcap_next_ex’:
Pcap.xs:489:17: warning: pointer targets in passing argument 3 of ‘Perl_sv_setpvn’ differ in signedness [-Wpointer-sign]
                 sv_setpvn((SV *)SvRV(pkt_data), data, header->caplen);
                 ^
In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
                 from Pcap.xs:25:
/usr/lib64/perl5/CORE/proto.h:4188:20: note: expected ‘const char * const’ but argument is of type ‘const u_char *’
 PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV *const sv, const char *const ptr, const STRLEN len)
                    ^
Pcap.c: In function ‘XS_Net__Pcap_strerror’:
Pcap.c:1602:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
  RETVAL = pcap_strerror(error);
         ^
Pcap.xs: In function ‘XS_Net__Pcap_getevent’:
Pcap.xs:980:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         h = (unsigned int) pcap_getevent(p);
             ^
In file included from /usr/lib64/perl5/CORE/perl.h:5071:0,
                 from Pcap.xs:25:
Pcap.c: In function ‘XS_Net__Pcap_constant’:
/usr/lib64/perl5/CORE/embed.h:609:37: warning: ‘iv’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define sv_setiv(a,b)  Perl_sv_setiv(aTHX_ a,b)
                                     ^
./const-xs.inc:11:6: note: ‘iv’ was declared here
  IV  iv;
      ^
rm -f blib/arch/auto/Net/Pcap/Pcap.so
LD_RUN_PATH="/lib64" gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro  -o blib/arch/auto/Net/Pcap/Pcap.so  Pcap.o  \
   -lpcap   \

chmod 755 blib/arch/auto/Net/Pcap/Pcap.so
cp bin/pcapinfo blib/script/pcapinfo
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pcapinfo
Manifying 1 pod document
Manifying 1 pod document
  SAPER/Net-Pcap-0.17.tar.gz
  /usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/1 # Testing Net::Pcap 0.17 (libpcap version 1.5.3) under Perl 5.016003
t/00-load.t ................ ok
t/01-api.t ................. ok
t/02-lookup.t .............. ok
t/03-openlive.t ............ ok
t/04-loop.t ................ 1/195

Open in new window

FireBallITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FishMongerCommented:
That module hasn't been update since 1999.

Did you see the bunch of warnings prior to it hanging?  It would appear that a number of the functions have been removed or replaced in the newer versions of the underlying lib files.  Maybe it's time to look for a more up to date module.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wilcoxonCommented:
I have to agree with FishMonger.  It is a 0.01 (usually alpha) version of a module that hasn't been updated in 16 years based on Net::Pcap which has a 0.17 version (usually beta).  I would try finding a different way to do what you want/need using different modules.
0
FireBallITAuthor Commented:
I have installed from RPM Thank you so much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.