Hi guys,

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


In reply to problem installing Net-RawIP-0.25 in strawberry perl by Tom Decaluwe

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.