NetWallah has asked for the wisdom of the Perl Monks concerning the following question:

I'm having trouble trying to install Net-RawIP-0.1 on Windows XP. Does anyone (Podmaster?) have a binary distribution I can use ? I get the same issues with the older 0.09b version.

Here is what some of my woes look like:

F:\download\Programming\Perl\Net-RawIP-0.1>perl Makefile.PL Sorry,ethernet related methods are not implemented on this system Sorry, the ifaddrlist function is not imlemented on this system Sorry, the rdev function is not imlemented on this system Note (probably harmless): No library found for '-lpcap' Writing Makefile for Net::RawIP F:\download\Programming\Perl\Net-RawIP-0.1>nmake test Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_STRICT -DHAVE_DES_FCRY PT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSV +CRT_READFIX -MD -Zi -DNDEBUG - O1 -DVERSION=\"0.1\" -DXS_VERSION=\"0.1\" "-IG:\Perl\lib\CORE" +RawIP.c RawIP.c RawIP.xs(31) : fatal error C1083: Cannot open include file: 'sys/cdefs +.h': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. #### Same error on "nmake install" ####
OK - so I created the 'sys/cdefs.h' by copying the source from cygwin, then it complained about 'pcap.h'. I got that from the pcap distribution, and now it wants 'sys/time.h'. and this:
f:\download\Programming\Perl\Net-RawIP-0.09b\ifaddrlist.h(3) : error C +2061: syntax error : identifier 'u_int32_t' f:\download\Programming\Perl\Net-RawIP-0.09b\ifaddrlist.h(6) : error C +2059: syntax error : '}'

"Experience is a wonderful thing. It enables you to recognize a mistake when you make it again."

Replies are listed 'Best First'.
Re: Net::RawIP on Win32 - Install problems
by Limbic~Region (Chancellor) on Feb 27, 2004 at 20:45 UTC
    NetWallah,
    Have you seen WinPcap? I did a search for Cygwin & pcap and that's what I came up with. Unfortunately I do not have the required permissions at work to see if this would allow Net::Pcap or Net::RawIP to install, but I am betting you will have to mess with the Makefile anyway. By default it wants to link to -lpcap which I believe will need to change to -lwpcap. Sorry I couldn't be more help. I did check crazyinsomniac's repository and it doesn't look like one is available, though you could make a request.

    Cheers - L~R

      Thanks, Limbic~Region - I already have WinPcap, and Net::Pcap installed, and working fine. Crazy's repository does not have any Net:: modules. Yes - a request will be my next step.

      Update:Request sent.

      "Experience is a wonderful thing. It enables you to recognize a mistake when you make it again."
        Hmm - I got a very cryptic reply from Crazy, containing only a link to http://crazyinsomniac.perlmonk.org/perl/ppm/README.html.

        Wonder what he wanted me to see there - could someone interpret it for me ? - I feel thick today.

        "Experience is a wonderful thing. It enables you to recognize a mistake when you make it again."