OpenSSL 1.0.2f build issue - unresolved external symbol

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSSL 1.0.2f build issue - unresolved external symbol

Atul Thosar
Hi All,
I am building OpenSSL v1.0.2f for Win32 platform, but compilation failed w/ following errors. I googled a bit, but could not locate the exact cause. Appreciate if anyone could help. Thanks in Advance. 

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\athosar\AppData\Local\Temp\nm43EB.tmp
Creating library out32dll\libeay32.lib and object out32dll\libeay32.exp
cryptlib.obj : error LNK2001: unresolved external symbol _OPENSSL_ia32cap_P
cryptlib.obj : error LNK2019: unresolved external symbol _OPENSSL_ia32_cpuid referenced in function _OPENSSL_cpuid_setup
md5_dgst.obj : error LNK2019: unresolved external symbol _md5_block_asm_data_order referenced in function _MD5_Update
sha1dgst.obj : error LNK2019: unresolved external symbol _sha1_block_data_order referenced in function _SHA1_Update
sha256.obj : error LNK2019: unresolved external symbol _sha256_block_data_order referenced in function _SHA256_Update
sha512.obj : error LNK2019: unresolved external symbol _sha512_block_data_order referenced in function _SHA512_Final

out32dll\libeay32.dll : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x460'
Stop.


Build machine configurations are -

OS: Windows 7, 64 bit
Compiler: Visual Studio 2005
Active Perl Version: v5.16.3

Initial commands given to configure OpenSSL are -  

perl Configure VC-WIN32 no-asm --prefix=<Path to bin directory>
ms\do_ms
nmake -f ms\ntdll.mak


--
​BR,
Atul Thosar


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL 1.0.2f build issue - unresolved external symbol

Atul Thosar
Any thoughts/pointers?
Including openssl-users group in hope if any one aware of this issue.


--
​BR
,
Atul Thosar


On 29 February 2016 at 00:15, Atul Thosar <[hidden email]> wrote:
Hi All,
I am building OpenSSL v1.0.2f for Win32 platform, but compilation failed w/ following errors. I googled a bit, but could not locate the exact cause. Appreciate if anyone could help. Thanks in Advance. 

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\athosar\AppData\Local\Temp\nm43EB.tmp
Creating library out32dll\libeay32.lib and object out32dll\libeay32.exp
cryptlib.obj : error LNK2001: unresolved external symbol _OPENSSL_ia32cap_P
cryptlib.obj : error LNK2019: unresolved external symbol _OPENSSL_ia32_cpuid referenced in function _OPENSSL_cpuid_setup
md5_dgst.obj : error LNK2019: unresolved external symbol _md5_block_asm_data_order referenced in function _MD5_Update
sha1dgst.obj : error LNK2019: unresolved external symbol _sha1_block_data_order referenced in function _SHA1_Update
sha256.obj : error LNK2019: unresolved external symbol _sha256_block_data_order referenced in function _SHA256_Update
sha512.obj : error LNK2019: unresolved external symbol _sha512_block_data_order referenced in function _SHA512_Final

out32dll\libeay32.dll : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x460'
Stop.


Build machine configurations are -

OS: Windows 7, 64 bit
Compiler: Visual Studio 2005
Active Perl Version: v5.16.3

Initial commands given to configure OpenSSL are -  

perl Configure VC-WIN32 no-asm --prefix=<Path to bin directory>
ms\do_ms
nmake -f ms\ntdll.mak


--
​BR,
Atul Thosar



--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL 1.0.2f build issue - unresolved external symbol

Michel

Hi,

 

FWIW, trying the exact same configure commands on OpenSSL 1.0.2f :

perl Configure VC-WIN32 no-asm --prefix=<Path to bin directory>

ms\do_ms

nmake -f ms\ntdll.mak

I was NOT able to reproduce the problem under Windows 7 64 bits using Visual Studio 2013 and Perl 5.22.1.

 

Everything goes fine.

 

Michel.


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL 1.0.2f build issue - unresolved external symbol

Andy Polyakov-2
In reply to this post by Atul Thosar
> link /nologo /subsystem:console /opt:ref /debug /dll
> /out:out32dll\libeay32.dll /def:ms/LIBEAY32.def
> @C:\Users\athosar\AppData\Local\Temp\nm43EB.tmp
> Creating library out32dll\libeay32.lib and object out32dll\libeay32.exp
> cryptlib.obj : error LNK2001: unresolved external symbol _OPENSSL_ia32cap_P

This shouldn't happen if you go for no-asm. Basically it sounds like a
left-over from attempt to build with asm support. In other words start
over from empty directory.


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL 1.0.2f build issue - unresolved external symbol

Atul Thosar
Thanks Andy, Michel.
I'll give a try again.

--
B
​R​
,
Atul Thosar


On 1 March 2016 at 18:30, Andy Polyakov <[hidden email]> wrote:
> link /nologo /subsystem:console /opt:ref /debug /dll
> /out:out32dll\libeay32.dll /def:ms/LIBEAY32.def
> @C:\Users\athosar\AppData\Local\Temp\nm43EB.tmp
> Creating library out32dll\libeay32.lib and object out32dll\libeay32.exp
> cryptlib.obj : error LNK2001: unresolved external symbol _OPENSSL_ia32cap_P

This shouldn't happen if you go for no-asm. Basically it sounds like a
left-over from attempt to build with asm support. In other words start
over from empty directory.


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev