MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Raymi Coevan
Dear OpenSSL experts,

I'm a junior developer so please forgive me if this is a stupid question.

I'm trying to port an existing application, currently running on MacOSX and Linux, to Windows 64 bits platform which is not my favorite environment.

I have dependencies on Poco and OpenSSL (1.1.0e is currently used on MacOSX and Linux), and when trying to compile using MSVC2015, I get and link error telling that libeaymt64.lib and ssleaymt64.lib are missing. I tried to find where these dependencies are defined (pragma or linkage definitions) but did not find. These libraries do not look to exist since I cannot find them on MacOSX and Linux either.

I have installed OpenSSL environment and tried using precompiled libs and headers from http://slproweb.com/download/Win64OpenSSL-1_1_0f.exe

Googling on these libs, I find they might be included in OpenSSL 1.0.2g, however I'm not able able to find them in application's required OpenSSL release (1.1.x).

I'm sure I'm missing some points but cannot figure out what after hours of search.

Can someone please help me?

Thanks in advance

KR

Raymi


--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Richard Levitte - VMS Whacker-2
Hi,

In message <[hidden email]> on Sat, 8 Jul 2017 11:19:57 +0200, Raymi Coevan <[hidden email]> said:

...
raymi.coevan> I have dependencies on Poco and OpenSSL (1.1.0e is currently used on
raymi.coevan> MacOSX and Linux), and when trying to compile using MSVC2015, I get
raymi.coevan> and link error telling that libeaymt64.lib and ssleaymt64.lib are
raymi.coevan> missing. I tried to find where these dependencies are defined (pragma
raymi.coevan> or linkage definitions) but did not find. These libraries do not look
raymi.coevan> to exist since I cannot find them on MacOSX and Linux either.

Yes, the libraries have changed name for 1.1.0, with names that are
more in line with the Linux / MacOS X names.

raymi.coevan> I have installed OpenSSL environment and tried using precompiled libs
raymi.coevan> and headers from http://slproweb.com/download/Win64OpenSSL-1_1_0f.exe

I tried that one with standard installation location
(c:/OpenSSL-Win64), and here's what I found (looking for *.lib) that's
relevant:

    c:/OpenSSL-Win64/lib/VC/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MT.lib

From those, I guess you need to change your dependencies to be
libcrypto64MT.lib instead of libeaymt64.lib, and libssl64MT.lib
instead of ssleaymt64.lib.

Cheers,
Richard

--
Richard Levitte         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Raymi Coevan
Hi,

Indeed, the list you mentioned is exactly the one I have in my environment. In my MSVC project, I only statically link with libcrypto64MT.lib and libssl64MT.lib. No reference is made to libeaymt64.lib or libssl64MT.lib, from what I know at least. So I don't understand why I got these link errors...

KR
Raymi



On Sat, Jul 8, 2017 at 12:01 PM, Richard Levitte <[hidden email]> wrote:
Hi,

In message <[hidden email]> on Sat, 8 Jul 2017 11:19:57 +0200, Raymi Coevan <[hidden email]> said:

...
raymi.coevan> I have dependencies on Poco and OpenSSL (1.1.0e is currently used on
raymi.coevan> MacOSX and Linux), and when trying to compile using MSVC2015, I get
raymi.coevan> and link error telling that libeaymt64.lib and ssleaymt64.lib are
raymi.coevan> missing. I tried to find where these dependencies are defined (pragma
raymi.coevan> or linkage definitions) but did not find. These libraries do not look
raymi.coevan> to exist since I cannot find them on MacOSX and Linux either.

Yes, the libraries have changed name for 1.1.0, with names that are
more in line with the Linux / MacOS X names.

raymi.coevan> I have installed OpenSSL environment and tried using precompiled libs
raymi.coevan> and headers from http://slproweb.com/download/Win64OpenSSL-1_1_0f.exe

I tried that one with standard installation location
(c:/OpenSSL-Win64), and here's what I found (looking for *.lib) that's
relevant:

    c:/OpenSSL-Win64/lib/VC/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MT.lib

From those, I guess you need to change your dependencies to be
libcrypto64MT.lib instead of libeaymt64.lib, and libssl64MT.lib
instead of ssleaymt64.lib.

Cheers,
Richard

--
Richard Levitte         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Raymi Coevan
Sorry, I meant no reference to libeaymt64.lib or ssleaymt64.lib

On Sat, Jul 8, 2017 at 12:20 PM, Raymi Coevan <[hidden email]> wrote:
Hi,

