Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: OpenSSL 1.0.1f compilation issue with VC++ 2010 |
|
Author |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Wed 12 Feb '14 16:46 Post subject: OpenSSL 1.0.1f compilation issue with VC++ 2010 |
|
|
Hi,
We are doing Openssl-1.0.1f compilation with VC++ 2010 for Apache 2.4.7 compilation.
but We got some compatibility issues during the compilation .
We did below things :
1. Copied openssl-1.0.1f.tar and extracted then renamed the directory name openssl instead of openssl-1.0.1f
2. Ran the cmd “ C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" in CLI to set Env path for VC++2010.
3. Ran below commands step by step
a. cmd perl Configure VC-WIN32 no-idea shared --prefix=C:\pachi\openssl
b. ms\do_ms
c. nmake -f ms\ntdll.mak
4. During c command execution after some times getting compatibility issues . attached the screen shots.
5. Once choosed the option run program
6. Got below errors
cl /Fotmp32dll\srp_vfy.obj -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 -DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN3
2 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_G
F2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DOPENSSL_USE_APPLINK -I. -DOPENSSL_
NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE /Zi /Fdtmp32dll/lib -D_WINDLL -DOPENSSL_BUI
LD_SHLIBCRYPTO -c .\crypto\srp\srp_vfy.c
srp_vfy.c
rc /fo"tmp32dll\libeay32.res" /d CRYPTO ms\version32.rc
link /nologo /subsystem:console /opt:ref /debug /dll /out:out32dll\libeay32.dll /def:ms/LIBEAY32.def @C:\Users\ADMINI~1\AppData\Local\Temp\2\n
m6DEA.tmp
LINK : fatal error LNK1181: cannot open input file 'ws2_32.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x49d'
Stop.
C:\pachi\openssl>
Please help to us. It is really urgent.
Thanks,
Pachai[/url] |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Wed 12 Feb '14 17:10 Post subject: |
|
|
Hi,
we can't attached the screen shots .
the pop up message like as
This program has known Compatibility issues
Location: C:\program Files(x86)\Microsoft Visual Studio\Common\MSDev98\Bin\rc.EXE
Visual Studio has a known compatibility issue with this version of Windows
Three option will be there
Check for solutions online
Run program
Cancel
We don't have net in that server. So we did it Run program . we got issues above posted the Lines
Please give a solution for this issue.
Thanks,
Pachai. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 12 Feb '14 20:16 Post subject: |
|
|
Admin note: you posted this in a wrong thread, so I post it here
Hi,
I did install VC++2010 in some other server then followed the same above steps .
I couldn't faced any issue but i didn't seen any lines openssl completed successfully or not .
i copied end of few lines
cl /Fotmp32dll\srp.obj -DMONOLITH -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 -D
OPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -D
WIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_BN_ASM_PART_
WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
-DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLP
OOL_ASM -DGHASH_ASM -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5
-DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGIN
E /Zi /Fdtmp32dll/app -c .\apps\srp.c
srp.c
cl /Fotmp32dll\openssl.obj -DMONOLITH -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob
2 -DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN3
2 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_BN_ASM_P
ART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1
_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWH
IRLPOOL_ASM -DGHASH_ASM -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_IDEA -DOPENSSL_NO
_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_E
NGINE /Zi /Fdtmp32dll/app -c .\apps\openssl.c
openssl.c
link /nologo /subsystem:console /opt:ref /debug /out:out32dll\openssl.ex
e @C:\Users\admin\AppData\Local\Temp\3\nmB752.tmp
Creating library tmp32dll\junk.lib and object tmp32dll\junk.exp
IF EXIST out32dll\openssl.exe.manifest mt -nologo -manifest out32dll\ope
nssl.exe.manifest -outputresource:out32dll\openssl.exe;1
Please verify and let me know. it went successfully or not but i checked Openssl.exe created .
Thanks,
Pachai |
|
Back to top |
|
Anaksunaman
Joined: 19 Dec 2013 Posts: 54
|
Posted: Sat 15 Feb '14 11:40 Post subject: OpenSSL 1.0.1f compilation issue with VC++ 2010 |
|
|
To address the first post, it seems clear that there is an error or omission in directory pathing:
Code: | LINK : fatal error LNK1181: cannot open input file 'ws2_32.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x49d'
Stop
|
Where this error is (makefile, environmental variables, surrounding quotes, etc.) is difficult to say without being acquainted with the setup of that server. That is, this would be something you would likely have to troubleshoot yourself.
As for the second post, your output seems to indicate that the compilation finished successfully.
Code: | Creating library tmp32dll\junk.lib and object tmp32dll\junk.exp
IF EXIST out32dll\openssl.exe.manifest mt -nologo -manifest out32dll\ope
nssl.exe.manifest -outputresource:out32dll\openssl.exe;1 |
The other output looks consistent with successful compilation as well (e.g. all of it is standard logging produced when compilation succeeds).
Edit: Just as a small note for future reading, the commands used for compilation in this case may vary depending on 32-bit vs. 64-bit.
For example:
32-Bit (x86)
Code: | * perl Configure VC-WIN32 no-idea
* ms\do_ms |
64-Bit (x64)
Code: | * perl Configure VC-WIN64A no-idea
* ms\do_win64a |
|
|
Back to top |
|
|
|
|
|
|