I tried to following the instructions in Install.w32 to build openssl 0.9.6c on WinNT server. I have VC++6 sp 4 and ml installed on the nt box. I have modified all the path, include, lib env variables to be correct. But I got the following errors while compiling hw_aep.c when I do a build using nmake ms\do_masm. As you can see the problem happens inside unistd.h file.
I appreciate very much your help on this problem. Thanks in advance. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Building OpenSSL cl /Fotmp32dll\hw_aep.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll /GD -D_WINDLL -D_DLL -c .\crypto\engine\hw_aep.c hw_aep.c D:\Perl\site\lib\Tk\pTk\compat\unistd.h(39) : error C2220: warning treated as error - no object file generated D:\Perl\site\lib\Tk\pTk\compat\unistd.h(39) : warning C4273: '_exit' : inconsistent dll linkage. dllexport assumed. D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2146: syntax error : missing ')' before identifier 'owner' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2081: 'uid_t' : name in formal parameter list illegal D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2061: syntax error : identifier 'owner' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ',' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(42) : error C2059: syntax error : ')' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2061: syntax error : identifier 'fork' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(52) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2061: syntax error : identifier 'getegid' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(54) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2061: syntax error : identifier 'geteuid' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(55) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2061: syntax error : identifier 'getgid' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(56) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2061: syntax error : identifier 'getpid' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(58) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2061: syntax error : identifier 'getuid' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(59) : error C2059: syntax error : 'type' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2146: syntax error : missing ')' before identifier 'group' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2061: syntax error : identifier 'group' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(64) : error C2059: syntax error : ')' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2146: syntax error : missing ')' before identifier 'user' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2061: syntax error : identifier 'user' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(65) : error C2059: syntax error : ')' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(68) : warning C4273: 'unlink' : inconsistent dll linkage. dllexport assumed. D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2146: syntax error : missing ')' before identifier 'owner' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2081: 'uid_t' : name in formal parameter list illegal D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2061: syntax error : identifier 'owner' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ',' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(73) : error C2059: syntax error : ')' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2146: syntax error : missing ')' before identifier 'group' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2061: syntax error : identifier 'group' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(77) : error C2059: syntax error : ')' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2146: syntax error : missing ')' before identifier 'user' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2061: syntax error : identifier 'user' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2059: syntax error : ';' D:\Perl\site\lib\Tk\pTk\compat\unistd.h(78) : error C2059: syntax error : ')' D:\VS6\VC98\INCLUDE\io.h(225) : error C2375: 'access' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(40) : see declaration of 'access' D:\VS6\VC98\INCLUDE\io.h(228) : error C2375: 'close' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(43) : see declaration of 'close' D:\VS6\VC98\INCLUDE\io.h(230) : error C2375: 'dup' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(44) : see declaration of 'dup' D:\VS6\VC98\INCLUDE\io.h(231) : error C2375: 'dup2' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(45) : see declaration of 'dup2' D:\VS6\VC98\INCLUDE\io.h(234) : error C2375: 'isatty' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(60) : see declaration of 'isatty' D:\VS6\VC98\INCLUDE\io.h(236) : error C2375: 'lseek' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(61) : see declaration of 'lseek' D:\VS6\VC98\INCLUDE\io.h(239) : warning C4028: formal parameter 2 different from declaration D:\VS6\VC98\INCLUDE\io.h(239) : error C2375: 'read' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(63) : see declaration of 'read' D:\VS6\VC98\INCLUDE\io.h(244) : warning C4273: 'unlink' : inconsistent dll linkage. dllexport assumed. D:\VS6\VC98\INCLUDE\io.h(245) : warning C4028: formal parameter 2 different from declaration D:\VS6\VC98\INCLUDE\io.h(245) : error C2375: 'write' : redefinition; different linkage D:\Perl\site\lib\Tk\pTk\compat\unistd.h(69) : see declaration of 'write' .\crypto\engine\hw_aep.c(198) : error C2061: syntax error : identifier 'recorded_pid' .\crypto\engine\hw_aep.c(198) : error C2059: syntax error : ';' .\crypto\engine\hw_aep.c(198) : error C2513: '/*global*/ ' : no variable declared before '=' .\crypto\engine\hw_aep.c(629) : error C2065: 'pid_t' : undeclared identifier .\crypto\engine\hw_aep.c(629) : error C2146: syntax error : missing ';' before identifier 'curr_pid' .\crypto\engine\hw_aep.c(629) : error C2065: 'curr_pid' : undeclared identifier .\crypto\engine\hw_aep.c(633) : warning C4013: 'getpid' undefined; assuming extern returning int .\crypto\engine\hw_aep.c(637) : error C2065: 'recorded_pid' : undeclared identifier ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]