I'd like to be able to download modules from CPAN and make them
manually, but I get a lot of errors when I try to do this.  I have to
do it manually because I have firewalls at work that I cannot get
around; these prevent me from using the standard CPAN module and the
PPM tool.

I'm using activestate perl:
_______________________________________________________________
> perl -v
> This is perl, v5.8.6 built for MSWin32-x86-multi-thread
> (with 3 registered patches, see perl -V for more detail)
> Binary build 811 provided by ActiveState Corp. http://www.ActiveState.com
> Built Dec 13 2004 09:52:01
_______________________________________________________________


I've copied the necessary *.h files from the win32api library from
MinGW into my C:\Perl\lib\CORE folder.  And I'm using the Microsoft
Visual C++ Toolkit 2003 for my cl and link functions.  Is this a bad
combination?

For example, I'd like to install the PAR module. I know activeState
has a zip file for PAR available at
http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/PAR-0.75.zip
These zip files are the only way I've been able to install modules so
far, but this one doesn't install properly:
_______________________________________________________________
> C:\Perl\modules>ppm install PAR.ppd
> Can't call method "ok" on an undefined value at C:/Perl/site/lib/PPM/UI.pm 
> line 881, <$__ANONIO__> line 19.
_______________________________________________________________


So I'm trying to use the CPAN module.  Makefile.PL works:
_______________________________________________________________
> C:\Perl\modules\PAR-0.89>Makefile.PL
> *** ExtUtils::AutoInstall version 0.61
> *** Checking for dependencies...
> [Core Features]
> - File::Temp       ...loaded. (0.14 >= 0.05)
> - Compress::Zlib   ...loaded. (1.33 >= 1.16)
> - Archive::Zip     ...loaded. (1.06 >= 1)
> - Module::ScanDeps ...loaded. (0.51 >= 0.45)
> - PAR::Dist        ...loaded. (0.07 >= 0.06)
> [Windows --icon and --info support]
> - Parse::Binary    ...loaded. (0.09 >= 0.04)
> - Win32::Exe       ...loaded. (0.08 >= 0.04)
> *** ExtUtils::AutoInstall configuration finished.
> Checking if your kit is complete...
> Looks good
> Writing Makefile for the par.exe program
> Writing Makefile for PAR
_______________________________________________________________


But when I run nmake.exe to build PAR 0.89 I get this command line output:
_______________________________________________________________
> C:\Perl\modules\PAR-0.89>nmake
> 
> Microsoft (R) Program Maintenance Utility   Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
>         cl -c -Zm1000  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 
> -D_CONSOLE -DNO_STRICT -DHAVE_DE
> S_FCRYPT  -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
> -DUSE_PERLIO -DPERL_MSVCRT_READ
> FIX  -I"C:\Perl\lib\CORE" main.c
> main.c
> c1 : warning C4349: /Gf is deprecated and will not be supported in future 
> versions of Visual C++; remove /Gf or use /GF instead
> C:\Perl\lib\CORE\winnt.h(3043) : warning C4103: 'c:\perl\lib\core\winnt.h' : 
> used #pragma pack to change alignment
> C:\Perl\lib\CORE\winnt.h(3335) : warning C4103: 'c:\perl\lib\core\winnt.h' : 
> used #pragma pack to change alignment
> C:\Perl\lib\CORE\winnt.h(3435) : warning C4068: unknown pragma
> C:\Perl\lib\CORE\winnt.h(3440) : warning C4068: unknown pragma
> C:\Perl\lib\CORE\winbase.h(1252) : error C2054: expected '(' to follow 
> 'DECLSPEC_NORETURN'
> C:\Perl\lib\CORE\winbase.h(1252) : error C2085: 'ExitProcess' : not in formal 
> parameter list
> C:\Perl\lib\CORE\winbase.h(1253) : error C2061: syntax error : identifier 
> 'DECLSPEC_NORETURN'
> C:\Perl\lib\CORE\winbase.h(1313) : error C2054: expected '(' to follow 
> 'DECLSPEC_NORETURN'
> C:\Perl\lib\CORE\winbase.h(1313) : error C2085: 'FreeLibraryAndExitThread' : 
> not in formal parameter list
> C:\Perl\lib\CORE\winbase.h(1317) : error C2085: 'FreeResource' : not in 
> formal parameter list
> C:\Perl\lib\CORE\winbase.h(1319) : error C2085: 'FreeSid' : not in formal 
> parameter list
> C:\Perl\lib\CORE\winbase.h(1320) : error C2085: 'GetAce' : not in formal 
> parameter list
> C:\Perl\lib\CORE\winbase.h(1321) : error C2085: 'GetAclInformation' : not in 
> formal parameter list
> C:\Perl\lib\CORE\winbase.h(1322) : error C2085: 'GetAtomNameA' : not in 
> formal parameter list
> C:\Perl\lib\CORE\winbase.h(1323) : error C2085: 'GetAtomNameW' : not in 
> formal parameter list
...
lots more of these *.h errors
...
________________________________________________________________

What should I do?

Thanks,
Roman Luz
[EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to