OpenSSL 1.1 x breaks build instructions

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 1053
Joined: 2015-09-26 11:50
Location: Germany
Contact:

OpenSSL 1.1 x breaks build instructions

Post by Dravion » 2017-05-18 14:34

Starting with OpenSSL1.1.x OpenSSL libs are no longer usable in hMailServer. The libs ssea32.lib ssea32.dll for example doesnt exists any longer. The new static lib is openssl.lib and some dlls with name libcrypto and ssllibs.

I did a quick test and it looks like the internal lib symbols and imports have changed dramatically to. I get countless linker errors because the exports cannot be found any longer in the new binary libs and dlls. Imho: This is really fucked up!
My x64-Bit builds of hMailserver

hMailServer-5.6.8-B2426-x64.msi (LibreSSL)
hMailServer-5.6.8-B2426-x64.exe (OpenSSL)

Downloads:
https://github.com/hMailServer-ComDevs/hmailserver/releases

User avatar
RvdH
Senior user
Senior user
Posts: 590
Joined: 2008-06-27 14:42
Location: Netherlands

Re: OpenSSL 1.1 x breaks build instructions

Post by RvdH » 2017-05-18 16:00

So? Stick with 1.0.2*

Why you need to upgrade?
CIDR to RegEx: d-fault.nl/CIDRtoRegEx
DNS Lookup: d-fault.nl/DNSTools
DNSBL Lookup: d-fault.nl/DNSBLLookup
GEOIP Lookup: d-fault.nl/GeoipLookup

User avatar
Dravion
Senior user
Senior user
Posts: 1053
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: OpenSSL 1.1 x breaks build instructions

Post by Dravion » 2017-05-18 16:59

Thats not the point.
The last hMailServer compatible openssl versions will run out of support shortly which affects all further HMS Releases, beside the fact the hMailServer codebase is stuck with Visual Studio 2013 and cannot be upgraded to nowdays stabdard VS 2015/2017 Compilers without rewrites and libboost changes.

Its a bad overall situation for the project.
My x64-Bit builds of hMailserver

hMailServer-5.6.8-B2426-x64.msi (LibreSSL)
hMailServer-5.6.8-B2426-x64.exe (OpenSSL)

Downloads:
https://github.com/hMailServer-ComDevs/hmailserver/releases

User avatar
Dravion
Senior user
Senior user
Posts: 1053
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: OpenSSL 1.1 x breaks build instructions

Post by Dravion » 2017-05-19 17:41

Looks like OpenSSL 1.1.x changed only the static LIB and DLL filenames.

Instead of using
libeay32.lib
ssleay32.lib

which is valid in the previous releases. But now its necessary to link against
openssl.lib
libssl.lib
libcrypto.lib

The former DLL's libeay32.dll and ssleay32.dll are not longer avaiable. Use the following DLL's now instead
32-Bit libssl-1_1.dll and libcrypto-1_1.dll
64-Bit libssl-1_1-x64.dll and libcrypto-1_1-x64.dll

https://github.com/hmailserver/hmailserver/issues/223
My x64-Bit builds of hMailserver

hMailServer-5.6.8-B2426-x64.msi (LibreSSL)
hMailServer-5.6.8-B2426-x64.exe (OpenSSL)

Downloads:
https://github.com/hMailServer-ComDevs/hmailserver/releases

User avatar
mattg
Moderator
Moderator
Posts: 19101
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: OpenSSL 1.1 x breaks build instructions

Post by mattg » 2017-05-20 02:17

FYI I did email Martin with a link to this thread
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
Dravion
Senior user
Senior user
Posts: 1053
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: OpenSSL 1.1 x breaks build instructions

Post by Dravion » 2017-05-20 02:43

Thanks. After reviewing and experimentig i think this can be fixed by Martin without big impact. A necessary steps are described on Github. But thr first impression was terrible.
My x64-Bit builds of hMailserver

hMailServer-5.6.8-B2426-x64.msi (LibreSSL)
hMailServer-5.6.8-B2426-x64.exe (OpenSSL)

Downloads:
https://github.com/hMailServer-ComDevs/hmailserver/releases

Post Reply