Dear Bill Luebkert 

Thank you for your advice.

I tried the <Case3:> in "Set Windows XP 32-bit Build Environment (Debug)"
But I had the another compiling problem of "module machine type 'IA64' 
   conflicts with target machine type 'AMD64'".
Perhaps I need to change makefile and the source code of the Warning
messages.

 I agree with your advice.
 Certainly, the source codes of "Win32-API-0.46.tar.gz" are partially
programmed with assembler language. It's difficult to build modules
in the another platform(X64). 

  This time I would like to do with massively processing of archived
LZH formatted data using win32::API and "UNLHA32.DLL" in 64-bit Perl.

  But I understood that it's not easy to build the module in 64-bit Perl.
So I install both 32-bit and 64-bit Perl. And I do with the massively 
data processing.


**<Case3:>******************* 

<Case3:> Building the Win32::API module by running perl Makefile.PL
         and nmake in "Set Windows XP 32-bit Build Environment (Debug)"
         (Win32-API-0.46.tar.gz downloaded from CPAN)

  The result of the compiling was "fatal error".

  The results were followings:

   >perl makefile.pl
    Writing Makefile for Win32::API::Callback
    Writing Makefile for Win32::API
   >nmake
    NMAKE : fatal error U1077: 'link' : return code '0x458'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
            Platform SDK\Bin\nmake.exe"' : return code '0x2'
    Stop.

******  detailed Error messages ************************

cp Type.pm blib\lib\Win32/API/Type.pm
cp Callback.pm blib\lib\Win32/API/Callback.pm
cp Test.pm blib\lib\Win32/API/Test.pm
cp Struct.pm blib\lib\Win32/API/Struct.pm
cp API.pm blib\lib\Win32/API.pm
        nmake -f Makefile all -nologo
        C:\Perl64\bin\perl.exe C:\Perl64\lib\ExtUtils\xsubpp
  -typemap C:\Perl64\lib\ExtUtils\typemap  Callback.xs
  > Callback.xsc && C:\Perl64\bin\perl.exe
    -MExtUtils::Command -e mv Callback.xsc Callback.c
        cl -c    -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -Wp64
           -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT
           -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DNO_HASH_SEED
           -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC
           -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
           -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG
           -Ox -GL -Wp64 -fp:precise    -DVERSION=\"0.46\"
           -DXS_VERSION=\"0.46\"  "-IC:\Perl64\lib\CORE"   Callback.c
Callback.c
Callback.xs(252) : warning C4311: 'type cast' : pointer truncation
                   from 'char *' to 'long'
Callback.xs(259) : warning C4267: 'function' : conversion from
                  'size_t' to 'I32', possible loss of data
Callback.xs(278) : warning C4312: 'type cast' : conversion from
                   'unsigned int' to 'SV *' of greater size
Callback.xs(307) : warning C4312: 'type cast' : conversion from
                   'int' to 'char *' of greater size
Callback.xs(315) : warning C4312: 'type cast' : conversion from
                  'int' to 'char *' of greater size
Callback.xs(370) : warning C4267: 'function' : conversion from
                  'size_t' to 'I32', possible loss of data
Callback.xs(385) : warning C4244: '=' : conversion from 'IV' to
                  'int', possible loss of data
Callback.xs(347) : warning C4101: 'checkpoint' : unreferenced
                   local variable
Callback.xs(348) : warning C4101: 'size' : unreferenced local variable
Callback.xs(525) : warning C4018: '<' : signed/unsigned mismatch
Callback.xs(560) : warning C4244: '=' : conversion from
                  '__int64' to 'unsigned int', possible loss of data
Callback.xs(582) : warning C4311: 'type cast' : pointer
                   truncation from 'SV *' to 'int'
Callback.xs(597) : warning C4311: 'type cast' : pointer truncation
                   from 'unsigned char *' to 'long'
Callback.xs(598) : warning C4311: 'type cast' : pointer truncation
                   from 'SV *' to 'int'
Callback.xs(624) : warning C4018: '<' : signed/unsigned mismatch
Callback.xs(631) : warning C4244: '=' : conversion from '__int64'
                   to 'unsigned int', possible loss of data
Callback.xs(638) : warning C4311: 'type cast' : pointer truncation
                   from 'int *' to 'int'
