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

Hi all, I'm getting the following error when trying to install win32::api which was downloaded from http://dada.perl.it/Win32-API-0.20.zip Any idea why?
C:\temp\Win32-API-0.20\Win32-API-0.20>nmake test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. mkdir blib mkdir blib\lib mkdir blib\lib\Win32 mkdir blib\arch mkdir blib\arch\auto mkdir blib\arch\auto\Win32 mkdir blib\arch\auto\Win32\API mkdir blib\lib\auto mkdir blib\lib\auto\Win32 mkdir blib\lib\auto\Win32\API cp API.pm blib\lib\Win32\API.pm C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\E +xtUtils/xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap typema +p API.xs > API.xsc && C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils +::Command -e mv API.xsc API.c cl -c -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_ +DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_ +READFIX -O1 -MD -DNDEBUG -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -IC:\Per +l\lib\CORE API.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for +80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. API.c API.xs(155) : error C2065: 'na' : undeclared identifier NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop.

Replies are listed 'Best First'.
Re: error installing win32::api
by Ionitor (Scribe) on Jul 24, 2002 at 23:07 UTC
    Searching on Google Groups, you need to create your Makefile by running
    perl Makefile.pl POLLUTE=1
    Looks like the module needs to be updated.
Re: error installing win32::api
by dws (Chancellor) on Jul 24, 2002 at 22:55 UTC
    I'm getting the following error when trying to install win32::api which was downloaded from http://dada.perl.it/Win32-API-0.20.zip Any idea why?

    If you're running ]http://www.activestate.com|ActiveState] Perl, try C:\> ppm install win32-api That way, you needn't bother with having to rebuild the module.

      I cannot use ppm due to the firewall. I got it to work though after adding the "POLLUTE=1" flag.
      perl Makefile.PL POLLUTE=1
      Thanks for all your help, Jolene
        I cannot use ppm due to the firewall.

        PPM uses HTTP via LWP::UserAgent. You most probably can use PPM across a firewall, by setting the environment variable HTTP_PROXY. Details are in the LWP::UserAgent POD.

        It took me a while to find this out when I was in your position. I wish PPM had a configuration option to make this obvious.