I have build OpenSSL on my platform (very similar to your plat) with those steps and they had worked fine. Unpack openssl package (openssl-0.9.7-stable-SNAP-20020226 in my case) on HD (ex. C:\OpenSSL) You don't have to modify anything. Copy VCVARS32.BAT on this folder (for convenience). Install ActivePerl (you have alredy do it). Go to cmd session. Go to C:\OpenSSL. > VCVARS32 > perl Configure VC-WIN32 > ms\do_ms > nmake -f ms\ntdll.mak
Francesco Dal Bello -----Messaggio originale----- Da: Alberto T Isais [mailto:[EMAIL PROTECTED]] Inviato: venerd́ 5 aprile 2002 0.47 A: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Oggetto: Re: R: need help Thank you very much for attending to my needs. However, i already did that -> i ran VCVARS32.BAT before, still the same problem. My system is windows 2000 OS SP1, Windows 2000 DDK, ActivePerl-5.6.1.631-MSWin32-x86, and MSVC++ 6. I opened the hw_aep.c it has the line #include <unistd.h>. I tried to search for that file and found only one! It is in the active pearl directory(C:\perl\site\lib\Tk\pTk\compat). I tried to include this directory in the c++ environment and i receive the error messages below. i still think that this is not the unistd.h needed. Please help me on this one. i also included the steps i did to compile it. please see below. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-1999 Microsoft Corp. C:\>cd C:\openssl-engine-0.9.6c C:\openssl-engine-0.9.6c>perl Configure VC-WIN32 Configuring for VC-WIN32 IsWindows=1 CC =cl CFLAG =-DTHREADS -DDSO_WIN32 EX_LIBS = BN_ASM =bn_asm.o DES_ENC =des_enc.o fcrypt_b.o BF_ENC =bf_enc.o CAST_ENC =c_enc.o RC4_ENC =rc4_enc.o RC5_ENC =rc5_enc.o MD5_OBJ_ASM = SHA1_OBJ_ASM = RMD160_OBJ_ASM= PROCESSOR = RANLIB =true PERL =perl THIRTY_TWO_BIT mode BN_LLONG mode RC4_INDEX mode RC4_CHUNK is undefined Configured for VC-WIN32. C:\openssl-engine-0.9.6c>ms\do_masm Generating x86 for MASM assember Bignum DES "crypt(3)" Blowfish CAST5 RC4 MD5 SHA1 RIPEMD160 RC5\32 C:\openssl-engine-0.9.6c>perl util\mkfiles.pl 1>MINFO C:\openssl-engine-0.9.6c>rem perl util\mk1mf.pl VC-MSDOS no-sock >ms\msdos.mak C:\openssl-engine-0.9.6c>rem perl util\mk1mf.pl VC-W31-32 >ms\w31.mak C:\openssl-engine-0.9.6c>perl util\mk1mf.pl dll VC-W31-32 1>ms\w31dll.mak C:\openssl-engine-0.9.6c>perl util\mk1mf.pl VC-WIN32 1>ms\nt.mak C:\openssl-engine-0.9.6c>perl util\mk1mf.pl dll VC-WIN32 1>ms\ntdll.mak C:\openssl-engine-0.9.6c>perl util\mkdef.pl 16 libeay 1>ms\libeay16.def C:\openssl-engine-0.9.6c>perl util\mkdef.pl 32 libeay 1>ms\libeay32.def C:\openssl-engine-0.9.6c>perl util\mkdef.pl 16 ssleay 1>ms\ssleay16.def C:\openssl-engine-0.9.6c>perl util\mkdef.pl 32 ssleay 1>ms\ssleay32.def C:\openssl-engine-0.9.6c>vcvars32.bat Setting environment for using Microsoft Visual C++ tools. C:\openssl-engine-0.9.6c> C:\openssl-engine-0.9.6c>nmake -f ms\ntdll.mak Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Building OpenSSL copy nul+ .\crypto\buildinf.h tmp32dll\buildinf.h nul .\crypto\buildinf.h 1 file(s) copied. copy nul+ .\crypto\opensslconf.h inc32\openssl\opensslconf.h nul .\crypto\opensslconf.h 1 file(s) copied. ml /Cp /coff /c /Cx /Focrypto\md5\asm\m5-win32.obj .\crypto\md5\asm\m5-w in32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\md5\asm\m5-win32.asm ml /Cp /coff /c /Cx /Focrypto\sha\asm\s1-win32.obj .\crypto\sha\asm\s1-w in32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\sha\asm\s1-win32.asm ml /Cp /coff /c /Cx /Focrypto\ripemd\asm\rm-win32.obj .\crypto\ripemd\as m\rm-win32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\ripemd\asm\rm-win32.asm ml /Cp /coff /c /Cx /Focrypto\des\asm\d-win32.obj .\crypto\des\asm\d-win 32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\des\asm\d-win32.asm ml /Cp /coff /c /Cx /Focrypto\des\asm\y-win32.obj .\crypto\des\asm\y-win 32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\des\asm\y-win32.asm ml /Cp /coff /c /Cx /Focrypto\rc4\asm\r4-win32.obj .\crypto\rc4\asm\r4-w in32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\rc4\asm\r4-win32.asm ml /Cp /coff /c /Cx /Focrypto\rc5\asm\r5-win32.obj .\crypto\rc5\asm\r5-w in32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\rc5\asm\r5-win32.asm ml /Cp /coff /c /Cx /Focrypto\bf\asm\b-win32.obj .\crypto\bf\asm\b-win32 .asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\bf\asm\b-win32.asm ml /Cp /coff /c /Cx /Focrypto\cast\asm\c-win32.obj .\crypto\cast\asm\c-w in32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\cast\asm\c-win32.asm ml /Cp /coff /c /Cx /Focrypto\bn\asm\bn-win32.obj .\crypto\bn\asm\bn-win 32.asm Microsoft (R) Macro Assembler Version 6.13.8204 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: .\crypto\bn\asm\bn-win32.asm cl /Fotmp32dll\hw_aep.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox /O2 /O b2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DB N_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll /GD -D_WINDLL -D_DLL -c .\c rypto\engine\hw_aep.c hw_aep.c C:\perl\site\lib\Tk\pTk\compat\stdlib.h(25) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(25) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(25) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(26) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(26) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(26) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(27) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(27) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(27) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(28) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(28) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(28) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(29) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(29) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(29) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(31) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(31) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(31) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(32) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(32) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(32) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(33) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(33) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(33) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(34) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(34) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(34) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(35) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(35) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(35) : error C2143: syntax error : missin g ')' before '*' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(38) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(38) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(38) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(39) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(39) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(39) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(40) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(40) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(40) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(42) : error C2061: syntax error : identi fier '_ANSI_ARGS_' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(42) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\stdlib.h(42) : error C2143: syntax error : missin g ')' before 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2146: syntax error : missin g ')' before identifier 'owner' C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2081: 'uid_t' : name in for mal parameter list illegal C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2061: syntax error : identi fier 'owner' C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ',' C:\perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ')' C:\perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2061: syntax error : identi fier 'fork' C:\perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2061: syntax error : identi fier 'getegid' C:\perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2061: syntax error : identi fier 'geteuid' C:\perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2061: syntax error : identi fier 'getgid' C:\perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2061: syntax error : identi fier 'getpid' C:\perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2061: syntax error : identi fier 'getuid' C:\perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2059: syntax error : 'type' C:\perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2146: syntax error : missin g ')' before identifier 'group' C:\perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2061: syntax error : identi fier 'group' C:\perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2059: syntax error : ')' C:\perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2146: syntax error : missin g ')' before identifier 'user' C:\perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2061: syntax error : identi fier 'user' C:\perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2059: syntax error : ')' C:\perl\site\lib\Tk\pTk\compat\unistd.h(68) : warning C4273: 'unlink' : inconsis tent dll linkage. dllexport assumed. C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2146: syntax error : missin g ')' before identifier 'owner' C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2081: 'uid_t' : name in for mal parameter list illegal C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2061: syntax error : identi fier 'owner' C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ',' C:\perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ')' C:\perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2146: syntax error : missin g ')' before identifier 'group' C:\perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2061: syntax error : identi fier 'group' C:\perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2059: syntax error : ')' C:\perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2146: syntax error : missin g ')' before identifier 'user' C:\perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2061: syntax error : identi fier 'user' C:\perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2059: syntax error : ';' C:\perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(225) : error C2375: 'access' : redefiniti on; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(40) : see declaration of 'access ' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(228) : error C2375: 'close' : redefinitio n; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(43) : see declaration of 'close' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(230) : error C2375: 'dup' : redefinition; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(44) : see declaration of 'dup' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(231) : error C2375: 'dup2' : redefinition ; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(45) : see declaration of 'dup2' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(234) : error C2375: 'isatty' : redefiniti on; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(60) : see declaration of 'isatty ' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(236) : error C2375: 'lseek' : redefinitio n; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(61) : see declaration of 'lseek' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(239) : warning C4028: formal parameter 2 different from declaration C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(239) : error C2375: 'read' : redefinition ; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(63) : see declaration of 'read' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(244) : warning C4273: 'unlink' : inconsis tent dll linkage. dllexport assumed. C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(245) : warning C4028: formal parameter 2 different from declaration C:\PROGRA~1\MICROS~3\VC98\INCLUDE\io.h(245) : error C2375: 'write' : redefinitio n; different linkage C:\perl\site\lib\Tk\pTk\compat\unistd.h(69) : see declaration of 'write' .\crypto\engine\hw_aep.c(192) : error C2061: syntax error : identifier 'recorded _pid' .\crypto\engine\hw_aep.c(192) : error C2059: syntax error : ';' .\crypto\engine\hw_aep.c(192) : error C2513: '/*global*/ ' : no variable declare d before '=' .\crypto\engine\hw_aep.c(623) : error C2065: 'pid_t' : undeclared identifier .\crypto\engine\hw_aep.c(623) : error C2146: syntax error : missing ';' before i dentifier 'curr_pid' .\crypto\engine\hw_aep.c(623) : fatal error C1003: error count exceeds 100; stop ping compilation NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. C:\openssl-engine-0.9.6c> [EMAIL PROTECTED] wrote: >do you have load compiler enviroment variables? >if you use VC++ you find it on VCVARS32.BAT on your win32 platform. >in the same command session run this batch command and then build OpenSSL. > >Francesco Dal Bello > > > >-----Messaggio originale----- >Da: Alberto T Isais [mailto:[EMAIL PROTECTED]] >Inviato: gioved?4 aprile 2002 7.36 >A: [EMAIL PROTECTED] >Oggetto: need help > > >i cant compile openssl. i get messages like... > >Building OpenSSL > cl /Fotmp32dll\hw_aep.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox /O2 /O >b2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DB >N_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll /GD -D_WINDLL -D_DLL -c .\c >rypto\engine\hw_aep.c >hw_aep.c >.\crypto\engine\hw_aep.c(61) : fatal error C1083: Cannot open include file: 'uni >std.h': No such file or directory >NMAKE : fatal error U1077: 'cl' : return code '0x2' >Stop. > >i tried making an empty header file still many problems. i also tried to compile >using the header of the active pearl still many problems. i also tried to delete that >line but still many problems. what is wrong with it? i cannot have a ssleay32d.lib. > >can you tell me how to setup openssl? > >thank you. >albert > > >__________________________________ >www.edsamail.com > >__________________________________ >www.edsamail.com >______________________________________________________________________ >OpenSSL Project http://www.openssl.org >User Support Mailing List [EMAIL PROTECTED] >Automated List Manager [EMAIL PROTECTED] >______________________________________________________________________ >OpenSSL Project http://www.openssl.org >User Support Mailing List [EMAIL PROTECTED] >Automated List Manager [EMAIL PROTECTED] > > __________________________________ www.edsamail.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]