Tom Decaluwe has asked for the wisdom of the Perl Monks concerning the following question:
I'm new to perl so please be gentel ;-)
In any case I installed strewberry perl on my system and have successfully installed a number of modules. However when trying to install Net-RawIP-0.25 I got the message I neede the Pcap libraries.
So I progressed by downloading the winPcap developer pack and downloaded the Net-Pcap-0.16 module.
When doing the initial perl Makefile.pl it seems to go well:
C:\>perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap" socket.h patched... ok looking for -lwpcap... yes checking for pcap_lib_version() in -lwpcap... yes detecting available functions... ok Writing Makefile for Net::Pcap
---------------------------------------
however when I then run the dmake command I start getting errors:
C:\>dmake Skip blib\lib\Net\Pcap.pm (unchanged) gcc -c -IC:/WpdPack/Include -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT _CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" "-IC:\strawberry\perl\lib\CORE" -DWINSOCK2_H_REQUESTED -DWPCAP -DHAVE_REMOTE -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSIO N Pcap.c In file included from Pcap.xs:43: stubs.inc:85:2: warning: #warning "the function pcap_findalldevs() is not availa ble, but will be emulated" In file included from Pcap.xs:43: stubs.inc:90: error: redefinition of typedef 'pcap_if_t' C:/WpdPack/Include/pcap.h:89: error: previous declaration of 'pcap_if_t' was her e stubs.inc:91: error: redefinition of `struct pcap_if' stubs.inc:113:2: warning: #warning "the function pcap_breakloop() is not availab le" stubs.inc:127:2: warning: #warning "the function pcap_setnonblock() is not avail able" stubs.inc:142:2: warning: #warning "the function pcap_getnonblock() is not avail able" stubs.inc:157:2: warning: #warning "the function pcap_dump_file() is not availab le" stubs.inc:172:2: warning: #warning "the function pcap_dump_flush() is not availa ble" stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not av ailable" stubs.inc:202:2: warning: #warning "the function pcap_set_datalink() is not avai lable" 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_descriptio n() is not available" stubs.inc:262:2: warning: #warning "the function pcap_compile_nopcap() is not av ailable" 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 availa ble" stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not avai lable" stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not avail able" stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" stubs.inc:357: error: redefinition of `struct pcap_rmtauth' 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 ava ilable" 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 avai lable" stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not a vailable" stubs.inc:438: error: redefinition of `struct pcap_send_queue' stubs.inc:444: error: redefinition of typedef 'pcap_send_queue' C:/WpdPack/Include/Win32-Extensions.h:53: error: previous declaration of 'pcap_s end_queue' was here 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 a vailable" stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is no t 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 avail able" stubs.inc:519: error: redefinition of `struct pcap_samp' dmake: Error code 129, while making 'Pcap.o'
-----------------------
Any help would be greatly appreciated on getting this to work.
Thanks,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem installing Net-RawIP-0.25 in strawberry perl
by Tom Decaluwe (Initiate) on Aug 07, 2009 at 11:48 UTC | |
by syphilis (Archbishop) on Aug 08, 2009 at 08:12 UTC | |
by Anonymous Monk on Aug 11, 2009 at 13:46 UTC | |
by Anonymous Monk on Aug 11, 2009 at 13:54 UTC |