Author |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Thu 10 Mar '11 17:15 Post subject: compiling error |
|
|
I have to upgrade to latest version of open ssl but when compiling I get to the last bit nmake -f ms\ntdll.mak and get the following error.
ms\uplink.c(11) : fatal error C1083: Cannot open include file: 'windows.h': No s
uch file or directory
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x2'
Stop.
I can run windows.h from the command line OK so not sure why this comes up. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 11 Mar '11 5:42 Post subject: |
|
|
you have to run the right commandline with all stuff in %PATH%. For VC9 aka VS 2008 it is
Code: |
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
|
|
|
Back to top |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Fri 11 Mar '11 11:39 Post subject: |
|
|
Sorry not sure what you are saying, do I need to put what you have written in my PATH or somewhere else?
Many thanks |
|
Back to top |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Fri 11 Mar '11 11:51 Post subject: |
|
|
OK i put that in to set system variable and it starts to compile but now get this error
cryptlib.c
nasmw -f win32 -o crypto\cpu_win32.obj .\crypto\cpu_win32.asm
'nasmw' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'nasmw' : return code '0x1'
Stop.
Many thanks |
|
Back to top |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Fri 11 Mar '11 12:31 Post subject: |
|
|
Downloaded nasmw.exe and now seems to have compiled OK however all it has done is put a lot of files in the out32dll folder, how do I now use these? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 11 Mar '11 23:28 Post subject: |
|
|
This is how I compile openssl
Code: |
perl Configure VC-WIN32 --prefix=/Apache22 --openssldir=/Apache22/conf enable-camellia disable-idea
ms\do_nasm
nmake /f ms\ntdll.mak
|
What do you mean with: How do I use this files? What's the destination? What are you compiling openssl for? |
|
Back to top |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Mon 14 Mar '11 12:29 Post subject: |
|
|
I am trying to compile it to use to upgrade my 0.9.8 version o as there is a security flaw. So I need latest version with fixes. |
|
Back to top |
|
Michael T
Joined: 28 Feb 2011 Posts: 39
|
Posted: Mon 14 Mar '11 12:30 Post subject: |
|
|
The files are created in out32dll folder but I was expecting an MSI file or something. Sorry but I am new to this and do not understand how it works or why you have to compile it in the first place. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 16 Mar '11 0:38 Post subject: |
|
|
Nope there is an output from dll files and exe files. So can compare to the once the apache\bin folder and replace them. Normaly there is no need for you to compile it yourself. Just use the upgrade from this page and the apache from this page |
|
Back to top |
|