hi sampo,
 
i'm trying to compile your Net::SSLeay.  i do Not have a lot of experience compiling perl modules -- i usually
get them from Activestate.  i really would like to use LWP with https, though, so i'm slogging my way through
this.
 
i was able to compile the ssleay version from openssl 0.9.1c, so that's current.  it ran through all the included
tests ok.
 
in openssl i am using the C version of the `bn' code because i don't have an assembler.
 
I'm using Windows 98; the MS Visual C++ compiler version 5; Activestate Perl 5.005_02; GNU make for
msdos (part of the GNU tools for MSDOS, which include the GNU C compiler.)
 
i commented out the ssleay checking code in makefile.pl.
 
`perl makefile.pl' produces a makefile that needs a fair amount of unix -> MSDOS fixing, including fixing \'s to /'s,
and throwing away some unused but undefined macros.
 
then using MS C, v5 i get this:

C:/PERL/BIN/PERL.EXE -IC:/Perl/lib -IC:/Perl/lib C:/Perl/lib/ExtUtils/xsubpp  -typemap C:/Perl/lib/ExtUtils/typemap -typemap typemap SSLeay.xs >SSLeay.tc && C:/PERL/BIN/PERL.EXE -IC:/Perl/lib -IC:/Perl/lib -MExtUtils::Command -e mv SSLeay.tc SSLeay.c
cl.exe -c -I../openss~1.1c/inc32 -O2 -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_OBJECT -O2 -MD -DNDEBUG -TP -GX    -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\"  -IC:/Perl/lib/CORE  SSLeay.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
 
SSLeay.c
../openss~1.1c/inc32\bn.h(266) : error C2143: syntax error : missing ';' before '->'
../openss~1.1c/inc32\bn.h(266) : error C2238: unexpected token(s) preceding ';'
../openss~1.1c/inc32\bn.h(417) : error C2143: syntax error : missing ')' before '->'
../openss~1.1c/inc32\bn.h(417) : error C2059: syntax error : '->'
../openss~1.1c/inc32\bn.h(417) : error C2059: syntax error : ')'
../openss~1.1c/inc32\bn.h(426) : error C2143: syntax error : missing ')' before '->'
../openss~1.1c/inc32\bn.h(426) : error C2059: syntax error : '->'
../openss~1.1c/inc32\bn.h(426) : error C2501: 'PL_na' : missing decl-specifiers
../openss~1.1c/inc32\bn.h(426) : error C2062: type 'unsigned long' unexpected
../openss~1.1c/inc32\bn.h(426) : error C2501: 'b' : missing decl-specifiers
../openss~1.1c/inc32\bn.h(426) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
../openss~1.1c/inc32\bn.h(426) : error C2062: type 'int' unexpected
../openss~1.1c/inc32\bn.h(426) : error C2059: syntax error : ')'
../openss~1.1c/inc32\bn.h(426) : error C2501: 'nb' : missing decl-specifiers
../openss~1.1c/inc32\bn.h(426) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
../openss~1.1c/inc32\asn1.h(138) : fatal error C1903: unable to recover from previous error(s); stopping compilation
MAKE.EXE: *** [SSLeay.obj] Error 2
 
------------------------------------------------------------------------------------------------------------------
Using GCC i get this:
 
gcc.exe -c -I../openss~1.1c/inc32      -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\"  -IC:/Perl/lib/CORE  SSLeay.c
In file included from C:\Perl\lib\CORE\config.h:2100,
                 from C:\Perl\lib\CORE\perl.h:137,
                 from SSLeay.xs:20:
C:\Perl\lib\CORE\win32.h:32: warning: `__declspec' redefined
*Initialization*:1: warning: this is the location of the previous definition
In file included from D:\CYGNUS\CYGWIN~1\H-I586~1\BIN\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\errno.h:1,
                 from C:\Perl\lib\CORE\perl.h:574,
                 from SSLeay.xs:20:
D:\CYGNUS\CYGWIN~1\H-I586~1\BIN\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\sys/errno.h:109: warning: `ENOTSOCK' redefined
C:\Perl\lib\CORE\sys/socket.h:54: warning: this is the location of the previous definition
In file included from C:\Perl\lib\CORE\perl.h:1100,
                 from SSLeay.xs:20:
C:\Perl\lib\CORE\dosish.h:119: warning: `Stat' redefined
C:\Perl\lib\CORE\win32.h:261: warning: this is the location of the previous definition
In file included from C:\Perl\lib\CORE\config.h:2100,
                 from C:\Perl\lib\CORE\perl.h:137,
                 from SSLeay.xs:20:
C:\Perl\lib\CORE\win32.h:287: warning: redefinition of `caddr_t'
D:\CYGNUS\CYGWIN~1\H-I586~1\BIN\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\sys/types.h:65: warning: `caddr_t' previously declared here
In file included from ..\openss~1.1c\inc32\asn1.h:67,
                 from ..\openss~1.1c\inc32\x509.h:67,
                 from ..\openss~1.1c\inc32\ssl.h:147,
                 from SSLeay.xs:29:
..\openss~1.1c\inc32\bn.h:426: parse error before `?'
MAKE.EXE: *** [SSLeay.obj] Error 1
help?
 
-jack
 

Reply via email to