Win32 Compile Problems 
Author Message
 Win32 Compile Problems

Hello all,

I'm trying to compile Crypt::SSLeay and have run into compile problems
using VC++, Perl 5.8.0, the latest stable from OpenSSL (compiled,
installed, and tested), and the latest copy of Crypt::SSLeay.

I have noticed that this problem has been posted before, but there was
no visible resolution to it.  Has anyone here encountered this before
and found a solution?  Using ActiveState's distribution is not an
option.

Thanks in advance,

John Fraser
(raptnor at mac dot com)

Capture from the Command Window:

cl -c  -Ic:\openssl\include -Ic:\openssl\inc32  -nologo -Gf -W3 -MD
-DND
EBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_
SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -DNDEBUG -O1  
-DVERSION=\"0.49\"  -
DXS_VERSION=\"0.49\"  "-IC:\perl\lib\CORE"   SSLeay.c
SSLeay.c
SSLeay.xs(53) : error C2064: term does not evaluate to a function
SSLeay.xs(53) : warning C4133: 'function' : incompatible types - from
'char [7]'
 to 'FILE *'
SSLeay.xs(57) : error C2064: term does not evaluate to a function
SSLeay.xs(57) : warning C4133: 'function' : incompatible types - from
'char [21]
' to 'FILE *'
SSLeay.xs(64) : error C2064: term does not evaluate to a function
SSLeay.xs(64) : warning C4133: 'function' : incompatible types - from
'char [17]
' to 'FILE *'
SSLeay.xs(66) : error C2064: term does not evaluate to a function
SSLeay.xs(66) : warning C4133: 'function' : incompatible types - from
'char [16]
' to 'FILE *'
SSLeay.xs(172) : warning C4047: '=' : 'FILE *' differs in levels of
indirection
from 'PerlIO * '
SSLeay.xs(174) : warning C4047: 'function' : 'PerlIO * ' differs in
levels of in
direction from 'FILE *'
SSLeay.xs(247) : warning C4090: 'function' : different 'const'
qualifiers
SSLeay.xs(247) : warning C4028: formal parameter 1 different from
declaration
SSLeay.xs(294) : warning C4018: '>' : signed/unsigned mismatch
SSLeay.xs(297) : warning C4018: '>=' : signed/unsigned mismatch
SSLeay.xs(300) : warning C4018: '>' : signed/unsigned mismatch
SSLeay.xs(331) : warning C4018: '>' : signed/unsigned mismatch
SSLeay.xs(339) : warning C4018: '>' : signed/unsigned mismatch
SSLeay.xs(347) : warning C4018: '<' : signed/unsigned mismatch
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.



Tue, 22 Nov 2005 18:23:20 GMT  
 Win32 Compile Problems

Quote:
> Hello all,

> I'm trying to compile Crypt::SSLeay and have run into compile problems
> using VC++, Perl 5.8.0, the latest stable from OpenSSL (compiled,
> installed, and tested), and the latest copy of Crypt::SSLeay.

> I have noticed that this problem has been posted before, but there was
> no visible resolution to it.  Has anyone here encountered this before
> and found a solution?  Using ActiveState's distribution is not an
> option.

> Thanks in advance,

> John Fraser
> (raptnor at mac dot com)

> Capture from the Command Window:

> cl -c  -Ic:\openssl\include -Ic:\openssl\inc32  -nologo -Gf -W3 -MD
> -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
> -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -DNDEBUG
> -O1   -DVERSION=\"0.49\"  -DXS_VERSION=\"0.49\"
> "-IC:\perl\lib\CORE"   SSLeay.c
> SSLeay.c
> SSLeay.xs(53) : error C2064: term does not evaluate to a function
> SSLeay.xs(53) : warning C4133: 'function' : incompatible types - from
> 'char [7]' to 'FILE *'
> SSLeay.xs(57) : error C2064: term does not evaluate to a function
> SSLeay.xs(57) : warning C4133: 'function' : incompatible types - from
> 'char [21]' to 'FILE *'
> SSLeay.xs(64) : error C2064: term does not evaluate to a function
> SSLeay.xs(64) : warning C4133: 'function' : incompatible types - from
> 'char [17]' to 'FILE *'
> SSLeay.xs(66) : error C2064: term does not evaluate to a function
> SSLeay.xs(66) : warning C4133: 'function' : incompatible types - from
> 'char [16]' to 'FILE *'
> SSLeay.xs(172) : warning C4047: '=' : 'FILE *' differs in levels of
> indirection from 'PerlIO * '
> SSLeay.xs(174) : warning C4047: 'function' : 'PerlIO * ' differs in
> levels of indirection from 'FILE *'
> SSLeay.xs(247) : warning C4090: 'function' : different 'const'
> qualifiers
> SSLeay.xs(247) : warning C4028: formal parameter 1 different from
> declaration

This is strange - using a self-compiled Perl (from the latest 8xx
ActiveState sources), I don't see such a problem with the module
and openssl-0.9.7b. And my compile-time flags are the same
as yours, except I have -DHAVE_DES_CRYPT, which I don't
think would make a difference in this.

The above seems to indicate a problem with Perl's file operations
(fprintf, fopen) - when you compiled Perl, did you see any problems
with the file tests? Have you seen any similar problems with other
modules you've built? Is it possible to try the ActiveState 8xx sources
(sometimes these have patches not yet in the CPAN Perl sources)?

best regards,
randy kobes



Wed, 23 Nov 2005 07:04:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem compiling GD on Win32

2. Problems compiling using Compile-a3

3. Problem with Win32::NetAdmin and Win32::Adminmisc

4. win32 bad (light word for it) compile

5. XS compile probs under win32.

6. Compiling Tk for win32

7. perl Conditional compile - Running Win32 library calls on AIX

8. compiling perl - win32

9. DBD-PG compile error in Win32

10. compiling perl scripts under win32 platform

11. win32 module compile then move to another machine?

12. Compile and install CPAN modules on win32

 

 
Powered by phpBB® Forum Software