Callback.xs(681) : warning C4244: '=' : conversion from '__int64'
                   to 'unsigned int', possible loss of data
Callback.xs(688) : warning C4311: 'type cast' : pointer truncation
                   from 'int *' to 'int'
Callback.xs(732) : warning C4244: '=' : conversion from '__int64'
                   to 'unsigned int', possible loss of data
Callback.xs(739) : warning C4311: 'type cast' : pointer truncation
                   from 'int *' to 'int'
Callback.xs(785) : warning C4244: '=' : conversion from '__int64'
                   to 'unsigned int', possible loss of data
Callback.xs(858) : warning C4244: '=' : conversion from 'IV' to
                  'int', possible loss of data
Callback.xs(875) : warning C4244: '=' : conversion from 'IV' to
                   'int', possible loss of data
Callback.xs(879) : warning C4311: 'type cast' : pointer truncation
                   from 'unsigned char *' to 'unsigned int'
Callback.xs(841) : warning C4101: 'intypes' : unreferenced
                   local variable
Callback.xs(830) : warning C4101: 'pParam' : unreferenced
                   local variable
Callback.xs(838) : warning C4101: 'obj_intypes' : unreferenced
                   local variable
Callback.xs(826) : warning C4101: 'lParam' : unreferenced
                   local variable
Callback.xs(829) : warning C4101: 'cParam' : unreferenced
                   local variable
Callback.xs(831) : warning C4101: 'ppParam' : unreferenced
                   local variable
Callback.xs(828) : warning C4101: 'dParam' : unreferenced
                   local variable
Callback.xs(835) : warning C4101: 'obj_proto' : unreferenced
                   local variable
Callback.xs(825) : warning C4101: 'iParam' : unreferenced
                   local variable
Callback.xs(827) : warning C4101: 'fParam' : unreferenced
                   local variable
Callback.xs(908) : warning C4311: 'type cast' : pointer
                   truncation from 'SV *' to 'int'
Callback.xs(897) : warning C4101: 'selfpos' : unreferenced
                   local variable
Running Mkbootstrap for Win32::API::Callback ()
        C:\Perl64\bin\perl.exe -MExtUtils::Command -e chmod
           644 Callback.bs
        C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists
           -e "Mksymlists
         ('NAME'=>\"Win32::API::Callback\", 'DLBASE' => 'Callback', 
          'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  },
         'DL_VARS' => []);"
        link -out:..\blib\arch\auto\Win32\API\Callback\Callback.dll -dll
  -nologo -nodefaultlib -debug -opt:ref,icf -ltcg
  -libpath:"C:\Perl64\lib\CORE"  -machine:AMD64 Callback.obj
   C:\Perl64\lib\CORE\perl58.lib oldnames.lib kernel32.lib user32.lib
   gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib
   ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib
   winmm.lib  version.lib odbc32.lib odbccp32.lib bufferoverflowU.lib
   msvcrt.lib -def:Callback.def
   Callback.obj : fatal error LNK1112: module machine type 'IA64' 
   conflicts with target machine type 'AMD64'



> [EMAIL PROTECTED] wrote:
> > Hello!
> >    I have the Win32::API installation troubles 
> >  on ActivePerl-5.8.8.822-MSWin32-x64-280952.msi.
> > 
> >   I tried two cases of Win32::API installations. 
> >   How do I go about installing Win32::API 
> >   on ActivePerl-5.8.8.822-MSWin32-x64?
> > 
> > 
> > <Case1:> Useing ppm install Win32-API.ppd
> >    I downloaded the Win32-API-0.46.zip 
> >    http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/
> > 
> >   The result of the installation was followings:
> >    > ppm install Win32-API.ppd
> >    ppm install failed: The PPD does not provide code to install
> >    for this platform
> 
> Does the 64-bit version of Windows have 32-bit emulation ?  I assume it
> does and what I would do until 64-bit packages are more readily available
> is run a 32-bit Perl (download a 32-bit Perl installation) instead of
> the 64-bit version.  You could install both and use the 32-bit one for
> these sorts of failures.
> 
> It's not as easy to build Perl/Perl modules on Windoze as it is on *nix.


Morihiro Miyazaki

System Manager
System Development
Hatsumeitsushin Co.LTD.
[EMAIL PROTECTED]


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

Reply via email to