problem compiling any module on win32/windows.h issues with nmake.

problem compiling any module on win32/windows.h issues with nmake.

Post by Buddy Naha » Sun, 27 Jul 2003 14:11:35


do not know if this is the right group to post to becuase the error seems
to involves .net framework more than perl, but i'm having problems compiling
any module. I have searched google and played around with this for several
hours with no luck.

system is xp pro w/administrative access.
perl distribution is pre-compiled nsPerl 5.004_04 taken
from:http://people.netscape.com/richm/nsPerl/

whether the perl dist is installed on a network share or local volume, the
outputs still the same.
I'm also having the same problem with ActiveState (which I don't want to
use,) I do not have this problem with cygwin since it has it's own seperate
compilar (which i also don't want to use for the project)

I have all the paths set right, and i have download installed and
reinstalled and removed nmake several times (from MS .net framework SDK and
redistribute) both versions 1.0 and 1.1 from msdn, i've also tried make from
unxutils and found dmake on cpan with no luck.

I have not tried compiling perl from scratch, but i'm sure the output would
be the same but much larger.

any help would be greatly appreciated.

TIA,
Buddy Nahay
nahayDOTbgNOSPAM@NOSPAMverizonDOTnet
(remove NOSPAM and replace DOT with periods to contact me, or, just respond
to the post)

Heres the output:
PERLshell N:\work\MIME-Base64-2.20>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for MIME::Base64
PERLshell N:\work\MIME-Base64-2.20>

then i run corvars.bat for 1.0, or the other bat file for 1.1 to set the
variables nmake wants. then i compile the module...

PERLshell N:\work\MIME-Base64-2.20>nmake
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\lib\MIME
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\MIME
mkdir blib\arch\auto\MIME\Base64
mkdir blib\lib\auto
mkdir blib\lib\auto\MIME
mkdir blib\lib\auto\MIME\Base64
mkdir blib\man3
cp Base64.pm blib\lib\MIME\Base64.pm
cp QuotedPrint.pm blib\lib\MIME\QuotedPrint.pm




N:\nsPerl5.004_04\bin\perl -IN:/nsPerl5.004_04\lib -IN:/nsPerl5.004_04\l
ib N:\nsPerl5.004_04\lib\ExtUtils/xsubpp -typemap
N:\nsPerl5.004_04\lib\ExtUtil
s\typemap Base64.xs >Base64.tc &&
N:\nsPerl5.004_04\bin\perl -IN:/nsPerl5.004_04
\lib -IN:/nsPerl5.004_04\lib -MExtUtils::Command -e mv Base64.tc Base64.c


cl.exe -c -MD -DWIN32 -O -DVERSION=\"2.20\" -DXS_VERSION=\"2.20\"
-IN:\nsPerl5.004_04\lib\CORE Base64.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 13.00.9466 for 80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
cl : Command line warning D4002 : ignoring unknown option '-O'
Base64.c
N:\nsPerl5.004_04\lib\CORE\win32.h(13) : fatal error C1083: Cannot open
include
file: 'windows.h': No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
PERLshell N:\work\MIME-Base64-2.20>

for .net framework 1.0 windows.h is stored in c:\Program
Files\Microsoft.NET\SDK\v1.1\include, it is not installed with version 1.1
of .net framework (reinstalled twice)

C:\program[cut]\v1.1\include\ path is not included in corvars.bat, if i add
it to the variables i get:
PERLshell N:\work\MIME-Base64-2.20>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for MIME::Base64

PERLshell N:\work\MIME-Base64-2.20>nmake
Microsoft (R)
 
 
 

problem compiling any module on win32/windows.h issues with nmake.

Post by Sisyphu » Mon, 28 Jul 2003 12:24:02


seems
compiling

You need to compile modules using the same compiler (and flavor of make)
that was used to build this perl.
If 'perl -V::cc' reports that 'cc=cl', and if 'perl -V:make' reports
'make=nmake' then you're already doing that.
Is that what those 2 commands report ?

Cheers,
Rob