Indeed, the list you mentioned is exactly the one I have in my environment. In my MSVC project, I only statically link with libcrypto64MT.lib and libssl64MT.lib. No reference is made to libeaymt64.lib or libssl64MT.lib, from what I know at least. So I don't understand why I got these link errors...

KR
Raymi



On Sat, Jul 8, 2017 at 12:01 PM, Richard Levitte <[hidden email]> wrote:
Hi,

In message <[hidden email]> on Sat, 8 Jul 2017 11:19:57 +0200, Raymi Coevan <[hidden email]> said:

...
raymi.coevan> I have dependencies on Poco and OpenSSL (1.1.0e is currently used on
raymi.coevan> MacOSX and Linux), and when trying to compile using MSVC2015, I get
raymi.coevan> and link error telling that libeaymt64.lib and ssleaymt64.lib are
raymi.coevan> missing. I tried to find where these dependencies are defined (pragma
raymi.coevan> or linkage definitions) but did not find. These libraries do not look
raymi.coevan> to exist since I cannot find them on MacOSX and Linux either.

Yes, the libraries have changed name for 1.1.0, with names that are
more in line with the Linux / MacOS X names.

raymi.coevan> I have installed OpenSSL environment and tried using precompiled libs
raymi.coevan> and headers from http://slproweb.com/download/Win64OpenSSL-1_1_0f.exe

I tried that one with standard installation location
(c:/OpenSSL-Win64), and here's what I found (looking for *.lib) that's
relevant:

    c:/OpenSSL-Win64/lib/VC/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/libssl64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MDd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MD.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libcrypto64MT.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MTd.lib
    c:/OpenSSL-Win64/lib/VC/static/libssl64MT.lib

From those, I guess you need to change your dependencies to be
libcrypto64MT.lib instead of libeaymt64.lib, and libssl64MT.lib
instead of ssleaymt64.lib.

Cheers,
Richard

--
Richard Levitte         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Richard Levitte - VMS Whacker-2
In message <CANFqjkLN5DHq7uOTuxYgCCVLv9==WQLO=[hidden email]> on Sat, 8 Jul 2017 12:29:31 +0200, Raymi Coevan <[hidden email]> said:

raymi.coevan> Sorry, I meant no reference to libeaymt64.lib or ssleaymt64.lib
raymi.coevan>
raymi.coevan> On Sat, Jul 8, 2017 at 12:20 PM, Raymi Coevan <[hidden email]>
raymi.coevan> wrote:
...
raymi.coevan>
raymi.coevan>     Indeed, the list you mentioned is exactly the one I have in my
raymi.coevan>     environment. In my MSVC project, I only statically link with
raymi.coevan>     libcrypto64MT.lib and libssl64MT.lib. No reference is made to
raymi.coevan>     libeaymt64.lib or libssl64MT.lib, from what I know at least. So I
raymi.coevan>     don't understand why I got these link errors...

Can't help you there, sorry.

Cheers,
Richard

--
Richard Levitte         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MSVC Compiling OpenSSL on Windows 64 issues with missing libs

Raymi Coevan
Ok, found what happened.

For a reason that remains gloomy to me (I think this is undocumented from POCO), POCO adds the following dependencies to the vcxproj file:
<AdditionalDependencies>ws2_32.lib;iphlpapi.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>

I have removed those dependencies and it looks to be ok now. So not an OpenSSL issue, I just leave the comment for anyone who could face the issue too.

Sorry for having disturb.

KR
Raymi


On Sat, Jul 8, 2017 at 12:34 PM, Richard Levitte <[hidden email]> wrote:
In message <CANFqjkLN5DHq7uOTuxYgCCVLv9==WQLO=[hidden email]> on Sat, 8 Jul 2017 12:29:31 +0200, Raymi Coevan <[hidden email]> said:

raymi.coevan> Sorry, I meant no reference to libeaymt64.lib or ssleaymt64.lib
raymi.coevan>
raymi.coevan> On Sat, Jul 8, 2017 at 12:20 PM, Raymi Coevan <[hidden email]>
raymi.coevan> wrote:
...
raymi.coevan>
raymi.coevan>     Indeed, the list you mentioned is exactly the one I have in my
raymi.coevan>     environment. In my MSVC project, I only statically link with
raymi.coevan>     libcrypto64MT.lib and libssl64MT.lib. No reference is made to
raymi.coevan>     libeaymt64.lib or libssl64MT.lib, from what I know at least. So I
raymi.coevan>     don't understand why I got these link errors...

Can't help you there, sorry.

Cheers,
Richard

--
Richard Levitte         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


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